Skip to content

Commit

Permalink
Fix extraVolumes and extraVolumeMounts for the tyk-enterprise-portal
Browse files Browse the repository at this point in the history
  • Loading branch information
zalbiraw committed Oct 11, 2023
1 parent d23bf17 commit 59ce14c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/tyk-enterprise-portal/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,11 @@ Selector labels
app.kubernetes.io/name: {{ include "tyk-enterprise-portal.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{- define "tyk-enterprise-portal.tplvalues.render" -}}
{{- if typeIs "string" .value }}
{{- tpl .value .context }}
{{- else }}
{{- tpl (.value | toYaml) .context }}
{{- end }}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ spec:
mountPath: /opt/portal/db
subPath: db
{{- end }}
{{- if .Values.extraVolumeMounts }}
{{- include "tyk-enterprise-portal.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 10 }}
{{- end }}
livenessProbe:
httpGet:
scheme: "HTTP{{ if .Values.global.tls.enterprisePortal }}S{{ end }}"
Expand All @@ -234,6 +237,9 @@ spec:
persistentVolumeClaim:
claimName: {{ .Values.storage.persistence.mountExistingPVC }}
{{- end }}
{{- if .Values.extraVolumes }}
{{- include "tyk-enterprise-portal.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 6 }}
{{- end }}

{{- if .Values.securityContext }}
securityContext:
Expand Down

0 comments on commit 59ce14c

Please sign in to comment.