fluxcd-flux2/docs/cmd/flux_get_auto_image-policy.md
Michael Bridgen 512761080e Add get auto image-policy and refactor
This factors the get command implementation so that the control flow
is generic and relies on a handful of methods, then uses that to add
`get auto image-policy` and to rewrite `get auto image-repository`.

Signed-off-by: Michael Bridgen <michael@weave.works>
2020-12-11 16:34:18 +00:00

999 B

flux get auto image-policy

Get ImagePolicy statuses

Synopsis

The get auto image-policy command prints the status of ImagePolicy objects.

flux get auto image-policy [flags]

Examples

  # List all image policies and their status
  flux get auto image-policy

 # List image policies from all namespaces
  flux get auto image-policy --all-namespaces

Options

  -h, --help   help for image-policy

Options inherited from parent commands

  -A, --all-namespaces      list the requested object(s) across all namespaces
      --context string      kubernetes context to use
      --kubeconfig string   path to the kubeconfig file (default "~/.kube/config")
  -n, --namespace string    the namespace scope for this operation (default "flux-system")
      --timeout duration    timeout for this operation (default 5m0s)
      --verbose             print generated objects

SEE ALSO