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
Copy file name to clipboardExpand all lines: modules/administration-guide/pages/configuring-a-user-namespace.adoc
+27-13Lines changed: 27 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,9 @@ In reverse, if a {kubernetes} resource is modified in a user namespace,
20
20
21
21
[WARNING]
22
22
====
23
-
Applying or modifying a `Secret` or `ConfigMap` with the `controller.devfile.io/mount-to-devworkspace: 'true'` label restarts all running workspaces in the {namespace}. Ensure that users save their work before you apply these changes.
23
+
Applying or modifying a `Secret` or `ConfigMap` with the `controller.devfile.io/mount-to-devworkspace: 'true'` label restarts all running workspaces in the {namespace}.
24
+
25
+
To mount the `Secret` or `ConfigMap` only at workspace start and prevent automatic restarts, add the `controller.devfile.io/mount-on-start: 'true'` annotation.
24
26
====
25
27
26
28
.Procedure
@@ -44,21 +46,23 @@ data:
44
46
====
45
47
To enhance the configurability, you can customize the `ConfigMap` by adding additional labels and annotations.
46
48
+
47
-
Add the following labels if you do not want the ConfigMap to be mounted automatically:
49
+
Add the annotation below if you want the ConfigMap to be retained in a user {namespace}
50
+
after being deleted from {prod-namespace} namespace:
Add the annotation below if you want the Secret to be retained in a user {namespace}
116
-
after being deleted from {prod-namespace} namespace:
119
+
Add the following annotation to prevent workspace restarts when the Secret is created:
117
120
+
118
121
[source,yaml,subs="+attributes,+quotes"]
119
122
----
120
-
che.eclipse.org/sync-retain-on-delete: "true"
123
+
controller.devfile.io/mount-on-start: "true"
121
124
----
122
125
+
126
+
With this annotation, the Secret is mounted only at workspace start.
127
+
+
123
128
See the link:https://github.com/devfile/devworkspace-operator/blob/main/docs/additional-configuration.adoc#automatically-mounting-volumes-configmaps-and-secrets[mounting volumes, configmaps, and secrets]
124
129
for other possible labels and annotations.
125
130
@@ -151,6 +156,15 @@ Add the annotation below if you want the `PersistentVolumeClaim` to be deleted i
151
156
che.eclipse.org/sync-retain-on-delete: "false"
152
157
----
153
158
+
159
+
Add the following annotation to prevent workspace restarts when the `PersistentVolumeClaim` is created:
160
+
+
161
+
[source,yaml,subs="+attributes,+quotes"]
162
+
----
163
+
controller.devfile.io/mount-on-start: "true"
164
+
----
165
+
+
166
+
With this annotation, the `PersistentVolumeClaim` is mounted only at workspace start.
167
+
+
154
168
See the link:https://github.com/devfile/devworkspace-operator/blob/main/docs/additional-configuration.adoc#automatically-mounting-volumes-configmaps-and-secrets[mounting volumes, configmaps, and secrets]
= Configuring {kubernetes} namespace creation on OpenShift
9
9
10
10
By default, on {ocp} clusters, {prod-short} uses the ProjectRequest API to create projects. This triggers cluster-specific link:https://docs.openshift.com/container-platform/latest/applications/projects/configuring-project-creation.html[Project Templates], which can apply additional resources or policies.
11
11
@@ -17,7 +17,7 @@ On {ocp}, you can bypass Project Templates and create standard {kubernetes} Name
17
17
18
18
.Procedure
19
19
20
-
. Set the `createNamespaceDirectly` field to `true`:
20
+
. Set the `createKubernetesNamespaces` field to `true`:
21
21
+
22
22
[source,shell,subs="+quotes,+attributes,+macros"]
23
23
----
@@ -28,7 +28,7 @@ On {ocp}, you can bypass Project Templates and create standard {kubernetes} Name
0 commit comments