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
logical relationships between some API objects without needing ownerReferences.
15
15
@@ -39,8 +39,16 @@ Example (Agones Fleet):
39
39
By default, the plugin will only search "namespaced" objects in the same
40
40
namespace as the specified object.
41
41
42
-
You can use the `-A` or `--all-namespaces` flag to search namespaced and
43
-
non-namespaced objects in all namespaces.
42
+
-`-A`, `--all-namespaces`: Search namespaced and non-namespaced objects in all namespaces.
43
+
44
+
-`-l`, `--selector`: Selector (label query) to filter on. Supports equality (`=`, `==`, `!=`), set-based (`in`, `notin`), and existence operators. Examples:
45
+
-`-l key1=value1,key2=value2` (equality)
46
+
-`-l "env in (prod,staging)"` (set-based)
47
+
-`-l "tier=frontend,env!=test"` (mixed)
48
+
49
+
This helps reduce workload and data volume when working with large clusters.
50
+
51
+
-`--condition-types`: Comma-separated list of condition types to check (default: Ready). Example: `Ready,Processed,Scheduled`.
returnfmt.Errorf("error while querying api objects: %w", err)
181
187
}
@@ -207,6 +213,7 @@ func init() {
207
213
rootCmd.Flags().BoolP(allNamespacesFlag, "A", false, "query all objects in all API groups, both namespaced and non-namespaced")
208
214
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.")
209
215
rootCmd.Flags().StringSlice(conditionTypesFlag, []string{"Ready"}, "Comma-separated list of condition types to check (default: Ready). Example: Ready,Processed,Scheduled")
216
+
rootCmd.Flags().StringP(selectorFlag, "l", "", "Selector (label query) to filter on, supports '=', '==', and '!='. (e.g. -l key1=value1,key2=value2)")
0 commit comments