Skip to content

Commit 4cdcf09

Browse files
authored
Implement yaml extensions overwriting the default pod/container spec (#75)
* Implement yaml extensions overwriting the default pod/container spec * format files * Extend specs for container job and include docker and k8s tests in k8s * Create table tests for docker tests * included warnings and extracted append logic as generic * updated merge to allow for file read * reverted back examples and k8s/tests * reverted back docker tests * Tests for extension prepare-job * Fix lint and format and merge error * Added basic test for container step * revert hooklib since new definition for container options is received from a file * revert docker options since create options are a string * Fix revert * Update package locks and deps * included example of extension.yaml. Added side-car container that was missing * Ignore spec modification for the service containers, change selector to * fix lint error * Add missing image override * Add comment explaining merge object meta with job and pod * fix test
1 parent 5107bb1 commit 4cdcf09

File tree

13 files changed

+671
-101
lines changed

13 files changed

+671
-101
lines changed

examples/extension.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
metadata:
2+
annotations:
3+
annotated-by: "extension"
4+
labels:
5+
labeled-by: "extension"
6+
spec:
7+
securityContext:
8+
runAsUser: 1000
9+
runAsGroup: 3000
10+
restartPolicy: Never
11+
containers:
12+
- name: $job # overwirtes job container
13+
env:
14+
- name: ENV1
15+
value: "value1"
16+
imagePullPolicy: Always
17+
image: "busybox:1.28" # Ignored
18+
command:
19+
- sh
20+
args:
21+
- -c
22+
- sleep 50
23+
- name: side-car
24+
image: "ubuntu:latest" # required
25+
command:
26+
- sh
27+
args:
28+
- -c
29+
- sleep 60
30+

packages/docker/package-lock.json

Lines changed: 59 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/hooklib/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)