mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
Fix createStaticPod to not use container.RestartPolicy
This commit is contained in:
@@ -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))
|
||||||
|
Reference in New Issue
Block a user