File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed
Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ type RayClusterSpec struct {
5252 WorkerGroupSpecs []WorkerGroupSpec `json:"workerGroupSpecs,omitempty"`
5353}
5454
55+ // +kubebuilder:validation:Enum=Recreate;None
5556type RayClusterUpgradeType string
5657
5758const (
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ func ValidateRayClusterMetadata(metadata metav1.ObjectMeta) error {
3838}
3939
4040func ValidateRayClusterUpgradeOptions (instance * rayv1.RayCluster ) error {
41- // only Recreate and None are valid upgradeType
4241 if instance .Spec .UpgradeStrategy != nil && instance .Spec .UpgradeStrategy .Type != nil &&
4342 * instance .Spec .UpgradeStrategy .Type != rayv1 .Recreate &&
4443 * instance .Spec .UpgradeStrategy .Type != rayv1 .RayClusterUpgradeNone {
You can’t perform that action at this time.
0 commit comments