Merge pull request #113581 from aimuz/verify-tls-secret

Verify that the key matches the cert
This commit is contained in:
Kubernetes Prow Robot
2023-01-04 14:29:58 -08:00
committed by GitHub
2 changed files with 17 additions and 3 deletions

View File

@@ -5814,7 +5814,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
}