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
commit 10cdaefc1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))