Skip to content

Commit

Permalink
Merge pull request #14 from MammatusPHP/fix-env-order-issue
Browse files Browse the repository at this point in the history
[mammatus] Fix env order issue
  • Loading branch information
WyriHaximus authored Jun 17, 2024
2 parents 63a79ca + 49872fe commit d124eee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions charts/mammatus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: mammatus
description: MammatusPHP Chart
type: application
version: 0.0.9
appVersion: 0.0.9
version: 0.0.10
appVersion: 0.0.10
maintainers:
- name: WyriHaximus
email: [email protected]
Expand Down
20 changes: 10 additions & 10 deletions charts/mammatus/templates/_pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ envFrom:
- configMapRef:
name: env
{{- end }}
{{- end -}}

{{- define "mammatus.volumeMounts" -}}
{{ if .Values.volumes }}
volumeMounts:
{{- range $name, $options := .Values.volumes }}
- name: {{ $name }}
{{ $options.volumeMountOptions | toYaml }}
{{- end -}}
{{- end -}}
env:
- name: RELEASE_TAG
value: {{ .Values.release }}
Expand All @@ -65,6 +55,16 @@ env:
fieldPath: "metadata.namespace"
{{- end -}}

{{- define "mammatus.volumeMounts" -}}
{{ if .Values.volumes }}
volumeMounts:
{{- range $name, $options := .Values.volumes }}
- name: {{ $name }}
{{ $options.volumeMountOptions | toYaml }}
{{- end -}}
{{- end -}}
{{- end -}}

{{- define "mammatus.volumes" -}}
{{ if .Values.volumes }}
volumes:
Expand Down

0 comments on commit d124eee

Please sign in to comment.