Skip to content

Commit

Permalink
Allow nightly versions of kots to install with any k8s version (#5027)
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored Jan 8, 2024
1 parent e668deb commit 732d4f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/preflight/assets/host-preflights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 732d4f7

Please sign in to comment.