Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ReserveIds ScaleDownStrategyType #52

Merged
merged 2 commits into from
Apr 27, 2023

Conversation

chrisliu1995
Copy link
Member

@chrisliu1995 chrisliu1995 commented Apr 25, 2023

BackGround

Sometimes, we need to scale down the game servers and no longer create those automatically until those game servers are manually specified to be recreated.

Solution

The ScaleDownStrategyType field is added to the scale strategy. When the ScaleDownStrategyType is ReserveIds, the ID of the scaled down game server will be backfilled in the reserveGameServerIds field. When the user wants to recreate it, remove the ID from the reserveGameServerIds field and increase the replicas, which can meet the above requirements.

@ringtail
Copy link
Member

Please add doc to introduce the scenario and CRD field.

Copy link
Member

@ringtail ringtail left a comment

Choose a reason for hiding this comment

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

/LGTM

@kruise-bot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ringtail
Once this PR has been reviewed and has the lgtm label, please assign zmberg for approval by writing /assign @zmberg in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ringtail ringtail merged commit 4eaed8d into openkruise:master Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants