1
0
Fork 0

fix argocd namespace name

This commit is contained in:
Seraphim Strub 2025-01-11 22:11:40 +00:00
parent a2f3587ce0
commit d26086e2a7
3 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ metadata:
annotations: annotations:
argocd.argoproj.io/sync-wave: "10" argocd.argoproj.io/sync-wave: "10"
name: {{ $key }} name: {{ $key }}
namespace: {{ default "argocd-system" $.Values.argocdNamespace }} namespace: {{ default "argocd" $.Values.argocdNamespace }}
spec: spec:
destination: destination:
namespace: {{ default $key $destinationNamespace }} namespace: {{ default $key $destinationNamespace }}

View file

@ -2,7 +2,7 @@ apiVersion: argoproj.io/v1alpha1
kind: AppProject kind: AppProject
metadata: metadata:
name: {{ .Release.Name }} name: {{ .Release.Name }}
namespace: {{ default "argocd-system" .Values.argocdNamespace}} namespace: {{ default "argocd" .Values.argocdNamespace}}
spec: spec:
sourceRepos: sourceRepos:
- "{{ .Values.repository }}" - "{{ .Values.repository }}"

View file

@ -4,10 +4,10 @@ apiVersion: argoproj.io/v1alpha1
kind: Application kind: Application
metadata: metadata:
name: {{ .name }}-apps name: {{ .name }}-apps
namespace: {{ default "argocd-system" $.Values.argocdNamespace }} namespace: {{ default "argocd" $.Values.argocdNamespace }}
spec: spec:
destination: destination:
namespace: {{ default "argocd-system" $.Values.argocdNamespace }} namespace: {{ default "argocd" $.Values.argocdNamespace }}
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
project: default project: default
source: source: