3
0
mirror of https://github.com/mastodon/chart synced 2025-05-18 13:03:21 +00:00

Only add cache buster values if enabled

This commit is contained in:
Tim Campbell 2023-12-15 18:42:10 +01:00
parent 319edf2352
commit 9978c51459
3 changed files with 8 additions and 8 deletions

View File

@ -351,12 +351,12 @@ data:
{{- if .Values.mastodon.cacheBuster.enabled }} {{- if .Values.mastodon.cacheBuster.enabled }}
CACHE_BUSTER_ENABLED: "true" CACHE_BUSTER_ENABLED: "true"
{{- if .Values.mastodon.cacheBuster.httpMethod }}
CACHE_BUSTER_HTTP_METHOD: {{ .Values.mastodon.cacheBuster.httpMethod }}
{{- end }}
{{- if .Values.mastodon.cacheBuster.authHeader }}
CACHE_BUSTER_SECRET_HEADER: {{ .Values.mastodon.cacheBuster.authHeader }}
{{- end }}
{{- else }} {{- else }}
CACHE_BUSTER_ENABLED: "false" CACHE_BUSTER_ENABLED: "false"
{{- end }} {{- end }}
{{- if .Values.mastodon.cacheBuster.httpMethod }}
CACHE_BUSTER_HTTP_METHOD: {{ .Values.mastodon.cacheBuster.httpMethod }}
{{- end }}
{{- if .Values.mastodon.cacheBuster.authHeader }}
CACHE_BUSTER_SECRET_HEADER: {{ .Values.mastodon.cacheBuster.authHeader }}
{{- end }}

View File

@ -135,7 +135,7 @@ spec:
name: {{ $context.Values.mastodon.deepl.apiKeySecretRef.name }} name: {{ $context.Values.mastodon.deepl.apiKeySecretRef.name }}
key: {{ $context.Values.mastodon.deepl.apiKeySecretRef.key }} key: {{ $context.Values.mastodon.deepl.apiKeySecretRef.key }}
{{- end }} {{- end }}
{{- if $context.Values.mastodon.cacheBuster.authToken.existingSecret }} {{- if and $context.Values.mastodon.cacheBuster.enabled $context.Values.mastodon.cacheBuster.authToken.existingSecret }}
- name: CACHE_BUSTER_SECRET - name: CACHE_BUSTER_SECRET
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:

View File

@ -130,7 +130,7 @@ spec:
name: {{ .Values.mastodon.hcaptcha.secretKeySecretRef.name }} name: {{ .Values.mastodon.hcaptcha.secretKeySecretRef.name }}
key: {{ .Values.mastodon.hcaptcha.secretKeySecretRef.key }} key: {{ .Values.mastodon.hcaptcha.secretKeySecretRef.key }}
{{- end }} {{- end }}
{{- if .Values.mastodon.cacheBuster.authToken.existingSecret }} {{- if and .Values.mastodon.cacheBuster.enabled .Values.mastodon.cacheBuster.authToken.existingSecret }}
- name: CACHE_BUSTER_SECRET - name: CACHE_BUSTER_SECRET
valueFrom: valueFrom:
secretKeyRef: secretKeyRef: