Skip to content

Commit f2e53cf

Browse files
win5923machichima
andauthored
Update ray-operator/controllers/ray/common/pod.go
Co-authored-by: Nary Yeh <[email protected]> Signed-off-by: Jun-Hao Wan <[email protected]>
1 parent 5f3afb3 commit f2e53cf

File tree

1 file changed

+1
-1
lines changed
  • ray-operator/controllers/ray/common

1 file changed

+1
-1
lines changed

ray-operator/controllers/ray/common/pod.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func DefaultHeadPodTemplate(ctx context.Context, instance rayv1.RayCluster, head
172172
// Calculate the pod template hash before any modifications
173173
// This ensures the hash reflects the original user-defined template for upgrade detection
174174
templateHash := ""
175-
if hash, err := GeneratePodTemplateHash(instance.Spec.HeadGroupSpec.Template); err == nil {
175+
if hash, err := GeneratePodTemplateHash(headSpec.Template); err == nil {
176176
templateHash = hash
177177
} else {
178178
log.Error(err, "Failed to generate pod template hash for head group")

0 commit comments

Comments
 (0)