fix: mention ed25519 on validation webhook error when key is not valid

Signed-off-by: pevidex <ricardojosexavier@hotmail.com>
This commit is contained in:
pevidex 2023-12-25 01:24:59 +00:00
parent ee968864c7
commit 8a516503de

View File

@ -131,7 +131,7 @@ func ValidateCertificateSpec(crt *internalcmapi.CertificateSpec, fldPath *field.
case internalcmapi.Ed25519KeyAlgorithm:
break
default:
el = append(el, field.Invalid(fldPath.Child("privateKey", "algorithm"), crt.PrivateKey.Algorithm, "must be either empty or one of rsa or ecdsa"))
el = append(el, field.Invalid(fldPath.Child("privateKey", "algorithm"), crt.PrivateKey.Algorithm, "must be either empty or one of rsa, ecdsa or ed25519"))
}
}