Update cronjob-fediblock-sync.yaml

This commit is contained in:
cunningpike 2023-02-21 19:29:42 -05:00 committed by GitHub
parent 10a624c026
commit 29ea3ad3dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 9 deletions

View File

@ -31,11 +31,13 @@ spec:
volumeMounts:
- name: config
mountPath: {{ include "fediblockhole.conf_file_path" . | quote }}
{{- with .Values.fediblockhole.allow_file.path }}
- name: allow
mountPath: {{ include "fediblockhole.allow_file_path" . | quote }}
{{- with .Values.fediblockhole.block_file }}
mountPath: {{ . | quote }}
{{ end }}
{{- with .Values.fediblockhole.block_file.path }}
- name: block
mountPath: {{ .path | quote }}
mountPath: {{ . | quote }}
{{ end }}
volumes:
- name: config
@ -44,18 +46,20 @@ spec:
items:
- key: {{ include "fediblockhole.conf_file_filename" . | quote }}
path: {{ include "fediblockhole.conf_file_filename" . | quote }}
{{- with .Values.fediblockhole.allow_file.filename }}
- name: allow
configMap:
name: {{ include "fediblockhole.fullname" . }}-allow-csv
name: fediblockhole-allow-csv
items:
- key: {{ include "fediblockhole.allow_file_filename" . | quote }}
path: {{ include "fediblockhole.allow_file_filename" . | quote }}
{{- with .Values.fediblockhole.block_file }}
- key: {{ . | quote }}
path: {{ . | quote }}
{{ end }}
{{- with .Values.fediblockhole.block_file.filename }}
- name: block
configMap:
name: fediblockhole-block-csv
items:
- key: {{ .filename | quote }}
path: {{ .filename | quote }}
- key: {{ . | quote }}
path: {{ . | quote }}
{{end }}
{{- end }}