fix: avoid unnecessary secret mounting if using github apps mode
@@ -54,6 +54,10 @@ spec:
value: "{{ .Values.git.kind }}"
- name: "GIT_SERVER"
value: "{{ .Values.git.server }}"
+{{- if .Values.tide.githubApp.enabled }}
+ - name: "GITHUB_APP_SECRET_DIR"
+ value: "/secrets/githubapp/tokens"
+{{- else }}
- name: "GIT_USER"
valueFrom:
secretKeyRef:
@@ -65,9 +69,6 @@ spec:
name: "jx-pipeline-git-{{ .Values.git.kind }}-{{ .Values.git.name }}"
key: password
value: "{{ .Values.git.token }}"
-{{- if .Values.tide.githubApp.enabled }}
- - name: "GITHUB_APP_SECRET_DIR"
- value: "/secrets/githubapp/tokens"
{{- end }}
{{- if .Values.tide.env }}
{{- range $pkey, $pval := .Values.tide.env }}
