chainctl clusters uninstall

chainctl clusters uninstall

Uninstalls Chainguard from the current kubernetes context.

chainctl clusters uninstall [--parent={ORGANIZATION_NAME|ORGANIZATION_ID|FOLDER_NAME|FOLDER_ID}] [--context=CONTEXT_NAME | --cluster={CLUSTER_NAME|CLUSTER_ID} | --inactive=DURATION] [--active-within=DURATION] [--yes]

Examples

  # Uninstall a cluster and choose the context interactively
  chainctl cluster uninstall
  
  # Uninstall all clusters not seen in 7 days
  chainctl cluster uninstall --inactive=168h
  
  # Uninstall a cluster in a given organization by context
  chainctl cluster uninstall --parent=my-org --context=my-context
  
  # Uninstall a cluster in a given organization by name
  chainctl cluster uninstall --parent=my-org --cluster=my-cluster
  
  # Uninstall a cluster by ID
  chainctl cluster uninstall --cluster=ef127a7c0...

Options

      --active-within duration   How recently a cluster must have been active to be listed. Zero will return all clusters. (default 24h0m0s)
      --cluster string           Indicates the name or ID of the cluster to disconnect from Chainguard.
      --context string           Indicates the name of the context (in kubectl) to disconnect from Chainguard.
  -h, --help                     help for uninstall
      --inactive duration        Delete all clusters that have not been seen within the given duration. (default 168h0m0s)
      --parent string            Name or ID of a location to filter clusters by for uninstallation.
  -y, --yes                      Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively.

Options inherited from parent commands

      --api string        The url of the Chainguard platform API. (default "https://console-api.enforce.dev")
      --audience string   The Chainguard token audience to request. (default "https://console-api.enforce.dev")
      --config string     A specific chainctl config file. Uses CHAINCTL_CONFIG environment variable if a file is not passed explicitly.
      --console string    The url of the Chainguard platform Console. (default "https://console.enforce.dev")
      --issuer string     The url of the Chainguard STS endpoint. (default "https://issuer.enforce.dev")
  -o, --output string     Output format. One of: ["", "json", "id", "table", "terse", "tree", "wide"]
  -v, --v int             Set the log verbosity level.

SEE ALSO

Last updated: 2024-03-20 19:45