mirror of
https://github.com/siderolabs/omni.git
synced 2026-05-05 22:56:11 +02:00
fix: disable Talos >= 1.10 for now as Omni isn't ready for it yet
Some checks are pending
default / default (push) Waiting to run
default / e2e-backups (push) Blocked by required conditions
default / e2e-forced-removal (push) Blocked by required conditions
default / e2e-scaling (push) Blocked by required conditions
default / e2e-short (push) Blocked by required conditions
default / e2e-short-secureboot (push) Blocked by required conditions
default / e2e-templates (push) Blocked by required conditions
default / e2e-upgrades (push) Blocked by required conditions
default / e2e-workload-proxy (push) Blocked by required conditions
Some checks are pending
default / default (push) Waiting to run
default / e2e-backups (push) Blocked by required conditions
default / e2e-forced-removal (push) Blocked by required conditions
default / e2e-scaling (push) Blocked by required conditions
default / e2e-short (push) Blocked by required conditions
default / e2e-short-secureboot (push) Blocked by required conditions
default / e2e-templates (push) Blocked by required conditions
default / e2e-upgrades (push) Blocked by required conditions
default / e2e-workload-proxy (push) Blocked by required conditions
Kernel args were constant in Talos before UKI support, so Omni drops them by default when generating/rebuilding schematics. So if the Machines are upgraded to 1.10 and switch to UKI, they will be disconnected from Omni. Do not allow using Talos 1.10, until we introduce proper support for the UKI non-secureboot machines. Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
This commit is contained in:
parent
2606693d25
commit
e7ece8280d
@ -247,9 +247,7 @@ func (ctrl *VersionsController) reconcileTalosVersions(ctx context.Context, r co
|
||||
talosVersions := ctrl.getVersionsAfter(allVersions, minDiscoveredTalosVersion, config.Config.EnableTalosPreReleaseVersions)
|
||||
|
||||
talosVersions = xslices.FilterInPlace(talosVersions, func(v string) bool {
|
||||
_, denylisted := consts.DenylistedTalosVersions[v]
|
||||
|
||||
return !denylisted
|
||||
return consts.DenylistedTalosVersions.IsAllowed(v)
|
||||
})
|
||||
|
||||
err = forAllCompatibleVersions(talosVersions, k8sVersions, func(talosVer string, compatibleK8sVersions []string) error {
|
||||
|
||||
@ -5,6 +5,12 @@
|
||||
|
||||
package constants
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/blang/semver/v4"
|
||||
)
|
||||
|
||||
// AnotherTalosVersion is used in the integration tests for Talos upgrade.
|
||||
const AnotherTalosVersion = "1.9.0"
|
||||
|
||||
@ -26,7 +32,31 @@ const AnotherKubernetesVersion = "1.31.7"
|
||||
const MinKubernetesVersion = "1.24.0"
|
||||
|
||||
// DenylistedTalosVersions is a list of versions which should never show up in the version picker.
|
||||
var DenylistedTalosVersions = map[string]struct{}{
|
||||
"1.4.2": {}, // issue with the number of open files limit
|
||||
"1.4.3": {}, // issue with the number of open files limit
|
||||
var DenylistedTalosVersions = Denylist{
|
||||
"1.4.2": {}, // issue with the number of open files limit
|
||||
"1.4.3": {}, // issue with the number of open files limit
|
||||
"1.10.*": {}, // Omni is not ready for 1.10.x yet
|
||||
}
|
||||
|
||||
// Denylist helper.
|
||||
type Denylist map[string]struct{}
|
||||
|
||||
// IsAllowed checks if the version of Talos is allowed.
|
||||
func (d Denylist) IsAllowed(version string) bool {
|
||||
if _, ok := d[version]; ok {
|
||||
return false
|
||||
}
|
||||
|
||||
ver, err := semver.ParseTolerant(version)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
pattern := fmt.Sprintf("%d.%d.*", ver.Major, ver.Minor)
|
||||
|
||||
if _, ok := d[pattern]; ok {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user