You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/lint/checks/components/kueue/kueue.go
+18-16Lines changed: 18 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,17 @@ import (
16
16
)
17
17
18
18
const (
19
-
kind="kueue"
20
-
checkTypeManagementState="management-state"
21
-
managementStateRemediation="Migrate to the Red Hat build of Kueue operator following https://docs.redhat.com/en/documentation/red_hat_openshift_ai_self-managed/2.25/html/managing_openshift_ai/managing-workloads-with-kueue#migrating-to-the-rhbok-operator_kueue before upgrading"
19
+
kind="kueue"
20
+
checkTypeManagementState="management-state"
21
+
22
+
// Deferred: parameterize hardcoded version references using ComponentRequest.TargetVersion.
23
+
msgManagedProhibited="The 3.3.1 upgrade currently only supports the Kueue managementState of Removed. A future 3.3.x release will allow an upgrade when you have migrated to the Red Hat build of Kueue Operator and the Kueue managementState is Unmanaged."
24
+
msgUnmanagedProhibited="The 3.3.1 upgrade currently only supports the Kueue managementState of Removed. A future 3.3.x release will allow an upgrade when the Kueue managementState is Unmanaged."
22
25
)
23
26
24
-
// ManagementStateCheck validates that Kueue managed option is not used before upgrading to 3.x.
25
-
// In RHOAI 3.x, the Managed option for Kueue is removed — users must migrate to the standalone
26
-
// Red Hat build of Kueue operator and set managementState to Removed or Unmanaged.
27
+
// ManagementStateCheck validates that Kueue managementState is Removed before upgrading to 3.x.
28
+
// In RHOAI 3.3.1, only the Removed state is supported. A future 3.3.x release will support
29
+
// Unmanaged with the Red Hat build of Kueue Operator.
msgManagedNotSupported="Kueue managementState is Managed — migration to the Red Hat build of Kueue operator is required before upgrading"
23
+
operatorInstalledManagedRemediation="Migrate to the Red Hat build of Kueue operator following https://docs.redhat.com/en/documentation/red_hat_openshift_ai_self-managed/2.25/html/managing_openshift_ai/managing-workloads-with-kueue#migrating-to-the-rhbok-operator_kueue before upgrading"
23
24
)
24
25
25
-
// OperatorInstalledCheck validates the Red Hat build of Kueue operator installation status against the Kueue
26
+
// OperatorInstalledCheck is currently deregistered — re-enable when a future 3.3.x release
27
+
// supports Unmanaged + Red Hat build of Kueue Operator (see command.go registration).
28
+
//
29
+
// It validates the Red Hat build of Kueue operator installation status against the Kueue
26
30
// component management state:
27
31
// - Managed: prohibited — no supported upgrade path from embedded Kueue, must migrate to RHBoK first
28
32
// - Unmanaged + operator absent: blocking — Unmanaged requires the Red Hat build of Kueue operator
"Message": And(ContainSubstring("managed by OpenShift AI"), ContainSubstring("Managed option will be removed")),
80
+
"Message": And(ContainSubstring("only supports the Kueue managementState of Removed"), ContainSubstring("migrated to the Red Hat build of Kueue Operator")),
"Message": ContainSubstring("compatible with RHOAI 3.1"),
107
+
"Status": Equal(metav1.ConditionFalse),
108
+
"Reason": Equal(check.ReasonVersionIncompatible),
109
+
"Message": And(ContainSubstring("only supports the Kueue managementState of Removed"), Not(ContainSubstring("migrated to the Red Hat build of Kueue Operator"))),
0 commit comments