What steps did you take and what happened:
Because the PodServiceLinkMutatorPlugin PodMutator is executed later than PodMutateDefault, the enableServiceLinks switch does not take effect, and the Services in the namespace where the pPod is located is injected into the Pod as an environment variable.
What steps did you take and what happened: Because the
PodServiceLinkMutatorPlugin
PodMutator is executed later thanPodMutateDefault
, the enableServiceLinks switch does not take effect, and the Services in the namespace where the pPod is located is injected into the Pod as an environment variable.Pod Mutator has order requirements. Pod.Spec.EnableServiceLinks needs to be set before PodMutateDefault.
What did you expect to happen:
PodServiceLinkMutatorPlugin
PodMutator run beforePodMutateDefault
, or PodMutator executes in order./kind bug