File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
charts/devtron-backups/templates Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ metadata:
88type : opaque
99data :
1010 S3_BUCKET_NAME : {{ .Values.global.S3.S3_BUCKET_NAME | b64enc }}
11+ {{- if not .Values.global.S3.NODE_ROLE }}
1112 AWS_ACCESS_KEY : {{ .Values.global.S3.S3_ACCESS_KEY | b64enc }}
1213 AWS_SECRET_KEY : {{ .Values.global.S3.S3_SECRET_KEY | b64enc }}
14+ {{- end }}
1315 AWS_REGION : {{ .Values.global.S3.AWS_REGION | default "us-east-1" | b64enc }}
1416{{- end }}
1517---
5254 volumeMounts :
5355 - mountPath : /tmp
5456 name : psql-volume
57+ {{- if not .Values.global.S3.NODE_ROLE }}
5558 env :
5659 - name : S3_BUCKET
5760 valueFrom :
7376 secretKeyRef :
7477 name : devtron-s3-backup-secret
7578 key : AWS_REGION
79+ {{- end }}
7680 imagePullPolicy : Always
7781 args :
7882 - /bin/bash
@@ -130,6 +134,7 @@ spec:
130134 volumeMounts :
131135 - mountPath : /cache
132136 name : argocd-volume
137+ {{- if not .Values.global.S3.NODE_ROLE }}
133138 env :
134139 - name : S3_BUCKET
135140 valueFrom :
@@ -151,6 +156,7 @@ spec:
151156 secretKeyRef :
152157 name : devtron-s3-backup-secret
153158 key : AWS_REGION
159+ {{- end }}
154160 imagePullPolicy : Always
155161 args :
156162 - /bin/bash
@@ -175,4 +181,4 @@ spec:
175181 restartPolicy : OnFailure
176182 serviceAccountName : {{ .Values.argocd_backup.serviceAccountName }}
177183{{- end }}
178- {{- end }}
184+ {{- end }}
You can’t perform that action at this time.
0 commit comments