mirror of
https://github.com/mastodon/chart
synced 2025-05-18 04:53:21 +00:00
Only add cache buster values if enabled
This commit is contained in:
parent
319edf2352
commit
9978c51459
|
@ -351,12 +351,12 @@ data:
|
||||||
|
|
||||||
{{- if .Values.mastodon.cacheBuster.enabled }}
|
{{- if .Values.mastodon.cacheBuster.enabled }}
|
||||||
CACHE_BUSTER_ENABLED: "true"
|
CACHE_BUSTER_ENABLED: "true"
|
||||||
{{- else }}
|
|
||||||
CACHE_BUSTER_ENABLED: "false"
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.mastodon.cacheBuster.httpMethod }}
|
{{- if .Values.mastodon.cacheBuster.httpMethod }}
|
||||||
CACHE_BUSTER_HTTP_METHOD: {{ .Values.mastodon.cacheBuster.httpMethod }}
|
CACHE_BUSTER_HTTP_METHOD: {{ .Values.mastodon.cacheBuster.httpMethod }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.cacheBuster.authHeader }}
|
{{- if .Values.mastodon.cacheBuster.authHeader }}
|
||||||
CACHE_BUSTER_SECRET_HEADER: {{ .Values.mastodon.cacheBuster.authHeader }}
|
CACHE_BUSTER_SECRET_HEADER: {{ .Values.mastodon.cacheBuster.authHeader }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
CACHE_BUSTER_ENABLED: "false"
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user