From 501deecdd05b2fb61ceba19ce9b7a36962b38c42 Mon Sep 17 00:00:00 2001
From: Jiffs Maverick <jiffsmaverick@gmail.com>
Date: Fri, 3 Mar 2023 03:56:57 +0200
Subject: [PATCH] Downgrade version of coredns to 1.8.6 for compatibility with
 1.23-1.24 (#9846)

---
 roles/download/defaults/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/download/defaults/main.yml b/roles/download/defaults/main.yml
index 26cb559d8..b5c81430b 100644
--- a/roles/download/defaults/main.yml
+++ b/roles/download/defaults/main.yml
@@ -1000,7 +1000,7 @@ haproxy_image_tag: 2.6.6-alpine
 # Coredns version should be supported by corefile-migration (or at least work with)
 # bundle with kubeadm; if not 'basic' upgrade can sometimes fail
 
-coredns_version: "v1.9.3"
+coredns_version: "{{ 'v1.9.3' if (kube_version is version('v1.25.0','>=')) else 'v1.8.6' }}"
 coredns_image_is_namespaced: "{{ (coredns_version is version('v1.7.1','>=')) }}"
 
 coredns_image_repo: "{{ kube_image_repo }}{{'/coredns/coredns' if (coredns_image_is_namespaced | bool) else '/coredns' }}"
-- 
GitLab