Skip to content

Commit

Permalink
Add Type to UpgradeSpec
Browse files Browse the repository at this point in the history
Signed-off-by: ryanaoleary <[email protected]>
  • Loading branch information
ryanaoleary committed Dec 20, 2024
1 parent 5beab2f commit a5ea9db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions reps/2024-12-4-ray-service-incr-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ After adding the above field to the Ray Serve schema, these APIs will be added t

```sh
type RayServiceUpgradeSpec struct {
// Type represents the strategy used when upgrading the RayService. Currently supports `NewCluster` and `None`
Type *RayServiceUpgradeStrategy `json:"upgradeStrategy,omitempty"`
// The target capacity percentage of the upgraded RayCluster.
// Defaults to 100% target capacity.
// +kubebuilder:default:=100
Expand All @@ -46,8 +48,6 @@ The RayService spec would then look as follows:
```sh
// RayServiceSpec defines the desired state of RayService
type RayServiceSpec struct {
// UpgradeStrategy represents the strategy used when upgrading the RayService. Currently supports `NewCluster` and `None`
UpgradeStrategy *RayServiceUpgradeStrategy `json:"upgradeStrategy,omitempty"`
// UpgradeSpec defines the scaling policy used when upgrading the RayService with `NewCluster` strategy.
UpgradeSpec *RayServiceUpgradeSpec `json:"UpgradeSpec,omitempty"`
// Defines the applications and deployments to deploy, should be a YAML multi-line scalar string.
Expand All @@ -66,6 +66,7 @@ metadata:
spec:
upgradeStrategy: "NewCluster"
upgradeSpec:
type: "NewCluster"
targetCapacity: 50
maxSurgePercent: 50
serveConfigV2: |
Expand Down

0 comments on commit a5ea9db

Please sign in to comment.