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
See the link:https://github.com/devfile/devworkspace-operator/blob/main/docs/additional-configuration.adoc#automatically-mounting-volumes-configmaps-and-secrets[Automatically mounting volumes, configmaps, and secrets]
23
31
for other possible labels and annotations.
24
32
+
33
+
.Replicate a ConfigMap into every user {orch-namespace}:
.Mounting a `settings.xml` file to a user workspace:
52
+
.Replicate a ConfigMap into every user {orch-namespace} and automatically mount a `settings.xml` file into every user container by path `/home/user/.m2`:
40
53
====
41
54
[source,yaml,subs="+attributes,+quotes"]
42
55
----
@@ -61,11 +74,21 @@ data:
61
74
----
62
75
====
63
76
64
-
. Create the `Secret` below to replicate it to every user namespace.
77
+
. Create the `Secret` below to replicate into every user {orch-namespace}.
65
78
To enhance the configurability, you can customize the `Secret` by adding additional labels and annotations.
79
+
By default, the Secret is automatically mounted into user workspaces.
80
+
If you do not want the Secret to be mounted, explicitly add the following labels to override the behavior:
See the link:https://github.com/devfile/devworkspace-operator/blob/main/docs/additional-configuration.adoc#automatically-mounting-volumes-configmaps-and-secrets[Automatically mounting volumes, configmaps, and secrets]
67
88
for other possible labels and annotations.
68
89
+
90
+
.Replicate a Secret into every user {orch-namespace}:
.Replicate a Secret into every user {orch-namespace} and automatically mount a `trusted-certificates.crt` file into every user container by path `/etc/pki/ca-trust/source/anchors`:
84
112
====
85
113
[source,yaml,subs="+attributes,+quotes"]
86
114
----
@@ -104,7 +132,7 @@ It can be achieved manually or by adding this command to a `postStart` event in
104
132
See the link:https://devfile.io/docs/{devfile-api-version}/adding-event-bindings#post-start-object[Adding event bindings in a devfile].
105
133
====
106
134
+
107
-
.Mounting environment variables to a user workspace:
135
+
.Replicate a Secret into every user {orch-namespace} and automatically mount as environment variables into every user container:
108
136
====
109
137
[source,yaml,subs="+attributes,+quotes"]
110
138
----
@@ -124,7 +152,8 @@ stringData:
124
152
----
125
153
====
126
154
127
-
. Create the `PersistentVolumeClaim` below to replicate it to every user namespace.
155
+
156
+
. Create the `PersistentVolumeClaim` below to replicate it to every user {orch-namespace}.
128
157
+
129
158
To enhance the configurability, you can customize the `PersistentVolumeClaim` by adding additional labels and annotations.
130
159
See the link:https://github.com/devfile/devworkspace-operator/blob/main/docs/additional-configuration.adoc#automatically-mounting-volumes-configmaps-and-secrets[Automatically mounting volumes, configmaps, and secrets]
@@ -172,7 +201,7 @@ spec:
172
201
----
173
202
====
174
203
175
-
. To leverage the OpenShift Kubernetes Engine, you can create a `Template` object to replicate all resources defined within the template across each user {namespace}.
204
+
. To leverage the OpenShift Kubernetes Engine, you can create a `Template` object to replicate all resources defined within the template across each user {orch-namespace}.
176
205
+
177
206
Aside from the previously mentioned `ConfigMap`, `Secret`, and `PersistentVolumeClaim`, `Template` objects can include:
178
207
+
@@ -204,7 +233,7 @@ The `parameters` are optional and define which parameters can be used. Currently
204
233
+
205
234
The {namespace} name in objects will be replaced with the user's {namespace} name during synchronization.
206
235
+
207
-
.Replicating {kubernetes} resources to a user namespace:
236
+
.Replicating {kubernetes} resources to a user {orch-namespace}:
0 commit comments