Skip to content

feat: add instanceset api#50

Merged
cheyang merged 1 commit intosgl-project:mainfrom
veophi:api/instanceset
Oct 11, 2025
Merged

feat: add instanceset api#50
cheyang merged 1 commit intosgl-project:mainfrom
veophi:api/instanceset

Conversation

@veophi
Copy link
Copy Markdown
Contributor

@veophi veophi commented Oct 10, 2025

Ⅰ. Motivation

Introduce a new worklad -- InstanceSet.

More information see the KEP #26

Ⅱ. Modifications

Add Instance&InstanceSet APIs&CRDs.

Ⅲ. Does this pull request fix one issue?

fixes #45

Ⅳ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Ⅴ. Describe how to verify it

VI. Special notes for reviews

Checklist

  • Format your code make fmt.
  • Add unit tests or integration tests.
  • Update the documentation related to the change.

@veophi
Copy link
Copy Markdown
Contributor Author

veophi commented Oct 10, 2025

/cc @cheyang

@veophi veophi changed the title feat: introduce instanceset api feat: add instanceset api Oct 10, 2025
Comment thread api/workloads/v1alpha1/instance_types.go
// InPlaceIfPossibleInstanceSetUpdateStrategyType indicates that we try to in-place update Instances instead of
// recreating Instances when possible. Currently, only image update of Instances spec is allowed. Any other changes to the Instances
// spec will fall back to ReCreate InstanceSetUpdateStrategyType where Instances will be recreated.
InPlaceIfPossibleInstanceSetUpdateStrategyType InstanceSetUpdateStrategyType = "InPlaceIfPossible"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about InPlaceIfPossible also indicates the instance will be recreated on the same node?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about InPlaceIfPossible also indicates the instance will be recreated on the same node?

@cheyang InPlaceIfPossible indicates that, unless the component size changes, the Instance object will be updated in-place instead of being recreated. In this case, the Pods owned by this Instance will also be upgraded in-place as much as possible.

Copy link
Copy Markdown
Collaborator

@cheyang cheyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@cheyang cheyang merged commit 2f57d25 into sgl-project:main Oct 11, 2025
3 checks passed
@cheyang cheyang added this to the v0.5.0 milestone Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Development Roadmap (v0.5.0)

2 participants