podman/pkg/specgen
Jordan Christiansen dce877c5ca Add problematic volume name to kube play error messages
When kube play fails to create a volume, it should say which volume had
the problem so the user doesn't have to guess. For the following pod
spec:

	apiVersion: v1
	kind: Pod
	metadata:
	  name: mypod
	spec:
	  containers:
	    - name: myfrontend
	      image: nginx
	      volumeMounts:
	      - mountPath: "/var/www/html"
		name: mypd
	  volumes:
	    - name: mypd
	      hostPath:
		path: /var/blah

podman will now report:

	Error: failed to create volume "mypd": error in parsing HostPath
	in YAML: error checking path "/var/blah": stat /var/blah: no such
	file or directory

Signed-off-by: Jordan Christiansen <xordspar0@gmail.com>
2021-03-27 09:46:30 -05:00
..
generate Add problematic volume name to kube play error messages 2021-03-27 09:46:30 -05:00
config_unsupported.go bump go module to v3 2021-02-22 09:03:51 +01:00
container_validate.go bump go module to v3 2021-02-22 09:03:51 +01:00
namespaces.go Correct json field name 2021-03-25 09:55:13 -07:00
pod_validate.go bump go module to v3 2021-02-22 09:03:51 +01:00
podspecgen.go Add support for slirp network for pods 2020-09-25 21:34:23 -04:00
specgen.go Implement Secrets 2021-02-09 09:13:21 -05:00
volumes.go Add U volume flag to chown source volumes 2021-02-22 22:55:19 -06:00