File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import (
2222 "github.com/olekukonko/tablewriter"
2323 "github.com/pkg/errors"
2424 "github.com/spf13/cobra"
25+ kerror "k8s.io/apimachinery/pkg/api/errors"
2526 "k8s.io/apimachinery/pkg/apis/meta/v1"
2627 "k8s.io/client-go/kubernetes"
2728)
@@ -71,7 +72,11 @@ kubectl plugin mobile get clientconfig`,
7172 var svcConfig * ServiceConfig
7273 var err error
7374 configMap , err := ccc .k8Client .CoreV1 ().ConfigMaps (ns ).Get (svc .Name , v1.GetOptions {})
75+ // ignoring not found as some services will not have this public configmap
7476 if err != nil {
77+ if kerror .IsNotFound (err ) {
78+ continue
79+ }
7580 return errors .Wrap (err , "unable to create config. Failed to get service " + svc .Name + " configmap" )
7681 }
7782 if _ , ok := convertors [svc .Name ]; ! ok {
You can’t perform that action at this time.
0 commit comments