Skip to content

Commit

Permalink
Merge pull request #200 from adrienjt/fix-195
Browse files Browse the repository at this point in the history
fix use-constraints-from-spec-for-proxy-pod-scheduling when webhook is reinvocated
  • Loading branch information
adrienjt committed Nov 4, 2023
2 parents 93761fd + 44635b9 commit ccc3899
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/webhooks/proxypod/proxypod.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func (m Mutator) Default(ctx context.Context, obj runtime.Object) error {
// pod.Annotations is not nil because we checked it contains AnnotationKeyElect
pod.Annotations[common.AnnotationKeySourcePodManifest] = string(srcPodManifest)
} else {
srcPod = &corev1.Pod{}
if err := yaml.UnmarshalStrict([]byte(pod.Annotations[common.AnnotationKeySourcePodManifest]), srcPod); err != nil {
return err
}
Expand Down

0 comments on commit ccc3899

Please sign in to comment.