From 77fc3bda1d2a28d250a168ae79c3eddfcd30b8a8 Mon Sep 17 00:00:00 2001 From: Dinar Valeev Date: Mon, 26 Apr 2021 10:01:08 +0200 Subject: [PATCH] Fix default ports for dns:// scheme (#2) According to [values.yaml](https://github.com/coredns/helm/blob/master/stable/coredns/values.yaml#L130) dns:// is supposed to be udp only with optional tcp enablement through use_tcp flag. Signed-off-by: Dinar Valeev --- stable/coredns/Chart.yaml | 2 +- stable/coredns/templates/_helpers.tpl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/stable/coredns/Chart.yaml b/stable/coredns/Chart.yaml index a6a4f39..bb57b11 100644 --- a/stable/coredns/Chart.yaml +++ b/stable/coredns/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: coredns -version: 1.15.1 +version: 1.15.2 appVersion: 1.8.0 home: https://coredns.io icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png diff --git a/stable/coredns/templates/_helpers.tpl b/stable/coredns/templates/_helpers.tpl index 1554dde..3e262d1 100644 --- a/stable/coredns/templates/_helpers.tpl +++ b/stable/coredns/templates/_helpers.tpl @@ -57,10 +57,9 @@ Generate the list of ports automatically from the server definitions {{- end -}} {{- end -}} - {{/* If none of the zones specify scheme, default to dns:// on both tcp & udp */}} + {{/* If none of the zones specify scheme, default to dns:// udp */}} {{- if and (not (index $innerdict "istcp")) (not (index $innerdict "isudp")) -}} {{- $innerdict := set $innerdict "isudp" true -}} - {{- $innerdict := set $innerdict "istcp" true -}} {{- end -}} {{/* Write the dict back into the outer dict */}}