Fix nil pointer dereference for createDNSPod by adding
accidentally deleted fields back to the pod Spec.
@@ -43,6 +43,8 @@ func createDNSPod(namespace, probeCmd string) *kapiv1.Pod {
Namespace: namespace,
},
Spec: kapiv1.PodSpec{
+ RestartPolicy: kapiv1.RestartPolicyNever,
+ SecurityContext: e2epod.GetRestrictedPodSecurityContext(),
NodeSelector: nodeSelector,
Tolerations: []kapiv1.Toleration{
{
