Skip to content

Commit

Permalink
pihole chart updates
Browse files Browse the repository at this point in the history
  • Loading branch information
limitup committed Sep 23, 2024
1 parent 8281d61 commit af7849b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions charts/external-dns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ spec:
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if eq $providerName "pihole" }}
{{- with .Values.provider.pihole }}
{{- with .env }}
env:
- name: EXTERNAL_DNS_PIHOLE_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .password.secret }}
key: {{ .password.key }}
{{- end }}
{{- end }}
{{- end }}
args:
- --log-level={{ .Values.logLevel }}
- --log-format={{ .Values.logFormat }}
Expand Down Expand Up @@ -115,6 +127,11 @@ spec:
- --exclude-domains={{ . }}
{{- end }}
- --provider={{ $providerName }}
{{- if eq $providerName "pihole" }}
{{- with .Values.provider.pihole }}
- --pihole-server={{ .address }}
{{- end }}
{{- end }}
{{- range .Values.extraArgs }}
- {{ tpl . $ }}
{{- end }}
Expand Down
8 changes: 8 additions & 0 deletions charts/external-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,14 @@ provider:
scrapeTimeout:
metricRelabelings: []
relabelings: []
pihole:
# -- The address of the Pi-hole web server
address:
# -- The password to the Pi-hole web server (if enabled)
env:
password:
secret: < replace me >
key: EXTERNAL_DNS_PIHOLE_PASSWORD

# -- Extra arguments to provide to _ExternalDNS_.
extraArgs: []
Expand Down

0 comments on commit af7849b

Please sign in to comment.