Skip to content

Commit 78d3d47

Browse files
committed
Add sample that uses pod overrides attribute
Signed-off-by: Angel Misevski <[email protected]>
1 parent 6078f61 commit 78d3d47

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

samples/pod-overrides.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
kind: DevWorkspace
2+
apiVersion: workspace.devfile.io/v1alpha2
3+
metadata:
4+
name: theia-next
5+
spec:
6+
started: true
7+
template:
8+
attributes:
9+
pod-overrides:
10+
metadata:
11+
annotations:
12+
io.openshift.userns: "true"
13+
io.kubernetes.cri-o.userns-mode: "auto:size=65536;map-to-root=true" # <-- user namespace
14+
openshift.io/scc: container-build
15+
spec:
16+
runtimeClassName: kata
17+
schedulerName: stork
18+
projects:
19+
- name: web-nodejs-sample
20+
git:
21+
remotes:
22+
origin: "https://github.com/che-samples/web-nodejs-sample.git"
23+
components:
24+
- name: theia
25+
plugin:
26+
uri: https://che-plugin-registry-main.surge.sh/v3/plugins/eclipse/che-theia/next/devfile.yaml
27+
components:
28+
- name: theia-ide
29+
container:
30+
env:
31+
- name: THEIA_HOST
32+
value: 0.0.0.0
33+
commands:
34+
- id: say-hello
35+
exec:
36+
component: theia-ide
37+
commandLine: echo "Hello from $(pwd)"
38+
workingDir: ${PROJECTS_ROOT}/project/app

0 commit comments

Comments
 (0)