Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _topic_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1671,6 +1671,8 @@ Topics:
File: getting-started-with-helm-on-openshift-container-platform
- Name: Configuring custom Helm chart repositories
File: configuring-custom-helm-chart-repositories
- Name: Disabling Helm chart repositories
File: disabling-helm-chart-repositories
- Name: Knative CLI (kn) for use with OpenShift Serverless
File: kn-cli-tools
Distros: openshift-enterprise,openshift-webscale,openshift-origin
Expand Down
11 changes: 11 additions & 0 deletions cli_reference/helm_cli/disabling-helm-chart-repositories.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[id="disabling-helm-chart-repositories"]

= Disabling Helm hart repositories
include::modules/common-attributes.adoc[]
:context: disabling-helm-chart-repositories

toc::[]

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

include::modules/helm-disabling-helm-chart-repository-in-the-cluster.adoc[leveloffset=+1]
43 changes: 43 additions & 0 deletions modules/helm-disabling-helm-chart-repository-in-the-cluster.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Module included in the following assemblies:
//
// * cli_reference/helm/disabling-helm-chart-repositories.adoc

[id="helm-disabling-helm-chart-repository-in-the-cluster_{context}"]
= 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:
+
. Go to *Custom Resource Definitions* and search for the `HelmChartRepository` custom resource.

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

. 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.