Skip to content

Commit d149296

Browse files
jmagakGitHub Actions
and
GitHub Actions
authored
RHIDP-6130: Update docs to refer to new secret name (redhat-developer#962)
* Update docs to refer to new secret name RHIDP-6130 Update docs to refer to new secret name RHIDP-6130 Update docs to refer to new secret name * RHIDP-6130 Update docs to refer to new secret name * RHIDP-6130 Update docs to refer to new secret name --------- Co-authored-by: GitHub Actions <[email protected]>
1 parent 92d2f3f commit d149296

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

modules/configuring-external-databases/proc-configuring-postgresql-instance-using-helm.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ EOF
7676

7777
. Configure your PostgreSQL instance in the Helm configuration file named `values.yaml`:
7878
+
79-
[source,yaml, subs="+attributes"]
79+
[source,yaml,subs="+quotes,+attributes"]
8080
----
8181
# ...
8282
upstream:
@@ -140,7 +140,7 @@ upstream:
140140
secret:
141141
defaultMode: 420
142142
optional: true
143-
secretName: dynamic-plugins-npmrc
143+
secretName: '{{ printf "%s-dynamic-plugins-npmrc" .Release.Name }}'
144144
- name: postgres-crt
145145
secret:
146146
secretName: {my-product-database-certificates-secrets} <7>

modules/dynamic-plugins/proc-install-plugins-using-custom-npm-registry.adoc

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@
55

66
You can install external plugins in an air-gapped environment by setting up a custom NPM registry.
77

8-
You can configure the NPM registry URL and authentication information for dynamic plugin packages using a Helm chart. For dynamic plugin packages obtained through `npm pack`, you can use a `.npmrc` file.
8+
You can configure the NPM registry URL and authentication information for dynamic plugin packages using a Helm chart. For dynamic plugin packages obtained through `npm pack`, you can use a `.npmrc` file.
99

10-
Using the Helm chart, add the `.npmrc` file to the NPM registry by creating a secret named `dynamic-plugins-npmrc` with the following content:
10+
Using the Helm chart, add the `.npmrc` file to the NPM registry by creating a secret. For example:
1111

12-
[source,yaml]
12+
[source,yaml,subs="+quotes,+attributes"]
1313
----
1414
apiVersion: v1
1515
kind: Secret
1616
metadata:
17-
name: dynamic-plugins-npmrc
17+
name: `_<release_name>_-dynamic-plugins-npmrc` # <1>
1818
type: Opaque
1919
stringData:
2020
.npmrc: |
2121
registry=<registry-url>
2222
//<registry-url>:_authToken=<auth-token>
2323
...
2424
----
25+
<1> Replace `_<release_name>_` with your Helm release name. This name is a unique identifier for each chart installation in the Kubernetes cluster.

modules/dynamic-plugins/proc-load-plugin-js-package.adoc

+5-4
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,26 @@ registry=<registry-url>
4343
. When using {ocp-short} or Kubernetes:
4444
+
4545
--
46-
* Create a secret with the `.npmrc` content as follows:
46+
* Use the Helm chart to add the `.npmrc` file by creating a secret. For example:
4747
+
4848
.Example secret configuration
49-
[source,yaml]
49+
[source,yaml,subs="+quotes,+attributes"]
5050
----
5151
apiVersion: v1
5252
kind: Secret
5353
metadata:
54-
name: dynamic-plugins-npmrc
54+
name: `_<release_name>_-dynamic-plugins-npmrc` # <1>
5555
type: Opaque
5656
stringData:
5757
.npmrc: |
5858
registry=<registry-url>
5959
//<registry-url>:_authToken=<auth-token>
6060
----
61+
<1> Replace `_<release_name>_` with your Helm release name. This name is a unique identifier for each chart installation in the Kubernetes cluster.
6162

6263
* For {product-very-short} Helm chart, name the secret using the following format for automatic mounting:
6364
+
64-
`<release-name>-dynamic-plugins-npmrc`
65+
`_<release_name>_-dynamic-plugins-npmrc`
6566
--
6667

6768
. To apply the changes, restart the {product-very-short} application.

0 commit comments

Comments
 (0)