Fix createStaticPod to not use container.RestartPolicy

This commit is contained in:
Gunju Kim 2023-02-23 21:18:24 +09:00
parent 70c129fea5
commit f690a0ce41
No known key found for this signature in database
GPG Key ID: 9300A528F3F0DAB7

View File

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