Added cluster variables for flux substitutions

This commit is contained in:
2025-12-02 02:18:46 +01:00
parent f5798dae4c
commit 5eeba518a9
4 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
cluster:
inlineManifests:
- name: cluster-variables
contents: |
apiVersion: v1
kind: Namespace
metadata:
name: flux-system
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-variables
namespace: flux-system
data:
cluster_env: {%- if node.cluster.production %} production {%- else %} staging {%- endif %}