Skip to content

Commit bef977e

Browse files
authored
Merge pull request #41269 from Srivaralakshmi/namespaced-helm-repo
Document adding namepsace-scoped Helm Chart Repository and Note on disabling Helm for the Multicluster Console (TP)
2 parents 5200996 + ffe5a1d commit bef977e

File tree

4 files changed

+104
-1
lines changed

4 files changed

+104
-1
lines changed

applications/working_with_helm_charts/configuring-custom-helm-chart-repositories.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9+
[role="_abstract"]
910
You can install Helm charts on an {product-title} cluster using the following methods:
1011

1112
* The CLI.
1213
* The *Developer* perspective of the web console.
1314
1415
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 OpenShift Helm chart repository. For a list of the charts, see link:https://charts.openshift.io/index.yaml[the Red Hat `Helm index` file].
1516

16-
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*.
17+
As a cluster administrator, you can add multiple cluster-scoped and namespace-scoped Helm chart repositories, separate from the default cluster-scoped Helm repository, and display the Helm charts from these repositories in the *Developer Catalog*.
1718

19+
As a regular user or project member with the appropriate role-based access control (RBAC) permissions, you can add multiple namespace-scoped Helm chart repositories, apart from the default cluster-scoped Helm repository, and display the Helm charts from these repositories in the *Developer Catalog*.
1820

1921
include::modules/helm-installing-a-helm-chart-on-an-openshift-cluster.adoc[leveloffset=+1]
2022

@@ -28,6 +30,8 @@ include::modules/helm-creating-a-custom-helm-chart-on-openshift.adoc[leveloffset
2830

2931
include::modules/helm-adding-helm-chart-repositories.adoc[leveloffset=+1]
3032

33+
include::modules/helm-adding-namespace-scoped-helm-chart-repositories.adoc[leveloffset=+1]
34+
3135
include::modules/helm-creating-credentials-and-certificates-to-add-helm-repositories.adoc[leveloffset=+1]
3236

3337
include::modules/helm-filtering-helm-charts-by-certification-level.adoc[leveloffset=+1]

applications/working_with_helm_charts/understanding-helm.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9+
[role="_abstract"]
910
Helm is a software package manager that simplifies deployment of applications and services to {product-title} clusters.
1011

1112
Helm uses a packaging format called _charts_.
@@ -25,6 +26,12 @@ Helm provides the ability to:
2526
* Create your own charts with {product-title} or Kubernetes resources.
2627
* Package and share your applications as charts.
2728

29+
[NOTE]
30+
====
31+
In {product-title} 4.10, Helm is disabled for the xref:../../release_notes/ocp-4-10-release-notes.adoc#ocp-4-10-multicluster-console-technology-preview[Multicluster Console] (Technology Preview).
32+
//Note to the reviewers: The "Multicluster Console" term in this sentence will have a link to the Dev Console multi-cluster docs or to the Web console section that is under the New features and enhancements section in the 4.10 RN. Awaiting for the links from the concerned author Olivia Payne as the concerned draft for Dev Console multi-cluster docs is in progress now.
33+
====
34+
2835
== Red Hat Certification of Helm charts for OpenShift
2936

3037
You can choose to verify and certify your Helm charts by Red Hat for all the components you will be deploying on the Red Hat {product-title}. Charts go through an automated Red Hat OpenShift certification workflow that guarantees security compliance as well as best integration and experience with the platform. Certification assures the integrity of the chart and ensures that the Helm chart works seamlessly on Red Hat OpenShift clusters.
136 KB
Loading
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * applications/working_with_helm_charts/configuring-custom-helm-chart-repositories.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="adding-namespace-scoped-helm-chart-repositories.adoc_{context}"]
7+
= Adding namespace-scoped custom Helm chart repositories
8+
9+
[role="_abstract"]
10+
The cluster-scoped `HelmChartRepository` custom resource definition (CRD) for Helm repository provides the ability for administrators to add Helm repositories as custom resources. The namespace-scoped `ProjectHelmChartRepository` CRD allows project members with the appropriate role-based access control (RBAC) permissions to create Helm repository resources of their choice but scoped to their namespace. Such project members can see charts from both cluster-scoped and namespace-scoped Helm repository resources.
11+
12+
[NOTE]
13+
====
14+
* Administrators can limit users from creating namespace-scoped Helm repository resources. By limiting users, administrators have the flexibility to control the RBAC through a namespace role instead of a cluster role. This avoids unnecessary permission elevation for the user and prevents access to unauthorized services or applications.
15+
* The addition of the namespace-scoped Helm repository does not impact the behavior of the existing cluster-scoped Helm repository.
16+
====
17+
18+
As a regular user or project member with the appropriate RBAC permissions, you can add custom namespace-scoped Helm chart repositories to your cluster and enable access to the Helm charts from these repositories in the *Developer Catalog*.
19+
20+
.Procedure
21+
22+
. To add a new namespace-scoped Helm Chart Repository, you must add the Helm Chart Repository custom resource (CR) to your namespace.
23+
+
24+
.Sample Namespace-scoped Helm Chart Repository CR
25+
26+
[source,yaml]
27+
----
28+
apiVersion: helm.openshift.io/v1beta1
29+
kind: ProjectHelmChartRepository
30+
metadata:
31+
name: <name>
32+
spec:
33+
url: https://my.chart-repo.org/stable
34+
35+
# optional name that might be used by console
36+
name: <chart-repo-display-name>
37+
38+
# optional and only needed for UI purposes
39+
description: <My private chart repo>
40+
41+
# required: chart repository URL
42+
connectionConfig:
43+
url: <helm-chart-repository-url>
44+
----
45+
+
46+
For example, to add an Azure sample chart repository scoped to your `my-namespace` namespace, run:
47+
+
48+
[source,terminal]
49+
----
50+
$ cat <<EOF | oc apply --namespace my-namespace -f -
51+
apiVersion: helm.openshift.io/v1beta1
52+
kind: ProjectHelmChartRepository
53+
metadata:
54+
name: azure-sample-repo
55+
spec:
56+
name: azure-sample-repo
57+
connectionConfig:
58+
url: https://raw.githubusercontent.com/Azure-Samples/helm-charts/master/docs
59+
EOF
60+
----
61+
+
62+
The output verifies that the namespace-scoped Helm Chart Repository CR is created:
63+
+
64+
.Example output
65+
----
66+
projecthelmchartrepository.helm.openshift.io/azure-sample-repo created
67+
----
68+
69+
. Navigate to the *Developer Catalog* in the web console to verify that the Helm charts from the chart repository are displayed in your `my-namespace` namespace.
70+
+
71+
For example, use the *Chart repositories* filter to search for a Helm chart from the repository.
72+
+
73+
.Chart repositories filter in your namespace
74+
image::odc_namespace_helm_chart_repo_filter.png[]
75+
+
76+
Alternatively, run:
77+
+
78+
[source,terminal]
79+
----
80+
$ oc get projecthelmchartrepositories --namespace my-namespace
81+
----
82+
+
83+
.Example output
84+
----
85+
NAME AGE
86+
azure-sample-repo 1m
87+
----
88+
+
89+
[NOTE]
90+
====
91+
If a cluster administrator or a regular user with appropriate RBAC permissions removes all of the chart repositories in a specific namespace, then you cannot view the Helm option in the *+Add* view, *Developer Catalog*, and left navigation panel for that specific namespace.
92+
====

0 commit comments

Comments
 (0)