Skip to content

Commit

Permalink
Remove redundant serviceAccountName assignment (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
hougangliu authored and k8s-ci-robot committed Dec 12, 2019
1 parent bf80d1a commit 82e0cd6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/webhook/v1alpha3/pod/inject_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ func (s *sidecarInjector) Mutate(pod *v1.Pod, namespace string) (*v1.Pod, error)
}
mutatedPod.Spec.Containers = append(mutatedPod.Spec.Containers, *injectContainer)

mutatedPod.Spec.ServiceAccountName = pod.Spec.ServiceAccountName
mutatedPod.Spec.ShareProcessNamespace = pointer.BoolPtr(true)

mountPath, pathKind := getMountPath(trial.Spec.MetricsCollector)
Expand Down

0 comments on commit 82e0cd6

Please sign in to comment.