mirror of
https://github.com/alexandrev/xslt-lab.git
synced 2026-09-20 04:23:16 +00:00
Add optional ads.txt support to Helm chart
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{{- if .Values.adsTxt }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "xslt-playground.fullname" . }}-ads
|
||||
labels:
|
||||
{{- include "xslt-playground.labels" . | nindent 4 }}
|
||||
data:
|
||||
ads.txt: |
|
||||
{{ .Values.adsTxt | indent 4 }}
|
||||
{{- end }}
|
||||
@@ -29,8 +29,24 @@ spec:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.firebase.secretName }}
|
||||
key: {{ .Values.firebase.configKey }}
|
||||
{{- end }}
|
||||
{{- if .Values.adsTxt }}
|
||||
volumeMounts:
|
||||
- name: ads
|
||||
mountPath: /usr/share/nginx/html/ads.txt
|
||||
subPath: ads.txt
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.service.frontend.port }}
|
||||
resources: {{- toYaml .Values.resources.frontend | nindent 12 }}
|
||||
{{- if .Values.adsTxt }}
|
||||
volumes:
|
||||
- name: ads
|
||||
configMap:
|
||||
name: {{ include "xslt-playground.fullname" . }}-ads
|
||||
items:
|
||||
- key: ads.txt
|
||||
path: ads.txt
|
||||
{{- end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user