Update cronjob-fediblock-sync.yaml

This commit is contained in:
cunningpike 2023-02-21 15:00:37 -05:00 committed by GitHub
parent 190787a69a
commit df052f2c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 4 deletions

View File

@ -31,8 +31,10 @@ spec:
mountPath: {{ include "fediblockhole.conf_file_path" . | quote }}
- name: allow
mountPath: {{ include "fediblockhole.allow_file_path" . | quote }}
{{- with fediblockhole.block_file_path }}
- name: block
mountPath: {{ include "fediblockhole.block_file_path" . | quote }}
mountPath: {{ . | quote }}
{{ end }}
volumes:
- name: config
configMap:
@ -46,10 +48,14 @@ spec:
items:
- key: {{ include "fediblockhole.allow_file_filename" . | quote }}
path: {{ include "fediblockhole.allow_file_filename" . | quote }}
- name: config
{{- with fediblockhole.block_file_path }}
- name: block
configMap:
name: {{ include "fediblockhole.fullname" . }}-block-csv
{{- with fediblockhole.block_file_filename }}
items:
- key: {{ include "fediblockhole.block_file_filename" . | quote }}
path: {{ include "fediblockhole.block_file_filename" . | quote }}
- key: {{ . | quote }}
path: {{ . | quote }}
{{ end }}
{{end }}
{{- end }}