From c218a1fc4a1f75d75c222bf72001b33cac4c18fd Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Wed, 28 Feb 2024 10:57:02 +0100 Subject: [PATCH] feat(t8s-cluster/management-cluster)!: add environment parameter --- charts/t8s-cluster/ci/artifacthub-values.yaml | 2 ++ charts/t8s-cluster/templates/management-cluster/cluster.yaml | 3 +++ charts/t8s-cluster/values.schema.json | 3 +++ 3 files changed, 8 insertions(+) diff --git a/charts/t8s-cluster/ci/artifacthub-values.yaml b/charts/t8s-cluster/ci/artifacthub-values.yaml index e69de29bb..b1924e89c 100644 --- a/charts/t8s-cluster/ci/artifacthub-values.yaml +++ b/charts/t8s-cluster/ci/artifacthub-values.yaml @@ -0,0 +1,2 @@ +metadata: + environment: production diff --git a/charts/t8s-cluster/templates/management-cluster/cluster.yaml b/charts/t8s-cluster/templates/management-cluster/cluster.yaml index 6d2efb85f..e4a046f88 100644 --- a/charts/t8s-cluster/templates/management-cluster/cluster.yaml +++ b/charts/t8s-cluster/templates/management-cluster/cluster.yaml @@ -24,6 +24,9 @@ spec: teutonetesCloudRef: kind: TeutonetesCloud name: {{ required "You need to set the `cloud`" .Values.cloud }} + {{- with .Values.metadata.environment }} + environment: {{ . | quote }} + {{- end }} {{- with .Values.version }} version: {{ printf "v%d.%d.%d" (.major | int) (.minor | int) (.patch | int) }} {{- end }} diff --git a/charts/t8s-cluster/values.schema.json b/charts/t8s-cluster/values.schema.json index b392d94bb..bc6acda9c 100644 --- a/charts/t8s-cluster/values.schema.json +++ b/charts/t8s-cluster/values.schema.json @@ -106,6 +106,9 @@ }, "remarks": { "type": "string" + }, + "environment": { + "type": "string" } }, "required": [