feat(argocd): apps override destination namespace; kadans-jobs → kadans (#38)

Co-authored-by: Gabriel Radureau <[email protected]>
Co-committed-by: Gabriel Radureau <[email protected]>
This commit was merged in pull request #38.
This commit is contained in:
2026-07-20 10:23:34 +02:00
committed by arcodange
parent 342026a3d9
commit 1f22669ac6
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -1,5 +1,8 @@
{{- range $app_name, $app_attr := .Values.gitea_applications -}}
{{- $org := default "arcodange-org" $app_attr.org -}}
{{- /* Namespace defaults to the app name; override lets siblings share one
(e.g. kadans-jobs deploys into the `kadans` namespace). */ -}}
{{- $ns := default $app_name $app_attr.namespace -}}
---
apiVersion: argoproj.io/v1alpha1
kind: Application
@@ -20,7 +23,7 @@ spec:
path: chart
destination:
server: https://kubernetes.default.svc
namespace: {{ $app_name }}
namespace: {{ $ns }}
syncPolicy:
{{- if $app_attr.syncPolicy }}
{{- toYaml $app_attr.syncPolicy | nindent 4 }}