Skip to content

Commit

Permalink
Merge pull request #1364 from porter-dev/sms/fs-inject
Browse files Browse the repository at this point in the history
feat: inject filesystem names into helm charts
  • Loading branch information
stefanmcshane authored Aug 2, 2024
2 parents cbd02e2 + cfb1c94 commit b3feb1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions applications/testdata/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ cloudsql:
dbPort: 0
enabled: false
serviceAccountJSONSecret: ""
awsEfsStorage:
- fileSystemId: fs-0cc6c01ae6d9726e8
configMapRefs:
- 18-aaaaaa.1
container:
Expand Down
6 changes: 6 additions & 0 deletions applications/web/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,12 @@ spec:
fieldPath: status.podIP
- name: PORTER_POD_IMAGE_TAG
value: "{{ .Values.image.tag }}"
{{- if .Values.awsEfsStorage }}
{{- range .Values.awsEfsStorage }}
- name: PORTER_EFS_FILESYSTEM_ID_{{ upper $.Release.Name }}
value: {{ .fileSystemId }}
{{- end }}
{{- end }}
{{- if .Values.global }}
{{- if .Values.global.image }}
{{- if .Values.global.image.tag }}
Expand Down

0 comments on commit b3feb1a

Please sign in to comment.