Disabling Helm hart repositories

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:

    1. $ cat <<EOF | oc apply -f -
    2. apiVersion: helm.openshift.io/v1beta1
    3. kind: HelmChartRepository
    4. metadata:
    5. name: azure-sample-repo
    6. spec:
    7. connectionConfig:
    8. url:https://raw.githubusercontent.com/Azure-Samples/helm-charts/master/docs
    9. disabled: true
    10. 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

      1. spec:
      2. connectionConfig:
      3. url: <url-of-the-repositoru-to-be-disabled>
      4. disabled: true

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