mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
fix csr status message for kubectl certificate deny
This commit is contained in:
parent
df1d9b9e98
commit
259d39fade
@ -200,7 +200,7 @@ func (o *CertificateOptions) RunCertificateDeny(force bool) error {
|
|||||||
csr.Status.Conditions = append(csr.Status.Conditions, certificates.CertificateSigningRequestCondition{
|
csr.Status.Conditions = append(csr.Status.Conditions, certificates.CertificateSigningRequestCondition{
|
||||||
Type: certificates.CertificateDenied,
|
Type: certificates.CertificateDenied,
|
||||||
Reason: "KubectlDeny",
|
Reason: "KubectlDeny",
|
||||||
Message: "This CSR was approved by kubectl certificate deny.",
|
Message: "This CSR was denied by kubectl certificate deny.",
|
||||||
LastUpdateTime: metav1.Now(),
|
LastUpdateTime: metav1.Now(),
|
||||||
})
|
})
|
||||||
return csr, false
|
return csr, false
|
||||||
|
Loading…
Reference in New Issue
Block a user