From 681d59fb5b10d8a5045bcbb4373094557362cc74 Mon Sep 17 00:00:00 2001 From: Nuckal777 Date: Thu, 16 Mar 2023 10:36:50 +0100 Subject: [PATCH] Migrate kubedns to coredns --- charts/seed/templates/coredns.yaml | 2 +- charts/seed/templates/kubedns.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/seed/templates/coredns.yaml b/charts/seed/templates/coredns.yaml index 4fc471d1a7..c6bc8aecd3 100644 --- a/charts/seed/templates/coredns.yaml +++ b/charts/seed/templates/coredns.yaml @@ -1,4 +1,4 @@ -{{ if not .Values.dns.kube }} +{{ if semverCompare ">= 1.13" .Capabilities.KubeVersion.Version }} apiVersion: v1 kind: ServiceAccount metadata: diff --git a/charts/seed/templates/kubedns.yaml b/charts/seed/templates/kubedns.yaml index 7974f62447..c102f83c22 100644 --- a/charts/seed/templates/kubedns.yaml +++ b/charts/seed/templates/kubedns.yaml @@ -1,6 +1,6 @@ # More or less ported to adapt kube-dns resources # to get them later replced with coredns -{{ if .Values.dns.kube }} +{{ if semverCompare "< 1.13" .Capabilities.KubeVersion.Version }} apiVersion: v1 kind: ServiceAccount metadata: