feat(argocd): let apps override their destination namespace; kadans-jobs → kadans
The destination namespace was hardcoded to the app name. A per-app `namespace` override lets siblings share one: the kadans-jobs analysis façade now deploys into the `kadans` namespace alongside the app it serves, instead of a namespace of its own. Default is unchanged ($ns defaults to $app_name), so every other app renders byte-identical. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_013ws8L74dVZmp97Wu36fm8j
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -46,6 +46,8 @@ gitea_applications:
|
||||
argocd-image-updater.argoproj.io/kadans.update-strategy: digest
|
||||
kadans-jobs:
|
||||
org: arcodange
|
||||
# La façade d'analyse vit dans le namespace de l'app qu'elle sert.
|
||||
namespace: kadans
|
||||
annotations:
|
||||
argocd-image-updater.argoproj.io/image-list: kadans-jobs=gitea.arcodange.lab/arcodange/kadans-jobs:latest
|
||||
argocd-image-updater.argoproj.io/kadans-jobs.update-strategy: digest
|
||||
|
||||
Reference in New Issue
Block a user