From 732d4f77ad3c93a53c074048320f5a956b835b1d Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Mon, 8 Jan 2024 13:19:01 -0500 Subject: [PATCH] Allow nightly versions of kots to install with any k8s version (#5027) --- pkg/preflight/assets/host-preflights.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/preflight/assets/host-preflights.yaml b/pkg/preflight/assets/host-preflights.yaml index 59fb7deb18..d898d14ae0 100644 --- a/pkg/preflight/assets/host-preflights.yaml +++ b/pkg/preflight/assets/host-preflights.yaml @@ -556,9 +556,9 @@ spec: # hijack hostOS analyzer in order to analyze the kURL Installer spec - hostOS: checkName: "Kots and Kubernetes Compatibility" - # Kubernetes 1.29+ requires kots 1.96.2+, so we exclude this check if kots/kubernetes are not installed, if kots > 1.96.2, or if kubernetes < 1.29 + # Kubernetes 1.29+ requires kots 1.96.2+, so we exclude this check if kots/kubernetes are not installed, if kots is nightly, if kots > 1.96.2, or if kubernetes < 1.29 # if the check runs, it will always fail - excluding it is the only way to pass - exclude: '{{kurl or (not .Installer.Spec.Kotsadm.Version) (not .Installer.Spec.Kubernetes.Version) (semverCompare "> v1.96.2" .Installer.Spec.Kotsadm.Version) (semverCompare "< 1.29.0" .Installer.Spec.Kubernetes.Version) }}' + exclude: '{{kurl or (not .Installer.Spec.Kotsadm.Version) (not .Installer.Spec.Kubernetes.Version) (.Installer.Spec.Kotsadm.Version | contains "nightly") (semverCompare "> v1.96.2" .Installer.Spec.Kotsadm.Version) (semverCompare "< 1.29.0" .Installer.Spec.Kubernetes.Version) }}' outcomes: - fail: message: "Kots < 1.96.2 is not compatible with Kubernetes >= 1.29.0"