Skip to content

Commit

Permalink
Merge pull request #103 from microsoft/update-to-track-configdir
Browse files Browse the repository at this point in the history
Update config directory for appsettings.json to SPACEFX_CONFIG_DIR
  • Loading branch information
bradarm authored Aug 2, 2024
2 parents b41347e + 50380ae commit 14c8f28
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chart/templates/_appsettings.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ configMap:
{{- $serviceValues := .serviceValues }}
{{- $globalValues := .globalValues }}
name: {{ $serviceValues.appName }}-config-volume
mountPath: {{ $serviceValues.workingDir }}-config
mountPath: {{ $globalValues.spacefxSecretDirectory }}/config
{{- end }}
9 changes: 5 additions & 4 deletions chart/templates/payload_app_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
# VolumeMounts
{{- if $serviceValues.fileServer.volumeMountsEnabled }}
volumeMounts:
{{- $secretsMount := printf "%s" (include "spacefx.appsettings.json.volumemount" (dict "globalValues" $globalValues "serviceValues" $serviceValues) | nindent 2 | trim) }}
{{- printf "- %s" $secretsMount | nindent 2 }}
{{- $appSettingsMount := printf "%s" (include "spacefx.appsettings.json.volumemount" (dict "globalValues" $globalValues "serviceValues" $serviceValues) | nindent 2 | trim) }}
{{- printf "- %s" $appSettingsMount | nindent 2 }}
{{- range $volumeKey, $volumeName := $globalValues.xferVolumes }}
{{- $fileServerVolumeMount := printf "%s" (include "spacefx.fileserver.clientapp.volumemount" (dict "globalValues" $globalValues "serviceValues" $serviceValues "volumeName" $volumeName) | nindent 2 | trim) }}
{{- printf "- %s" $fileServerVolumeMount | nindent 2 }}
Expand All @@ -43,8 +43,6 @@ volumeMounts:
mountPath: {{ $hostDirectoryMount.hostPath }}
{{- end }}
{{- end }}
{{- $appSettingsMount := printf "%s" (include "spacefx.appsettings.json.volumemount" (dict "globalValues" $globalValues "serviceValues" $serviceValues) | nindent 2 | trim) }}
{{- printf "- %s" $appSettingsMount | nindent 2 }}
{{- end }}
# Volumes
{{- if $serviceValues.fileServer.volumesEnabled }}
Expand Down Expand Up @@ -75,4 +73,7 @@ volumes:
{{- if $serviceValues.serviceAccount.enabled }}
{{- include "spacefx.service_account" (dict "serviceValues" $serviceValues "globalValues" $globalValues) }}
{{- end }}
{{- if $serviceValues.restartPolicy.enabled }}
{{ $serviceValues.restartPolicy.restartPolicy | quote }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ services:
workingDir: /workspaces/hostsvc-position
payloadapp:
payloadappTemplate:
restartPolicy:
enabled: false
restartPolicy: Never
annotations:
enabled: false
daprEnabled: false
Expand Down

0 comments on commit 14c8f28

Please sign in to comment.