[blocky] Add support for creating extra files, like whitelist.txt (#206)

* Add support for creating extra files, like whitelist.txt

Signed-off-by: Gavin Mogan <git@gavinmogan.com>

* forcing 3.1.0

Co-authored-by: Jeff Billimek <jeff@billimek.com>
This commit is contained in:
Gavin Mogan 2020-04-17 15:04:15 -07:00 committed by GitHub
parent 01f453d3d2
commit 1bd7d7d154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "v0.6"
description: DNS proxy as ad-blocker for local network
name: blocky
version: 3.0.1
version: 3.1.0
keywords:
- blocky
- dbs

View File

@ -14,3 +14,7 @@ data:
config.yml: |
{{ tpl (toYaml .Values.config | indent 4) $root }}
{{- end }}
{{- range $name, $value := .Values.extraLists }}
{{ $name }}: |-
{{ $value | indent 4}}
{{- end }}

View File

@ -39,6 +39,12 @@ spec:
mountPath: /app/config.yml
subPath: config.yml
readOnly: true
{{- range $name, $value := .Values.extraLists }}
- name: config
mountPath: /app/{{ $name }}
subPath: {{ $name }}
readOnly: true
{{- end }}
ports:
- name: api
containerPort: 4000
@ -79,6 +85,10 @@ spec:
items:
- key: config.yml
path: config.yml
{{- range $name, $value := .Values.extraLists }}
- key: {{ $name }}
path: {{ $name }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

View File

@ -173,3 +173,8 @@ nodeSelector: {}
tolerations: []
affinity: {}
## Add any extra files you want populated to /app here
# ex:
# - whitelist.txt: "line1"
extraLists: {}