fix: mention ed25519 on validation webhook error when key is not valid
Signed-off-by: pevidex <ricardojosexavier@hotmail.com>
This commit is contained in:
parent
ee968864c7
commit
8a516503de
@ -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"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user