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.

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 <target-slug> <render-target-slug> [flags]

Options

  -h, --help                    help for import
      --jq string               jq expression, suppressing default output
      --json                    JSON output, suppressing default output
      --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
      --yaml                    YAML output, suppressing default output
      --yq string               yq expression, suppressing default output

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