We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce50e30 commit 7e1fdfdCopy full SHA for 7e1fdfd
cmd/cmd.go
@@ -39,6 +39,7 @@ import (
39
flag "github.com/spf13/pflag"
40
apps "k8s.io/api/apps/v1"
41
core "k8s.io/api/core/v1"
42
+ apiErrors "k8s.io/apimachinery/pkg/api/errors"
43
meta "k8s.io/apimachinery/pkg/apis/meta/v1"
44
"k8s.io/apimachinery/pkg/runtime"
45
"k8s.io/client-go/kubernetes"
@@ -555,7 +556,7 @@ func ensureFeaturesConfigMap(ctx context.Context, client typedCore.ConfigMapInte
555
556
nctx, c := globals.GetGlobalTimeouts().Kubernetes().WithTimeout(ctx)
557
defer c()
558
if cm, err := client.Get(nctx, features.ConfigMapName(), meta.GetOptions{}); err != nil {
- if !deploymentApi.IsNotFound(err) {
559
+ if !apiErrors.IsNotFound(err) {
560
return err
561
}
562
0 commit comments