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
Generate RayCluster Hash on KubeRay Version Change (#2320)
* Re-generate hash when KubeRay version changes
Signed-off-by: Ryan O'Leary <[email protected]>
* Change logic to DoNothing on KubeRay version mismatch
Signed-off-by: Ryan O'Leary <[email protected]>
* Add KubeRay version annotation to test
Signed-off-by: Ryan O'Leary <[email protected]>
* Move update logic
Signed-off-by: Ryan O'Leary <[email protected]>
* Update rayservice_controller.go
Signed-off-by: ryanaoleary <[email protected]>
* Add unit test
Signed-off-by: Ryan O'Leary <[email protected]>
* Add period
Signed-off-by: Ryan O'Leary <[email protected]>
* Go vet changes
Signed-off-by: Ryan O'Leary <[email protected]>
* Update rayservice_controller_unit_test.go
Signed-off-by: ryanaoleary <[email protected]>
* Address test comments
Signed-off-by: Ryan O'Leary <[email protected]>
---------
Signed-off-by: Ryan O'Leary <[email protected]>
Signed-off-by: ryanaoleary <[email protected]>
// Test 1: Neither active nor pending clusters exist. The `markRestart` function will be called, so the `PendingServiceStatus.RayClusterName` should be set.
748
751
"Zero-downtime upgrade is enabled. Neither active nor pending clusters exist.": {
// Test 6: If the active KubeRay version doesn't match the KubeRay version annotation on the RayCluster, update the RayCluster's hash and KubeRay version
786
+
// annotations first before checking whether to trigger a zero downtime upgrade. This behavior occurs because when we upgrade the KubeRay CRD, the hash
787
+
// generated by different KubeRay versions may differ, which can accidentally trigger a zero downtime upgrade.
788
+
"Active RayCluster exists. KubeRay version is mismatched. Update the RayCluster.": {
0 commit comments