Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
yalosev authored Mar 18, 2024
1 parent c8f2f90 commit ddf1dab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/webhook/conversion/crd_client_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
log "github.com/sirupsen/logrus"
extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog/v2"

klient "github.com/flant/kube-client/client"
)
Expand Down Expand Up @@ -41,7 +40,7 @@ tryToGetCRD:
}

if len(crdList.Items) == 0 {
klog.Errorf("crd/%s not found", c.CrdName)
log.Warnf("crd/%s not found. Will try to find it later", c.CrdName)
time.Sleep(retryTimeout)
goto tryToGetCRD
}
Expand Down

0 comments on commit ddf1dab

Please sign in to comment.