jx gitops helmfile move
Usage
jx gitops helmfile move
Synopsis
Moves the generated template files from ‘helmfile template’ into the right gitops directory.
The output of ‘helmfile template’ ignores the namespace specified in the ‘helmfile.yaml’ and there is a dummy top level directory.
So by default this command applies the namespace to all the generated resources
Then it moves the namespaced resources into the config-root/namespaces/$ns/$releaseName directory and any CRDs or cluster level resources into ‘config-root/cluster/$releaseName’.
If supplied with –dir-includes-release-name then by default we will annotate the resources with the annotations “app.kubernetes.io/instance” to preserve the helm release name.
The annotation “meta.helm.sh/release-namespace” will be added by default and contain the namespace specified in the release.
Examples
# moves the generated files in 'tmp' to the config root dir
jx-gitops helmfile move --dir config-root --from tmp
Options
--annotate-release-name if using --dir-includes-release-name layout then lets add the 'meta.helm.sh/release-name' annotation to record the helm release name (default true)
--annotate-release-namespace add the 'meta.helm.sh/release-namespace' annotation to record the helm release namespace (default true)
--dir string the directory containing the generated resources
--dir-includes-release-name the directory containing the generated resources has a path segment that is the release name
-h, --help help for move
--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
-o, --output-dir string the output directory (default "config-root")
--override-namespace applies the namespace specified in helmfile to all the generated resources (default true)
--selector stringToString adds Kubernetes label selector to filter on, e.g. --selector app=pusher-wave,heritage=Helm (default [])
--selector-target string sets which path in the Kubernetes resources to select on instead of metadata.labels.
Source
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.