Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: generate predictable PodSpec
  • Loading branch information
julienmancuso committed Aug 15, 2025
commit 3cbb1065eebb8cc57eda7ac365f7625d60725041
5 changes: 2 additions & 3 deletions deploy/cloud/operator/internal/dynamo/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,7 @@ func GenerateBasePodSpec(
podSpec.Volumes = append(podSpec.Volumes, volumes...)
podSpec.ImagePullSecrets = append(podSpec.ImagePullSecrets, imagePullSecrets...)
backend.UpdatePodSpec(&podSpec, numberOfNodes, role, component, serviceName)
// return controller_common.CanonicalizePodSpec(&podSpec), nil
return &podSpec, nil
return controller_common.CanonicalizePodSpec(&podSpec), nil
}

func setMetricsLabels(labels map[string]string, dynamoGraphDeployment *v1alpha1.DynamoGraphDeployment) {
Expand Down Expand Up @@ -950,7 +949,7 @@ func GenerateGrovePodGangSet(
gangSet.Spec.Template.PodCliqueScalingGroupConfigs = scalingGroups
}

return gangSet, nil
return controller_common.CanonicalizePodGangSet(gangSet), nil
}

func generateLabels(component *v1alpha1.DynamoComponentDeploymentOverridesSpec, dynamoDeployment *v1alpha1.DynamoGraphDeployment, componentName string) (map[string]string, error) {
Expand Down
Loading