From 2c993b009df9fd28badaa2d721e6613e314cf097 Mon Sep 17 00:00:00 2001 From: Preeti Date: Thu, 1 Oct 2020 23:13:55 +0530 Subject: [PATCH] helm multi repo topic map entry moved step from a module to another and deleated a modue minor change minor change1 review fixes --- _topic_map.yml | 2 + ...guring-custom-helm-chart-repositories.adoc | 16 ++++ .../helm-adding-helm-chart-repositories.adoc | 45 ++++++++++ ...certificates-to-add-helm-repositories.adoc | 89 +++++++++++++++++++ 4 files changed, 152 insertions(+) create mode 100644 cli_reference/helm_cli/configuring-custom-helm-chart-repositories.adoc create mode 100644 modules/helm-adding-helm-chart-repositories.adoc create mode 100644 modules/helm-creating-credentials-and-certificates-to-add-helm-repositories.adoc diff --git a/_topic_map.yml b/_topic_map.yml index 7ddc76af73..d23ab0bd27 100644 --- a/_topic_map.yml +++ b/_topic_map.yml @@ -1587,6 +1587,8 @@ Topics: Topics: - Name: Getting started with Helm on OpenShift Container Platform File: getting-started-with-helm-on-openshift-container-platform + - Name: Configuring custom Helm chart repositories + File: configuring-custom-helm-chart-repositories - Name: Knative CLI (kn) for use with OpenShift Serverless File: kn-cli-tools - Name: Pipelines CLI (tkn) diff --git a/cli_reference/helm_cli/configuring-custom-helm-chart-repositories.adoc b/cli_reference/helm_cli/configuring-custom-helm-chart-repositories.adoc new file mode 100644 index 0000000000..9fa19b7044 --- /dev/null +++ b/cli_reference/helm_cli/configuring-custom-helm-chart-repositories.adoc @@ -0,0 +1,16 @@ +[id="configuring-custom-helm-chart-repositories"] + += Configuring custom Helm chart repositories +include::modules/common-attributes.adoc[] +:context: configuring-custom-helm-chart-repositories + +toc::[] + +The *Developer Catalog*, in the *Developer* perspective of the web console, displays the Helm charts available in the cluster. By default, it lists the Helm charts from the Red Hat Helm chart repository. For a list of the charts see link:https://redhat-developer.github.io/redhat-helm-charts/index.yaml[the Red Hat `Helm index` file]. + +As a cluster administrator, you can add multiple Helm chart repositories, apart from the default one, and display the Helm charts from these repositories in the *Developer Catalog*. + + +include::modules/helm-adding-helm-chart-repositories.adoc[leveloffset=+1] + +include::modules/helm-creating-credentials-and-certificates-to-add-helm-repositories.adoc[leveloffset=+1] diff --git a/modules/helm-adding-helm-chart-repositories.adoc b/modules/helm-adding-helm-chart-repositories.adoc new file mode 100644 index 0000000000..60476f1ac5 --- /dev/null +++ b/modules/helm-adding-helm-chart-repositories.adoc @@ -0,0 +1,45 @@ +// Module included in the following assemblies: +// +// * cli_reference/helm/configuring-custom-helm-chart-repositories.adoc + +[id="adding-helm-chart-repositories_{context}"] += Adding custom Helm chart repositories + +You can add custom Helm chart repositories to your cluster, and enable access to the Helm charts from these repositories in the *Developer Catalog*. + +.Procedure + +. To add a new Helm Chart Repository, you must add the Helm Chart Repository Custom Resource (CR) to your cluster. ++ +.Sample Helm Chart Repository CR + +[Source,yaml] +---- +apiVersion: helm.openshift.io/v1beta1 +kind: HelmChartRepository +metadata: + name: +spec: + # optional name that might be used by console + # name: + connectionConfig: + url: +---- ++ +For example, to add an Azure sample chart repository, run: ++ +[source,terminal] +---- +$ cat < +spec: + name: + connectionConfig: + url: + tlsConfig: + name: helm-tls-configs + ca: + name: helm-ca-cert +EOF +---- ++ +The `ConfigMap` and `Secret` are consumed in the HelmChartRepository CR using the `tlsConfig` and `ca` fields. These certificates are used to connect to the Helm repository URL. +. By default, all authenticated users have access to all configured charts. However, for chart repositories where certificates are needed, you must provide users with read access to the `helm-ca-cert` configmap and `helm-tls-configs` secret in the `openshift-config` namespace, as follows: ++ +[source,terminal] +---- +$ cat <