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"
|
appVersion: "v0.6"
|
||||||
description: DNS proxy as ad-blocker for local network
|
description: DNS proxy as ad-blocker for local network
|
||||||
name: blocky
|
name: blocky
|
||||||
version: 3.0.1
|
version: 3.1.0
|
||||||
keywords:
|
keywords:
|
||||||
- blocky
|
- blocky
|
||||||
- dbs
|
- dbs
|
||||||
|
@ -14,3 +14,7 @@ data:
|
|||||||
config.yml: |
|
config.yml: |
|
||||||
{{ tpl (toYaml .Values.config | indent 4) $root }}
|
{{ tpl (toYaml .Values.config | indent 4) $root }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- range $name, $value := .Values.extraLists }}
|
||||||
|
{{ $name }}: |-
|
||||||
|
{{ $value | indent 4}}
|
||||||
|
{{- end }}
|
||||||
|
@ -39,6 +39,12 @@ spec:
|
|||||||
mountPath: /app/config.yml
|
mountPath: /app/config.yml
|
||||||
subPath: config.yml
|
subPath: config.yml
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- range $name, $value := .Values.extraLists }}
|
||||||
|
- name: config
|
||||||
|
mountPath: /app/{{ $name }}
|
||||||
|
subPath: {{ $name }}
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: api
|
- name: api
|
||||||
containerPort: 4000
|
containerPort: 4000
|
||||||
@ -79,6 +85,10 @@ spec:
|
|||||||
items:
|
items:
|
||||||
- key: config.yml
|
- key: config.yml
|
||||||
path: config.yml
|
path: config.yml
|
||||||
|
{{- range $name, $value := .Values.extraLists }}
|
||||||
|
- key: {{ $name }}
|
||||||
|
path: {{ $name }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
@ -173,3 +173,8 @@ nodeSelector: {}
|
|||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
## Add any extra files you want populated to /app here
|
||||||
|
# ex:
|
||||||
|
# - whitelist.txt: "line1"
|
||||||
|
extraLists: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user