Skip to content

Commit c2949fb

Browse files
committed
Bump version to 2.1.5 and update README; add disableNoErrorLogs option to values.yaml
1 parent 7ad01d9 commit c2949fb

4 files changed

Lines changed: 18 additions & 2 deletions

File tree

stable/node-local-dns/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: node-local-dns
3-
version: 2.1.4
3+
version: 2.1.5
44
appVersion: 1.23.1
55
maintainers:
66
- name: gabrieladt

stable/node-local-dns/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# node-local-dns
22

3-
![Version: 2.1.4](https://img.shields.io/badge/Version-2.1.4-informational?style=flat-square) ![AppVersion: 1.23.1](https://img.shields.io/badge/AppVersion-1.23.1-informational?style=flat-square)
3+
![Version: 2.1.5](https://img.shields.io/badge/Version-2.1.5-informational?style=flat-square) ![AppVersion: 1.23.1](https://img.shields.io/badge/AppVersion-1.23.1-informational?style=flat-square)
44

55
A chart to install node-local-dns.
66

@@ -56,6 +56,7 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/node-local-dns -f
5656
| config.dnsDomain | string | `"cluster.local"` | Internal k8s DNS domain |
5757
| config.dnsServer | string | `"172.20.0.10"` | Main coredns service (kube-dns) ip, used on iptables-mode. |
5858
| config.enableLogging | bool | `false` | Set boolean to log DNS requests |
59+
| config.disableNoErrorLogs | bool | `false` | Set boolean to disable NOERROR logs specifically (requires enableLogging to be true) |
5960
| config.healthPort | int | `8080` | Port used for the health endpoint |
6061
| config.localDns | string | `"169.254.20.25"` | |
6162
| config.noIPv6Lookups | bool | `false` | If true, return NOERROR when attempting to resolve an IPv6 address |

stable/node-local-dns/templates/configmap.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ data:
1919
{{- else }}
2020
{{ .Values.config.dnsDomain }}:53 {
2121
{{- if .Values.config.enableLogging }}
22+
{{- if .Values.config.disableNoErrorLogs }}
23+
log . "{remote}:{port} - {>id} \"{type} {class} {name} {proto} {size} {>do} {>bufsize}\" {rcode} {>rflags} {rsize} {duration}" {
24+
class denial error
25+
}
26+
{{- else }}
2227
log
28+
{{- end }}
2329
{{- end }}
2430
errors
2531
{{- if .Values.config.cache.enabled }}
@@ -115,7 +121,13 @@ data:
115121
}
116122
.:53 {
117123
{{- if .Values.config.enableLogging}}
124+
{{- if .Values.config.disableNoErrorLogs }}
125+
log . "{remote}:{port} - {>id} \"{type} {class} {name} {proto} {size} {>do} {>bufsize}\" {rcode} {>rflags} {rsize} {duration}" {
126+
class denial error
127+
}
128+
{{- else }}
118129
log
130+
{{- end }}
119131
{{- end }}
120132
errors
121133
{{- if .Values.config.cache.enabled }}

stable/node-local-dns/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ config:
2525
# -- Set boolean to log DNS requests
2626
enableLogging: false
2727

28+
# -- Set boolean to disable NOERROR logs specifically (requires enableLogging to be true)
29+
disableNoErrorLogs: true
30+
2831
# -- If true, return NOERROR when attempting to resolve an IPv6 address
2932
noIPv6Lookups: false
3033

0 commit comments

Comments
 (0)