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
-m, --dump-only Dump mode: dump everything once and exit
67
+
-x, --exclude-kind strings Ressource kind to exclude. Eg. 'deployment'
68
+
-z, --exclude-namespaces strings Namespaces to exclude. Eg. 'temp.*' as regexes. This collects all namespaces and then filters them. Don't use it with the namespace flag.
69
+
-y, --exclude-object strings Object to exclude. Eg. 'configmap:kube-system/kube-dns'
70
+
-l, --filter string Label filter. Select only objects matching the label
Copy file name to clipboardExpand all lines: cmd/flags.go
+24-19
Original file line number
Diff line number
Diff line change
@@ -9,25 +9,26 @@ import (
9
9
)
10
10
11
11
var (
12
-
cfgFilestring
13
-
apiServerstring
14
-
contextstring
15
-
namespacestring
16
-
kubeConfstring
17
-
dryRunbool
18
-
dumpModebool
19
-
logLevelstring
20
-
logOutputstring
21
-
logServerstring
22
-
filterstring
23
-
localDirstring
24
-
gitURLstring
25
-
gitTimeout time.Duration
26
-
healthPint
27
-
resyncIntint
28
-
exclkind []string
29
-
exclobj []string
30
-
noGitbool
12
+
cfgFilestring
13
+
apiServerstring
14
+
contextstring
15
+
namespacestring
16
+
exclnamespaces []string
17
+
kubeConfstring
18
+
dryRunbool
19
+
dumpModebool
20
+
logLevelstring
21
+
logOutputstring
22
+
logServerstring
23
+
filterstring
24
+
localDirstring
25
+
gitURLstring
26
+
gitTimeout time.Duration
27
+
healthPint
28
+
resyncIntint
29
+
exclkind []string
30
+
exclobj []string
31
+
noGitbool
31
32
)
32
33
33
34
funcbindPFlag(keystring, cmdstring) {
@@ -52,6 +53,9 @@ func init() {
52
53
RootCmd.PersistentFlags().StringVarP(&namespace, "namespace", "a", "", "Only dump objects from this namespace")
53
54
bindPFlag("namespace", "namespace")
54
55
56
+
RootCmd.PersistentFlags().StringSliceVarP(&exclnamespaces, "exclude-namespaces", "z", nil, "Namespaces to exclude. Eg. 'temp.*' as regexes. This collects all namespaces and then filters them. Don't use it with the namespace flag.")
0 commit comments