Skip to content

cub gitops import

cub gitops import

Import GitOps resources from a Kubernetes target

Synopsis

Import discovered GitOps resources (ArgoCD Applications, Flux HelmReleases, Flux Kustomizations) from a Kubernetes target, render them using a render target, and create the corresponding ConfigHub units and links.

If render-target-slug is omitted, the target is also used as the render target.

Examples:

  cub gitops import --space my-space my-k8s-target my-render-target
  cub gitops import --space my-space my-k8s-target my-render-target --where-resource "metadata.namespace = 'argocd'"
  cub gitops import --space my-space my-multi-provider-target
cub gitops import <target-slug> [render-target-slug] [flags]

Options

  -h, --help                    help for import
  -o, --output string           Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
      --quiet                   No default output.
      --timeout string          completion timeout as a duration with units, such as 10s or 2m (default "10m0s")
      --verbose                 Detailed output, additive with default output
      --wait                    wait for completion
      --where-resource string   Additional resource filter expression

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output
      --space string     space ID to perform command on

SEE ALSO