Skip to content

Commit b321547

Browse files
committed
remove commented func
Signed-off-by: Dominique Vernier <[email protected]>
1 parent 9cf1038 commit b321547

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

pkg/cmd/accept/exec.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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-
213199
func GetCertApprovalCondition(status *certificatesv1.CertificateSigningRequestStatus) (approved bool, denied bool) {
214200
for _, c := range status.Conditions {
215201
if c.Type == certificatesv1.CertificateApproved {

0 commit comments

Comments
 (0)