File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -196,20 +196,6 @@ func (o *Options) updateManagedCluster(clusterClient *clusterclientset.Clientset
196196 return true , nil
197197}
198198
199- // func isCSRApprovedOrDenied(csr certificatesv1.CertificateSigningRequest) bool {
200- // for _, c := range csr.Status.Conditions {
201- // if c.Type == certificatesv1.CertificateApproved {
202- // fmt.Printf("CSR %s already approved\n", csr.Name)
203- // return true
204- // }
205- // if c.Type == certificatesv1.CertificateDenied {
206- // fmt.Printf("CSR %s already denied\n", csr.Name)
207- // return true
208- // }
209- // }
210- // return false
211- // }
212-
213199func GetCertApprovalCondition (status * certificatesv1.CertificateSigningRequestStatus ) (approved bool , denied bool ) {
214200 for _ , c := range status .Conditions {
215201 if c .Type == certificatesv1 .CertificateApproved {
You can’t perform that action at this time.
0 commit comments