Skip to content

Instantly share code, notes, and snippets.

@quiiver
Created November 24, 2025 18:43
Show Gist options
  • Select an option

  • Save quiiver/913ab49cd6940dcfc5f63d28952f5292 to your computer and use it in GitHub Desktop.

Select an option

Save quiiver/913ab49cd6940dcfc5f63d28952f5292 to your computer and use it in GitHub Desktop.
diff --git i/argo/k8s/argocd-bootstrap/templates/tenants/tenant-applicationsets.yaml w/argo/k8s/argocd-bootstrap/templates/tenants/tenant-applicationsets.yaml
index 8d59fcac..e232d7c7 100644
--- i/argo/k8s/argocd-bootstrap/templates/tenants/tenant-applicationsets.yaml
+++ w/argo/k8s/argocd-bootstrap/templates/tenants/tenant-applicationsets.yaml
@@ -190,7 +190,8 @@ spec:
ignoreMissingValueFiles: true
{{- end }}
destination:
- name: "{{ $tenant.globals.function }}-{{ $tenant.globals.risk_level }}-{{ ($tenant.globals).cluster_type | default "private" }}-{{ $realm }}-{{ $region }}"
+ # Enable environment level cluster type override
+ name: "{{ $tenant.globals.function }}-{{ $tenant.globals.risk_level }}-{{ "{{" }} dig "cluster_type" "{{ ($tenant.globals).cluster_type | default "private" }}" . {{ "}}" }}-{{ $realm }}-{{ $region }}"
namespace: "{{ $tenant.globals.app_code }}-{{ "{{" }} .name {{ "}}" }}"
info:
{{- if $multiChart }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment