Skip to content

Commit

Permalink
Exclude labels, image, preemptionPolicy from pod role hash calculation
Browse files Browse the repository at this point in the history
Change-Id: I19ab4c259818b0ba0d25dd3346025c343a757ccc
  • Loading branch information
alculquicondor committed Feb 20, 2024
1 parent 650d2f2 commit c80b0e4
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 119 deletions.
4 changes: 0 additions & 4 deletions pkg/controller/jobs/pod/pod_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,6 @@ func getRoleHash(p corev1.Pod) (string, error) {
}

shape := map[string]interface{}{
"metadata": map[string]interface{}{
"labels": omitKueueLabels(p.ObjectMeta.Labels),
},
"spec": map[string]interface{}{
"initContainers": containersShape(p.Spec.InitContainers),
"containers": containersShape(p.Spec.Containers),
Expand All @@ -565,7 +562,6 @@ func getRoleHash(p corev1.Pod) (string, error) {
"tolerations": p.Spec.Tolerations,
"runtimeClassName": p.Spec.RuntimeClassName,
"priority": p.Spec.Priority,
"preemptionPolicy": p.Spec.PreemptionPolicy,
"topologySpreadConstraints": p.Spec.TopologySpreadConstraints,
"overhead": p.Spec.Overhead,
"resourceClaims": p.Spec.ResourceClaims,
Expand Down

0 comments on commit c80b0e4

Please sign in to comment.