Skip to content

Commit

Permalink
Merge pull request #213 from camptocamp/working-dir-GSSER-19
Browse files Browse the repository at this point in the history
Add missing workingDir in the schema
  • Loading branch information
sbrunner authored Jul 3, 2024
2 parents 3832c9f + f02f161 commit 0789196
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ spec:
command:
- sleep
- "3600"
workingDir: /tmp
- name: dd
securityContext:
runAsNonRoot: true
Expand Down Expand Up @@ -735,6 +736,7 @@ spec:
command:
- sleep
- "3600"
workingDir: /tmp
- name: dd
securityContext:
runAsNonRoot: true
Expand Down Expand Up @@ -866,6 +868,7 @@ spec:
command:
- sleep
- "3600"
workingDir: /tmp
- name: dd
securityContext:
runAsNonRoot: true
Expand Down
1 change: 1 addition & 0 deletions tests/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ services:
command:
- sleep
- '3600'
workingDir: /tmp
resources:
limits:
cpu: 100m
Expand Down
3 changes: 3 additions & 0 deletions values.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
- **`env`**: Refer to _[#/definitions/env](#definitions/env)_.
- **`resources`**: Refer to _[#/definitions/resources](#definitions/resources)_.
- **`command`**: Refer to _[#/definitions/command](#definitions/command)_.
- **`workingDir`**: Refer to _[#/definitions/workingDir](#definitions/workingDir)_.
- **`args`**: Refer to _[#/definitions/args](#definitions/args)_.
- **`volumeMounts`**: Refer to _[#/definitions/volumeMounts](#definitions/volumeMounts)_.
- **`volumeDevices`**: Refer to _[#/definitions/volumeDevices](#definitions/volumeDevices)_.
Expand All @@ -157,6 +158,7 @@
- **`env`**: Refer to _[#/definitions/env](#definitions/env)_.
- **`resources`**: Refer to _[#/definitions/resources](#definitions/resources)_.
- **`command`**: Refer to _[#/definitions/command](#definitions/command)_.
- **`workingDir`**: Refer to _[#/definitions/workingDir](#definitions/workingDir)_.
- **`args`**: Refer to _[#/definitions/args](#definitions/args)_.
- **`volumeMounts`**: Refer to _[#/definitions/volumeMounts](#definitions/volumeMounts)_.
- **`volumeDevices`**: Refer to _[#/definitions/volumeDevices](#definitions/volumeDevices)_.
Expand Down Expand Up @@ -251,6 +253,7 @@
- <a id="definitions/resources"></a>**`resources`** _(object)_: Container: The container resources.
- <a id="definitions/command"></a>**`command`** _(array)_: Container: The container command.
- **Items** _(string)_
- <a id="definitions/workingDir"></a>**`workingDir`** _(string)_: Container: The container working directory.
- <a id="definitions/args"></a>**`args`** _(array)_: Container: The container arguments.
- **Items** _(string)_
- <a id="definitions/volumeMounts"></a>**`volumeMounts`** _(object)_: Container: Volume mounts, the key is the mountPath of the volume.
Expand Down
10 changes: 10 additions & 0 deletions values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@
"description": "Container: The container command",
"items": { "type": "string" }
},
"workingDir": {
"type": "string",
"description": "Container: The container working directory"
},
"args": {
"type": "array",
"description": "Container: The container arguments",
Expand Down Expand Up @@ -848,6 +852,9 @@
"command": {
"$ref": "#/definitions/command"
},
"workingDir": {
"$ref": "#/definitions/workingDir"
},
"args": {
"$ref": "#/definitions/args"
},
Expand Down Expand Up @@ -880,6 +887,9 @@
"command": {
"$ref": "#/definitions/command"
},
"workingDir": {
"$ref": "#/definitions/workingDir"
},
"args": {
"$ref": "#/definitions/args"
},
Expand Down

0 comments on commit 0789196

Please sign in to comment.