// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

// Package talos13 provides compatibility constants for Talos 1.3.
package talos13

import "github.com/hashicorp/go-version"

// MajorMinor is the major.minor version of Talos 1.3.
var MajorMinor = [2]int{1, 3}

// MinimumHostUpgradeVersion is the minimum version of Talos that can be upgraded to 1.3.
var MinimumHostUpgradeVersion = version.Must(version.NewVersion("1.0.0"))

// MaximumHostDowngradeVersion is the maximum (not inclusive) version of Talos that can be downgraded to 1.3.
var MaximumHostDowngradeVersion = version.Must(version.NewVersion("1.5.0"))

// DeniedHostUpgradeVersions are the versions of Talos that cannot be upgraded to 1.3.
var DeniedHostUpgradeVersions = []*version.Version{}

// MinimumKubernetesVersion is the minimum version of Kubernetes is supported with 1.3.
var MinimumKubernetesVersion = version.Must(version.NewVersion("1.24.0"))

// MaximumKubernetesVersion is the maximum version of Kubernetes is supported with 1.3.
var MaximumKubernetesVersion = version.Must(version.NewVersion("1.26.99"))
