Skip to content

Commit 14c8f28

Browse files
authored
Merge pull request #103 from microsoft/update-to-track-configdir
Update config directory for appsettings.json to SPACEFX_CONFIG_DIR
2 parents b41347e + 50380ae commit 14c8f28

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

chart/templates/_appsettings.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ configMap:
6262
{{- $serviceValues := .serviceValues }}
6363
{{- $globalValues := .globalValues }}
6464
name: {{ $serviceValues.appName }}-config-volume
65-
mountPath: {{ $serviceValues.workingDir }}-config
65+
mountPath: {{ $globalValues.spacefxSecretDirectory }}/config
6666
{{- end }}

chart/templates/payload_app_template.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
# VolumeMounts
2626
{{- if $serviceValues.fileServer.volumeMountsEnabled }}
2727
volumeMounts:
28-
{{- $secretsMount := printf "%s" (include "spacefx.appsettings.json.volumemount" (dict "globalValues" $globalValues "serviceValues" $serviceValues) | nindent 2 | trim) }}
29-
{{- printf "- %s" $secretsMount | nindent 2 }}
28+
{{- $appSettingsMount := printf "%s" (include "spacefx.appsettings.json.volumemount" (dict "globalValues" $globalValues "serviceValues" $serviceValues) | nindent 2 | trim) }}
29+
{{- printf "- %s" $appSettingsMount | nindent 2 }}
3030
{{- range $volumeKey, $volumeName := $globalValues.xferVolumes }}
3131
{{- $fileServerVolumeMount := printf "%s" (include "spacefx.fileserver.clientapp.volumemount" (dict "globalValues" $globalValues "serviceValues" $serviceValues "volumeName" $volumeName) | nindent 2 | trim) }}
3232
{{- printf "- %s" $fileServerVolumeMount | nindent 2 }}
@@ -43,8 +43,6 @@ volumeMounts:
4343
mountPath: {{ $hostDirectoryMount.hostPath }}
4444
{{- end }}
4545
{{- end }}
46-
{{- $appSettingsMount := printf "%s" (include "spacefx.appsettings.json.volumemount" (dict "globalValues" $globalValues "serviceValues" $serviceValues) | nindent 2 | trim) }}
47-
{{- printf "- %s" $appSettingsMount | nindent 2 }}
4846
{{- end }}
4947
# Volumes
5048
{{- if $serviceValues.fileServer.volumesEnabled }}
@@ -75,4 +73,7 @@ volumes:
7573
{{- if $serviceValues.serviceAccount.enabled }}
7674
{{- include "spacefx.service_account" (dict "serviceValues" $serviceValues "globalValues" $globalValues) }}
7775
{{- end }}
76+
{{- if $serviceValues.restartPolicy.enabled }}
77+
{{ $serviceValues.restartPolicy.restartPolicy | quote }}
78+
{{- end }}
7879
{{- end }}

chart/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,9 @@ services:
393393
workingDir: /workspaces/hostsvc-position
394394
payloadapp:
395395
payloadappTemplate:
396+
restartPolicy:
397+
enabled: false
398+
restartPolicy: Never
396399
annotations:
397400
enabled: false
398401
daprEnabled: false

0 commit comments

Comments
 (0)