Skip to content

Commit

Permalink
UPSTREAM: <drop>: Revert "certificates default to tolerate no key enc…
Browse files Browse the repository at this point in the history
…ipherment"

This reverts commit 3ace3eb.
  • Loading branch information
bertinatto committed Apr 11, 2023
1 parent eeb32c1 commit 9428f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/certificates/v1beta1/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ func DefaultSignerNameFromSpec(obj *certificatesv1beta1.CertificateSigningReques
// Set the signerName to 'legacy-unknown' as the CSR could not be
// recognised.
return certificatesv1beta1.LegacyUnknownSignerName
case IsKubeletClientCSR(csr, obj.Usages, true):
case IsKubeletClientCSR(csr, obj.Usages, false):
return certificatesv1beta1.KubeAPIServerClientKubeletSignerName
case IsKubeletServingCSR(csr, obj.Usages, true):
case IsKubeletServingCSR(csr, obj.Usages, false):
return certificatesv1beta1.KubeletServingSignerName
default:
return certificatesv1beta1.LegacyUnknownSignerName
Expand Down

0 comments on commit 9428f8b

Please sign in to comment.