Verify that the key matches the cert

Signed-off-by: aimuz <mr.imuz@gmail.com>
This commit is contained in:
aimuz
2022-11-03 16:58:05 +08:00
parent 741bd5c382
commit 4a7ab7fd75
2 changed files with 17 additions and 3 deletions

View File

@@ -5812,7 +5812,6 @@ func ValidateSecret(secret *core.Secret) field.ErrorList {
if _, exists := secret.Data[core.TLSPrivateKeyKey]; !exists {
allErrs = append(allErrs, field.Required(dataPath.Key(core.TLSPrivateKeyKey), ""))
}
// TODO: Verify that the key matches the cert.
default:
// no-op
}