Skip to content

Commit

Permalink
feat: add default serviceName for asts (openkruise#51)
Browse files Browse the repository at this point in the history
Signed-off-by: ChrisLiu <[email protected]>
  • Loading branch information
chrisliu1995 authored Apr 19, 2023
1 parent f283461 commit ba8ce6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/util/gameserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ func GetIndexListFromGsList(gsList []gameKruiseV1alpha1.GameServer) []int {
func GetNewAstsFromGss(gss *gameKruiseV1alpha1.GameServerSet, asts *kruiseV1beta1.StatefulSet) *kruiseV1beta1.StatefulSet {
// default: set ParallelPodManagement
asts.Spec.PodManagementPolicy = apps.ParallelPodManagement
// default: set ServiceName as GameServerSet name
asts.Spec.ServiceName = gss.Name

// set pod labels
podLabels := gss.Spec.GameServerTemplate.GetLabels()
Expand Down

0 comments on commit ba8ce6c

Please sign in to comment.