Skip to content

Commit 485b541

Browse files
committed
fix: do not fail if missing permissions
to some CRDs Continue and display the tree with the objects that we can access
1 parent 1dbda51 commit 485b541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kubectl-tree/rootcmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func run(command *cobra.Command, args []string) error {
132132
klog.V(2).Infof("querying all api objects")
133133
apiObjects, err := getAllResources(dyn, apis.resources(), allNs)
134134
if err != nil {
135-
return fmt.Errorf("error while querying api objects: %w", err)
135+
klog.V(2).Infof("error while querying api objects: %w", err)
136136
}
137137
klog.V(2).Infof("found total %d api objects", len(apiObjects))
138138

0 commit comments

Comments
 (0)