This is a cache of https://docs.openshift.com/container-platform/4.7/cli_reference/helm_cli/disabling-helm-chart-repositories.html. It is a snapshot of the page at 2024-11-22T21:37:15.883+0000.
Disabling Helm chart repositories - Helm <strong>cli</strong> | <strong>cli</strong> tools | OpenShift Container Platform 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.