Updates all kubernetes resources in the given directory to the given namespace
Aliases: ns
jx-gitops namespace
Updates all kubernetes resources in the given directory to the given namespace
jx-gitops namespace -n cheese --dir .
jx-gitops namespace --dir-mode --dir config-root/namespaces
--cluster-dir string the directory to recursively look for the *.yaml or *.yml files
--dir string the directory to recursively look for the namespaced *.yaml or *.yml files to set the namespace on (default ".")
--dir-mode assumes the first child directory is the name of the namespace to use
-h, --help help for namespace
--invert-selector inverts the effect of selector to exclude resources matched by selector
-k, --kind stringArray adds Kubernetes resource kinds to filter on. For kind expressions see: https://github.com/jenkins-x/jx-helpers/tree/master/docs/kind_filters.md
--kind-ignore stringArray adds Kubernetes resource kinds to exclude. For kind expressions see: https://github.com/jenkins-x/jx-helpers/tree/master/docs/kind_filters.md
-n, --namespace string the namespace to modify the resources to
--selector stringToString adds Kubernetes label selector to filter on, e.g. --selector app=wave,heritage=Helm (default [])
--selector-target string sets which path in the Kubernetes resources to select on instead of metadata.labels.
- jx-gitops - commands for working with GitOps based git repositories