Skip to content

Commit 2c0985b

Browse files
committed
Fixing indentation error
1 parent 5da93da commit 2c0985b

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

artifacts/attributes.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
:my-product-database-certificates-secrets: my-rhdh-database-certificates-secrets
2828
:my-product-database-secrets: my-rhdh-database-secrets
2929
:my-product-url: https://__<my_developer_hub_url>__
30+
:my-extra-file-configmap: my-project-configmap
3031

3132
// Red Hat Platforms
3233
:ocp-brand-name: Red Hat OpenShift Container Platform

assemblies/assembly-provisioning-a-custom-configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ include::modules/configuring/proc-provisioning-your-custom-configuration.adoc[le
2222

2323
include::modules/configuring/proc-using-the-operator-to-run-rhdh-with-your-custom-configuration.adoc[leveloffset=+1]
2424

25-
include::modules/configuring/proc-mounting-additional-files-in-your-custom-configuration-using-rhdh-operator.adoc[][leveloffset=+2]
25+
include::modules/configuring/proc-mounting-additional-files-in-your-custom-configuration-using-rhdh-operator.adoc[leveloffset=+2]
2626

2727
include::modules/configuring/proc-using-the-helm-chart-to-run-rhdh-with-your-custom-configuration.adoc[leveloffset=+1]
2828

modules/configuring/proc-mounting-additional-files-in-your-custom-configuration-using-rhdh-operator.adoc

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[id="mounting-additional-files-in-your-custom-configuration-using-rhdh-operator"]
22
= Mounting additional files in your custom configuration using the {product} operator
33

4-
You can use the {product-short} operator to mount extra files, such as ConfigMaps and Secrets, to the container in a preferred location.
4+
You can use the {product-short} Operator to mount extra files, such as config maps and secrets, to the container in a preferred location.
55

66
The `mountPath` field specifies the location where a ConfigMap or Secret is mounted. The behavior of the mount, whether it includes or excludes a `subPath`, depends on the specification of the `key` or `mountPath` fields.
77

@@ -11,8 +11,8 @@ The `mountPath` field specifies the location where a ConfigMap or Secret is moun
1111

1212
[NOTE]
1313
====
14-
* {ocp-short} does not automatically update a volume mounted with subPath. By default, the {product-very-short} operator monitors these Config Maps or Secrets and refreshes the {product-very-short} Pod when changes occur.
15-
* For security purposes, {product} restricts the Operator Service Account's read access to Secrets. As a result, mounting files from Secrets without specifying both mountPath and key is not supported.
14+
* {ocp-short} does not automatically update a volume mounted with subPath. By default, the {product-very-short} operator monitors these ConfigMaps or Secrets and refreshes the {product-very-short} Pod when changes occur.
15+
* For security purposes, {product} does not give the Operator Service Account read access to Secrets. As a result, mounting files from Secrets without specifying both mountPath and key is not supported.
1616
====
1717

1818

@@ -22,16 +22,16 @@ The `mountPath` field specifies the location where a ConfigMap or Secret is moun
2222

2323
.Procedure
2424

25-
. In {ocp-short}, author your ConfigMap or Secret custom resource in a YAML file. For more information, see link:{installing-on-ocp-book-url}#provisioning-your-custom-configuration[].
25+
. In {ocp-short}, create your config map or secret with the following YAML codes:
2626
+
27-
.Minimal `{my-app-config-config-map}` custom resource example
27+
.Minimal `{my-extra-file-configmap}` config map example
2828
====
2929
[source,yaml,subs="+attributes,+quotes"]
3030
----
3131
apiVersion: v1
3232
kind: ConfigMap
3333
metadata:
34-
name: {my-product-cr-name}
34+
name: {my-extra-file-configmap}
3535
data:
3636
file11.txt: |
3737
My file11 content
@@ -40,7 +40,7 @@ data:
4040
----
4141
====
4242
+
43-
.Minimal `{my-product-secrets}` custom resource example
43+
.Minimal `{my-product-secrets}` secret example
4444
====
4545
[source,yaml,subs="+attributes,+quotes"]
4646
----
@@ -53,8 +53,9 @@ StringData:
5353
secret-content
5454
----
5555
====
56+
For more information, see xref:provisioning-your-custom-configuration[Provisioning and using your custom {product} configuration].
5657

57-
. Declare the ConfigMap or Secret file in your `{product-custom-resource-type}` custom resource.
58+
. Set the value of the `configMaps name` to the name of the config map or `secrets name` to the name of the secret file in your `{product-custom-resource-type}` CR. For example:
5859
====
5960
[source,yaml,subs="+attributes,+quotes"]
6061
----
@@ -63,11 +64,11 @@ spec:
6364
extraFiles:
6465
mountPath: /my/path
6566
configMaps:
66-
- name: {my-app-config-config-map}
67+
- name: {my-extra-file-configmap}
6768
key: file12.txt
6869
mountPath: /my/my-rhdh-config-map/path
6970
secrets:
70-
- name: my-rhdh-secret
71+
- name: {my-product-secrets}
7172
key: secret11.txt
7273
mountPath: /my/my-rhdh-secret/path
7374

modules/release-notes/ref-release-notes-new-features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This section highlights new features in {product} {product-version}.
77
[id="enhancement-rhidp-2200"]
88
== Added an individual `mountPath`
99

10-
This update adds an additional individual `mountPath` for extra configmaps or secrets.
10+
This update adds an individual `mountPath` for link:{configuring-book-url}#proc-mounting-additional-files-in-your-custom-configuration-using-rhdh-operator[extra configmaps or secrets].
1111

1212
[id="feature-rhidp-3621"]
1313
== `PersistentVolumeClaims` support is available

0 commit comments

Comments
 (0)