From 588fa28e86f94086ffb6ed76aee1584ede059be9 Mon Sep 17 00:00:00 2001 From: Daniel Lipovetsky Date: Tue, 28 Jan 2025 11:43:47 -0800 Subject: [PATCH] fix: update CoreDNS mapping file (#1029) **What problem does this PR solve?**: Adds CoreDNS version mapping for Kubernetes v1.32 Backport of #998 **Which issue(s) this PR fixes**: Fixes # **How Has This Been Tested?**: **Special notes for your reviewer**: **What problem does this PR solve?**: **Which issue(s) this PR fixes**: Fixes # **How Has This Been Tested?**: **Special notes for your reviewer**: Co-authored-by: Dimitri Koshkin --- api/versions/coredns.go | 2 ++ api/versions/coredns_test.go | 1 + 2 files changed, 3 insertions(+) diff --git a/api/versions/coredns.go b/api/versions/coredns.go index 0f05bc000..9a4103c5a 100644 --- a/api/versions/coredns.go +++ b/api/versions/coredns.go @@ -24,6 +24,7 @@ const ( Kubernetes_V1_29 = "v1.29" Kubernetes_V1_30 = "v1.30" Kubernetes_V1_31 = "v1.31" + Kubernetes_V1_32 = "v1.32" ) // CoreDNS versions @@ -49,6 +50,7 @@ var kubernetesToCoreDNSVersion = map[string]string{ Kubernetes_V1_29: CoreDNS_V1_11_1, Kubernetes_V1_30: CoreDNS_V1_11_3, Kubernetes_V1_31: CoreDNS_V1_11_3, + Kubernetes_V1_32: CoreDNS_V1_11_3, } // GetCoreDNSVersion returns the CoreDNS version for a given Kubernetes version. diff --git a/api/versions/coredns_test.go b/api/versions/coredns_test.go index df7f7c46e..977175169 100644 --- a/api/versions/coredns_test.go +++ b/api/versions/coredns_test.go @@ -46,6 +46,7 @@ func TestReturnsCorrectMappingForGetKubernetesToCoreDNSVersionMap(t *testing.T) "v1.29": "v1.11.1", "v1.30": "v1.11.3", "v1.31": "v1.11.3", + "v1.32": "v1.11.3", } assert.Equal(t, expected, mapping) }