Merge pull request #116005 from gjkim42/fix-createStaticPod

Fix createStaticPod to not use container.RestartPolicy
This commit is contained in:
Kubernetes Prow Robot
2023-02-23 12:33:35 -08:00
committed by GitHub

View File

@@ -213,7 +213,7 @@ spec:
containers:
- name: test
image: %s
restartPolicy: %s
restartPolicy: %s
`
file := staticPodPath(dir, name, namespace)
podYaml := fmt.Sprintf(template, name, namespace, image, string(restart))