Skip to content

Commit 7e979a8

Browse files
committed
namespace workloads with cluster name
Signed-off-by: Carlos Santana <[email protected]>
1 parent ec00735 commit 7e979a8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

charts/team/templates/namespaces-app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: argoproj.io/v1alpha1
22
kind: Application
33
metadata:
4-
name: '{{ .Release.Name }}-namespaces'
4+
name: {{ .Values.cluster }}-{{ .Release.Name }}-namespaces
55
spec:
66
project: default
77
source:

charts/team/templates/project.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: argoproj.io/v1alpha1
22
kind: AppProject
33
metadata:
4-
name: '{{ .Release.Name }}'
4+
name: {{ .Values.cluster }}-{{ .Release.Name }}
55
spec:
66
sourceRepos:
77
- 'https://github.com/{{ .Values.githubOrg | default .Release.Name }}/*'

charts/team/templates/repo-appset.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
apiVersion: argoproj.io/v1alpha1
55
kind: ApplicationSet
66
metadata:
7-
name: '{{ $.Release.Name }}-{{ . | trimSuffix "-deploy" }}'
7+
name: {{ $.Values.cluster }}-{{ $.Release.Name }}-{{ . | trimSuffix "-deploy" }}
88
spec:
99
syncPolicy:
1010
preserveResourcesOnDeletion: true
@@ -16,7 +16,7 @@ spec:
1616
- path: env/*
1717
template:
1818
metadata:
19-
name: '{{ $.Release.Name }}-{{ . | trimSuffix "-deploy" }}-{{ "{{" }}path.basename{{ "}}" }}'
19+
name: {{ $.Values.cluster }}-{{ $.Release.Name }}-{{ . | trimSuffix "-deploy" }}-{{ "{{" }}path.basename{{ "}}" }}
2020
# annotations:
2121
# notifications.argoproj.io/subscribe.on-deployed.github: ""
2222
spec:

0 commit comments

Comments
 (0)