This is a cache of https://docs.okd.io/4.7/cli_reference/helm_cli/disabling-helm-chart-repositories.html. It is a snapshot of the page at 2024-11-18T01:48:14.637+0000.
Disabling <strong>helm</strong> chart repositories - <strong>helm</strong> CLI | CLI tools | OKD 4.7
×

As a cluster administrator, you can remove helm chart repositories in your cluster so they are no longer visible in the Developer Catalog.

Disabling helm Chart repository in the cluster

You can disable helm Charts in the catalog by adding the disabled property in the helmChartRepository custom resource.

Procedure
  • To disable a helm Chart repository by using CLI, add the disabled: true flag to the custom resource. For example, to remove an Azure sample chart repository, run:

    $ cat <<EOF | oc apply -f -
    apiVersion: helm.openshift.io/v1beta1
    kind: helmChartRepository
    metadata:
      name: azure-sample-repo
    spec:
      connectionConfig:
       url:https://raw.githubusercontent.com/Azure-Samples/helm-charts/master/docs
      disabled: true
    EOF
  • To disable a recently added helm Chart repository by using Web Console:

    1. Go to Custom Resource Definitions and search for the helmChartRepository custom resource.

    2. Go to Instances, find the repository you want to disable, and click its name.

    3. Go to the YAML tab, add the disabled: true flag in the spec section, and click Save.

      Example
      spec:
        connectionConfig:
          url: <url-of-the-repositoru-to-be-disabled>
        disabled: true

      The repository is now disabled and will not appear in the catalog.