koki / short

Manageable Kubernetes manifests through a composable, reusable syntax
https://docs.koki.io/short
Apache License 2.0
122 stars 14 forks source link

Handle empty mountPropagation field in volume mounts #221

Closed rrati closed 6 years ago

rrati commented 6 years ago

Adding this volume mount to a container:

VolumeMounts: []types.VolumeMount{ { Store: "name", MountPath: "/etc/name", } }

and submitting to kubernetes 1.10 produces the following error:

spec.containers[0].volumeMounts.mountPropagation: Unsupported value: "": supported values: "Bidirectional", "HostToContainer"

It should be possible to define a VolumeMount without having to specify the mount propagation.

wlan0 commented 6 years ago

Fixed by https://github.com/koki/short/pull/222