mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
[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:
parent
01f453d3d2
commit
1bd7d7d154
@ -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
|
||||
|
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
@ -173,3 +173,8 @@ nodeSelector: {}
|
||||
tolerations: []
|
||||
|
||||
affinity: {}
|
||||
|
||||
## Add any extra files you want populated to /app here
|
||||
# ex:
|
||||
# - whitelist.txt: "line1"
|
||||
extraLists: {}
|
||||
|
Loading…
Reference in New Issue
Block a user