Skip to content

Commit

Permalink
feat(t8s-cluster/management-cluster)!: add environment parameter (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau authored Feb 29, 2024
1 parent 139d6df commit e452f9e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/t8s-cluster/ci/artifacthub-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
metadata:
environment: production
3 changes: 3 additions & 0 deletions charts/t8s-cluster/templates/management-cluster/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/t8s-cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
},
"remarks": {
"type": "string"
},
"environment": {
"type": "string"
}
},
"required": [
Expand Down

0 comments on commit e452f9e

Please sign in to comment.