mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-02-22 07:03:28 +00:00
gofmt cleaner.go
This commit is contained in:
@@ -108,11 +108,11 @@ func (ccc *CSRCleanerController) worker(ctx context.Context) {
|
||||
func (ccc *CSRCleanerController) handle(ctx context.Context, csr *capi.CertificateSigningRequest) error {
|
||||
logger := klog.FromContext(ctx)
|
||||
if isIssuedPastDeadline(logger, csr) ||
|
||||
isDeniedPastDeadline(logger, csr) ||
|
||||
isFailedPastDeadline(logger, csr) ||
|
||||
isPendingPastDeadline(logger, csr) ||
|
||||
isIssuedExpired(logger, csr) ||
|
||||
isApprovedUnissuedPastDeadline(logger, csr) {
|
||||
isDeniedPastDeadline(logger, csr) ||
|
||||
isFailedPastDeadline(logger, csr) ||
|
||||
isPendingPastDeadline(logger, csr) ||
|
||||
isIssuedExpired(logger, csr) ||
|
||||
isApprovedUnissuedPastDeadline(logger, csr) {
|
||||
if err := ccc.csrClient.Delete(ctx, csr.Name, metav1.DeleteOptions{}); err != nil {
|
||||
return fmt.Errorf("unable to delete CSR %q: %v", csr.Name, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user