From 37f4f78f2a41018f29f907090531d428886a52f2 Mon Sep 17 00:00:00 2001 From: letnab Date: Sat, 8 Jun 2024 00:23:28 +0300 Subject: [PATCH 1/3] add dynamic configmap-nodelocal add dynamic to configmap node-local-dns --- .../overlay/templates/configmap-nodelocal.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/rke2-coredns/generated-changes/overlay/templates/configmap-nodelocal.yaml b/packages/rke2-coredns/generated-changes/overlay/templates/configmap-nodelocal.yaml index d41110f71..d24500bc4 100644 --- a/packages/rke2-coredns/generated-changes/overlay/templates/configmap-nodelocal.yaml +++ b/packages/rke2-coredns/generated-changes/overlay/templates/configmap-nodelocal.yaml @@ -57,4 +57,14 @@ data: } prometheus :9253 } + {{ range .Values.nodelocal.servers }} + {{- range $idx, $zone := .zones }}{{ $zone.zone }}{{ end -}} + {{- if .port }}:{{ .port }} {{ end -}} + { + {{- range .plugins }} + {{ .name }} + {{- end }} + bind {{ default $.Values.nodelocal.ip_address }} {{ template "nodelocalUpstreamDNSServerIP" }} + } + {{ end }} {{- end }} From 8571ec2cc5be8c64c9c9039118ee1710da0ae6aa Mon Sep 17 00:00:00 2001 From: letnab Date: Sat, 8 Jun 2024 00:47:12 +0300 Subject: [PATCH 2/3] Update package version update packageVersion --- packages/rke2-coredns/package.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rke2-coredns/package.yaml b/packages/rke2-coredns/package.yaml index 5014b1566..f3a4e82f6 100644 --- a/packages/rke2-coredns/package.yaml +++ b/packages/rke2-coredns/package.yaml @@ -1,2 +1,2 @@ url: https://github.com/coredns/helm/releases/download/coredns-1.29.0/coredns-1.29.0.tgz -packageVersion: 02 +packageVersion: 03 From f42d609de4284fd8108be5ca6ac52c7939671257 Mon Sep 17 00:00:00 2001 From: letnab Date: Sat, 8 Jun 2024 09:51:14 +0300 Subject: [PATCH 3/3] fix line --- .../overlay/templates/configmap-nodelocal.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rke2-coredns/generated-changes/overlay/templates/configmap-nodelocal.yaml b/packages/rke2-coredns/generated-changes/overlay/templates/configmap-nodelocal.yaml index d24500bc4..acfd6e93f 100644 --- a/packages/rke2-coredns/generated-changes/overlay/templates/configmap-nodelocal.yaml +++ b/packages/rke2-coredns/generated-changes/overlay/templates/configmap-nodelocal.yaml @@ -63,7 +63,7 @@ data: { {{- range .plugins }} {{ .name }} - {{- end }} + {{- end }} bind {{ default $.Values.nodelocal.ip_address }} {{ template "nodelocalUpstreamDNSServerIP" }} } {{ end }}