You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("error while querying api objects: %w", err)
160
+
returnfmt.Errorf("error while querying api objects, use --ignore-errors to continue: %w", err)
155
161
}
156
162
klog.V(2).Infof("found total %d api objects", len(apiObjects))
157
163
@@ -180,6 +186,7 @@ func init() {
180
186
181
187
rootCmd.Flags().BoolP(allNamespacesFlag, "A", false, "query all objects in all API groups, both namespaced and non-namespaced")
182
188
rootCmd.Flags().StringP(colorFlag, "c", "auto", "Enable or disable color output. This can be 'always', 'never', or 'auto' (default = use color only if using tty). The flag is overridden by the NO_COLOR env variable if set.")
189
+
rootCmd.Flags().Bool(ignoreErrorsFlag, false, "continue on errors while querying API resources")
0 commit comments