You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Mounting additional files in your custom configuration using the {product} operator
3
3
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.
5
5
6
6
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.
7
7
@@ -11,8 +11,8 @@ The `mountPath` field specifies the location where a ConfigMap or Secret is moun
11
11
12
12
[NOTE]
13
13
====
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.
16
16
====
17
17
18
18
@@ -22,16 +22,16 @@ The `mountPath` field specifies the location where a ConfigMap or Secret is moun
22
22
23
23
.Procedure
24
24
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:
26
26
+
27
-
.Minimal `{my-app-config-config-map}` custom resource example
27
+
.Minimal `{my-extra-file-configmap}` config map example
28
28
====
29
29
[source,yaml,subs="+attributes,+quotes"]
30
30
----
31
31
apiVersion: v1
32
32
kind: ConfigMap
33
33
metadata:
34
-
name: {my-product-cr-name}
34
+
name: {my-extra-file-configmap}
35
35
data:
36
36
file11.txt: |
37
37
My file11 content
@@ -40,7 +40,7 @@ data:
40
40
----
41
41
====
42
42
+
43
-
.Minimal `{my-product-secrets}` custom resource example
43
+
.Minimal `{my-product-secrets}` secret example
44
44
====
45
45
[source,yaml,subs="+attributes,+quotes"]
46
46
----
@@ -53,8 +53,9 @@ StringData:
53
53
secret-content
54
54
----
55
55
====
56
+
For more information, see xref:provisioning-your-custom-configuration[Provisioning and using your custom {product} configuration].
56
57
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:
Copy file name to clipboardExpand all lines: modules/release-notes/ref-release-notes-new-features.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ This section highlights new features in {product} {product-version}.
7
7
[id="enhancement-rhidp-2200"]
8
8
== Added an individual `mountPath`
9
9
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].
0 commit comments