jx gitops sa secret

Adds one or more secrets to the given ServiceAccount files

Usage

jx gitops sa secret

Synopsis

Adds one or more secrets to the given ServiceAccount files

Examples

# ensures that the given service account resource has the secret associated
jx-gitops sa secret -f config-root/namespaces/jx/mychart/my-sa.yaml --secret my-secret-name%!(EXTRA string=jx-gitops)

Options

  -f, --file string               the ServiceAccount file to modify
  -h, --help                      help for secret
      --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
  -s, --secret stringArray        the Secret names to add to the ServiceAccount
      --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

jenkins-x-plugins/jx-gitops


Last modified October 8, 2024: chore: regenerated plugin docs (2935f771d3)