jx gitops helmfile move

Moves the generated template files from ‘helmfile template’ into the right gitops directory Aliases: mv

jx gitops helmfile move

Moves the generated template files from ‘helmfile template’ into the right gitops directory

Aliases: mv

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 this command applies the namespace to all the generated resources and then moves the namespaced resources into the config-root/namespaces/$ns/$releaseName directory and then moves any CRDs or cluster level resources into ‘config-root/cluster/$releaseName’

Examples

# moves the generated files in 'tmp' to the config root dir
jx-gitops helmfile move --dir config-root --from tmp

Options

      --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/v3/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/v3/tree/master/docs/kind_filters.md
  -o, --output-dir string           the output directory (default "config-root")
      --selector stringToString     adds Kubernetes label selector to filter on, e.g. -s app=pusher-wave,heritage=Helm (default [])


Last modified April 13, 2021: chore: regenerated plugin docs (a97be9efd3)