Update cronjob-fediblock-sync.yaml

This commit is contained in:
cunningpike 2023-02-21 20:20:10 -05:00 committed by GitHub
parent 098958a916
commit bd79f5558c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 18 deletions

View File

@ -30,14 +30,17 @@ spec:
- "{{- include "fediblockhole.conf_file_path" . -}}{{- include "fediblockhole.conf_file_filename" . -}}" - "{{- include "fediblockhole.conf_file_path" . -}}{{- include "fediblockhole.conf_file_filename" . -}}"
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: {{ include "fediblockhole.conf_file_path" . | quote }} mountPath: "{{- include "fediblockhole.conf_file_path" . -}}{{- include "fediblockhole.conf_file_filename" . -}}"
{{- with .Values.fediblockhole.allow_file.path }} subPath: "{{- include "fediblockhole.conf_file_filename" . -}}"
- name: allow {{ if .Values.fediblockhole.allow_file.filename }}
mountPath: {{ . | quote }} - name: allowfile
mountPath: "{{- include "fediblockhole.conf_file_path" . -}}{{- .Values.fediblockhole.allow_file.filename -}}"
subPath: "{{- .Values.fediblockhole.allow_file.filename -}}"
{{ end }} {{ end }}
{{- with .Values.fediblockhole.block_file.path }} {{ if .Values.fediblockhole.block_file.filename }}
- name: block - name: blockfile
mountPath: {{ . | quote }} mountPath: "{{- include "fediblockhole.conf_file_path" . -}}{{- .Values.fediblockhole.block_file.filename -}}"
subPath: "{{- .Values.fediblockhole.block_file.filename -}}"
{{ end }} {{ end }}
volumes: volumes:
- name: config - name: config
@ -46,20 +49,20 @@ spec:
items: items:
- key: {{ include "fediblockhole.conf_file_filename" . | quote }} - key: {{ include "fediblockhole.conf_file_filename" . | quote }}
path: {{ include "fediblockhole.conf_file_filename" . | quote }} path: {{ include "fediblockhole.conf_file_filename" . | quote }}
{{- with .Values.fediblockhole.allow_file.filename }} {{ if .Values.fediblockhole.allow_file.filename }}
- name: allow - name: allowfile
configMap: configMap:
name: fediblockhole-allow-csv name: {{ include "fediblockhole.fullname" . }}-allow-csv
items: items:
- key: {{ . | quote }} - key: {{ .Values.fediblockhole.allow_file.filename | quote }}
path: {{ . | quote }} path: {{ .Values.fediblockhole.allow_file.filename | quote }}
{{ end }} {{ end }}
{{- with .Values.fediblockhole.block_file.filename }} {{ if .Values.fediblockhole.block_file.filename }}
- name: block - name: blockfile
configMap: configMap:
name: fediblockhole-block-csv name: {{ include "fediblockhole.fullname" . }}-block-csv
items: items:
- key: {{ . | quote }} - key: {{ .Values.fediblockhole.block_file.filename | quote }}
path: {{ . | quote }} path: {{ .Values.fediblockhole.block_file.filename | quote }}
{{end }} {{ end }}
{{- end }} {{- end }}