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] User-defined GameServer’s recycle strategy #110

Open
chrisliu1995 opened this issue Nov 27, 2023 · 0 comments
Open

[Feat] User-defined GameServer’s recycle strategy #110

chrisliu1995 opened this issue Nov 27, 2023 · 0 comments

Comments

@chrisliu1995
Copy link
Member

chrisliu1995 commented Nov 27, 2023

API

type GameServerTemplate struct {
	corev1.PodTemplateSpec `json:",inline"`
	VolumeClaimTemplates   []corev1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"`
         
        // new
	Owner                  GameServerOwner                `json:"owner"`
}

type GameServerOwner string

const (
	OwnerPod           GameServerOwner = "Pod"
	OwnerGameServerSet GameServerOwner = "GameServerSet"
)

Introduction

  • The owner is the Pod - created when the pod is created and deleted when the pod is deleted, consistent with the pod life cycle.

  • The owner is GameServerSet - created before the pod is created and deleted after the pod is actually deleted. Specific examples:

    • When the game server is generated, because the webhook verification fails, even if the pod is not generated, the gs will be generated.
    • Abnormal eviction of the game server, manual deletion of pods, rebuilding and updating, etc. are deletions that occur without changing replicas, and gs will not delete them.

Default Owner is Pod.

@chrisliu1995 chrisliu1995 changed the title [feat] User-defined GameServer’s recycle strategy [Feat] User-defined GameServer’s recycle strategy Nov 27, 2023
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

No branches or pull requests

1 participant