From f02f1615287566d37894a2cc3c0629007688a2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Wed, 3 Jul 2024 12:34:33 +0200 Subject: [PATCH] Add missing workingDir in the schema --- tests/expected.yaml | 3 +++ tests/values.yaml | 1 + values.md | 3 +++ values.schema.json | 10 ++++++++++ 4 files changed, 17 insertions(+) diff --git a/tests/expected.yaml b/tests/expected.yaml index 47a4bd0..238d567 100644 --- a/tests/expected.yaml +++ b/tests/expected.yaml @@ -594,6 +594,7 @@ spec: command: - sleep - "3600" + workingDir: /tmp - name: dd securityContext: runAsNonRoot: true @@ -735,6 +736,7 @@ spec: command: - sleep - "3600" + workingDir: /tmp - name: dd securityContext: runAsNonRoot: true @@ -866,6 +868,7 @@ spec: command: - sleep - "3600" + workingDir: /tmp - name: dd securityContext: runAsNonRoot: true diff --git a/tests/values.yaml b/tests/values.yaml index c5c24d9..0142665 100644 --- a/tests/values.yaml +++ b/tests/values.yaml @@ -113,6 +113,7 @@ services: command: - sleep - '3600' + workingDir: /tmp resources: limits: cpu: 100m diff --git a/values.md b/values.md index b924c4f..2fb3f83 100644 --- a/values.md +++ b/values.md @@ -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)_. @@ -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)_. @@ -251,6 +253,7 @@ - **`resources`** _(object)_: Container: The container resources. - **`command`** _(array)_: Container: The container command. - **Items** _(string)_ +- **`workingDir`** _(string)_: Container: The container working directory. - **`args`** _(array)_: Container: The container arguments. - **Items** _(string)_ - **`volumeMounts`** _(object)_: Container: Volume mounts, the key is the mountPath of the volume. diff --git a/values.schema.json b/values.schema.json index 290e02c..c374dc4 100644 --- a/values.schema.json +++ b/values.schema.json @@ -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", @@ -848,6 +852,9 @@ "command": { "$ref": "#/definitions/command" }, + "workingDir": { + "$ref": "#/definitions/workingDir" + }, "args": { "$ref": "#/definitions/args" }, @@ -880,6 +887,9 @@ "command": { "$ref": "#/definitions/command" }, + "workingDir": { + "$ref": "#/definitions/workingDir" + }, "args": { "$ref": "#/definitions/args" },