From 4ac9adf39e46508c7a9fa6c04c3c99fef35008b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 14 Mar 2024 14:27:06 +0100 Subject: [PATCH] Re add releaseTrunc and prefixTrunc on the root --- tests/expected.yaml | 6 +++--- tests/values.yaml | 1 + values.md | 2 ++ values.schema.json | 6 ++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/tests/expected.yaml b/tests/expected.yaml index 39ab1ec..cddc4fa 100644 --- a/tests/expected.yaml +++ b/tests/expected.yaml @@ -156,7 +156,7 @@ spec: apiVersion: v1 kind: ConfigMap metadata: - name: custom-custom-pod + name: cus-custom-pod labels: helm.sh/chart: custom-pod app.kubernetes.io/version: "1.0" @@ -943,7 +943,7 @@ spec: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: custom-custom-pod-host1 + name: cus-custom-pod-host1 labels: helm.sh/chart: custom-pod app.kubernetes.io/version: "1.0" @@ -1014,7 +1014,7 @@ spec: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: custom-custom-pod-host2 + name: cus-custom-pod-host2 labels: helm.sh/chart: custom-pod app.kubernetes.io/version: "1.0" diff --git a/tests/values.yaml b/tests/values.yaml index be083f6..eb02eab 100644 --- a/tests/values.yaml +++ b/tests/values.yaml @@ -1,4 +1,5 @@ metadata: true +releaseTrunc: 3 securityContext: runAsNonRoot: true diff --git a/values.md b/values.md index ac8bf10..59cb96c 100644 --- a/values.md +++ b/values.md @@ -10,6 +10,8 @@ - **`nameOverride`**: Refer to _[#/definitions/nameOverride](#definitions/nameOverride)_. - **`fullnameOverride`**: Refer to _[#/definitions/fullnameOverride](#definitions/fullnameOverride)_. - **`serviceName`**: Refer to _[#/definitions/serviceName](#definitions/serviceName)_. +- **`releaseTrunc`**: Refer to _[#/definitions/releaseTrunc](#definitions/releaseTrunc)_. +- **`prefixTrunc`**: Refer to _[#/definitions/prefixTrunc](#definitions/prefixTrunc)_. - **`metadata`** _(boolean)_: Create a ConfigMap to expose some metadata about the chart. - **`ingress`** _(object)_: Cannot contain additional properties. - **`enabled`** _(boolean)_: Enable the Ingress. diff --git a/values.schema.json b/values.schema.json index ddb5c2b..e4398f5 100644 --- a/values.schema.json +++ b/values.schema.json @@ -265,6 +265,12 @@ "serviceName": { "$ref": "#/definitions/serviceName" }, + "releaseTrunc": { + "$ref": "#/definitions/releaseTrunc" + }, + "prefixTrunc": { + "$ref": "#/definitions/prefixTrunc" + }, "metadata": { "type": "boolean", "description": "Create a ConfigMap to expose some metadata about the chart"