Created
April 4, 2025 19:01
-
-
Save peschmae/6aee71dcc950a4b93600233adca09c2d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@data/values | |
--- | |
cluster: | |
name: "foo" | |
stack: | |
version: develop | |
platform: "aks" | |
ingress: | |
domain: lab.azure.k8wms.ch | |
feature: | |
highAvailability: | |
enabled: true | |
stack: | |
k8wms_bar: | |
state: install | |
k8wms_kube_prometheus_stack: | |
state: install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@data/values-schema | |
--- | |
#@overlay/match missing_ok=True | |
cluster: | |
#@schema/validation min_len=1 | |
name: "" | |
stack: | |
version: "stable" | |
#@schema/validation one_of=["aks", "eccd", "skp", "tkgi", "eks"] | |
platform: "" | |
ingress: | |
domain: "" | |
feature: | |
highAvailability: | |
enabled: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@data/values-schema | |
--- | |
#@overlay/match missing_ok=True | |
stack: | |
k8wms_bar: | |
#@schema/validation one_of=["disable", "install", "available"] | |
state: "install" | |
k8wms_kube_prometheus_stack: | |
#@schema/validation one_of=["disable", "install", "available"] | |
state: "install" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@data/values | |
--- | |
tool: | |
storage: | |
enabled: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@data/values-schema | |
#@overlay/match-child-defaults missing_ok=True | |
--- | |
tool: | |
#@schema/validation one_of=["k8wms_bar"] | |
name: "k8wms_bar" | |
storage: | |
enabled: false | |
size: 20Gi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:data", "data") | |
#@ load("@ytt:yaml", "yaml") | |
#@ load("@ytt:library", "library") | |
#@ load("@ytt:template", "template") | |
#@ def tool_enabled(tool_name): | |
#@ if data.values.tool.name == tool_name: | |
#@ return True | |
#@ end | |
#@ | |
#@ tool_state = data.values.stack[tool_name]["state"] | |
#@ if tool_state in ["install", "available"]: | |
#@ return True | |
#@ end | |
#@ return False | |
#@ end | |
k8wms_bar: | |
k8wms: | |
prometheus: | |
enabled: #@ tool_enabled("k8wms_kube_prometheus_stack") | |
bar: | |
persistentVolumeClaim: | |
enabled: #@ data.values.tool.storage.enabled | |
size: #@ data.values.tool.storage.size | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment