|
41 | 41 | env: |
42 | 42 | - name: JDK_JAVA_OPTIONS |
43 | 43 | value: {{ .Values.additionalResources.javaOpts }} |
| 44 | + {{- if and .Values.spring_profiles.enabled .Values.localRepo.enabled }} |
| 45 | + - name: SPRING_PROFILES_ACTIVE |
| 46 | + value: "{{ .Values.spring_profiles.spring_profiles_active }},{{ .Values.localRepo.spring_profiles_active }}" |
| 47 | + {{- else if .Values.spring_profiles.enabled }} |
| 48 | + - name: SPRING_PROFILES_ACTIVE |
| 49 | + value: {{ .Values.spring_profiles.spring_profiles_active | quote }} |
| 50 | + {{- else if .Values.localRepo.enabled }} |
| 51 | + - name: SPRING_PROFILES_ACTIVE |
| 52 | + value: {{ .Values.localRepo.spring_profiles_active | quote }} |
| 53 | + {{- end }} |
44 | 54 | {{- if .Values.spring_profiles.enabled }} |
45 | 55 | {{- range $index, $repo := .Values.spring_profiles.spring_compositeRepos }} |
46 | 56 | - name: SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_{{ $index }}_URI |
|
78 | 88 | valueFrom: |
79 | 89 | secretKeyRef: |
80 | 90 | name: {{ include "config-server.fullname" $ }} |
81 | | - key: github-token-{{ $index }} |
| 91 | + key: SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_{{ $index }}_PASSWORD |
82 | 92 | {{- end }} |
83 | 93 | {{- if $repo.username }} |
84 | 94 | - name: SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_{{ $index }}_USERNAME |
@@ -147,20 +157,16 @@ spec: |
147 | 157 | {{- end }} |
148 | 158 | resources: |
149 | 159 | {{- toYaml .Values.resources | nindent 12 }} |
150 | | - {{- if .Values.spring_profiles.enabled }} |
151 | | - {{- if or .Values.localRepo.enabled (include "config-server.hasNative" . | eq "true") }} |
| 160 | + {{- if .Values.localRepo.enabled }} |
152 | 161 | volumeMounts: |
153 | 162 | - name: {{ .Values.volume.name }} |
154 | 163 | mountPath: {{ .Values.volume.mountDir }} |
155 | | - {{- end }} |
156 | 164 | {{- end }} |
157 | | - {{- if .Values.spring_profiles.enabled }} |
158 | | - {{- if or .Values.localRepo.enabled (include "config-server.hasNative" . | eq "true") }} |
| 165 | + {{- if .Values.localRepo.enabled }} |
159 | 166 | volumes: |
160 | 167 | - name: {{ .Values.volume.name }} |
161 | 168 | persistentVolumeClaim: |
162 | 169 | claimName: {{ .Values.volume.name }} |
163 | | - {{- end }} |
164 | 170 | {{- end }} |
165 | 171 | {{- with .Values.nodeSelector }} |
166 | 172 | nodeSelector: |
|
0 commit comments