2018-09-07 09:53:15 |
Alexey Perevalov |
description |
Commit 8f2729cedd1845f65bd138c79ee029bffc400edc
replaced hard coded path
- path: /var/run/openvswitch
+ path: ${OVS_HOST_PATH}
by OVS_HOST_PATH. Now when OVS_HOST_PATH is empty path: field will be empty in generated cni_ds.yaml too.
It lead to the following error when we try to apply this cni_ds.yaml.
error: error validating "/tmp/resource_no_fixed/cni_ds.yml": error validating data: ValidationError(DaemonSet.spec.template.spec.volumes[4].hostPath): missing required field "path" in io.k8s.api.core.v1.HostPathVolumeSource; if you choose to ignore these errors, turn validation off with --validate=false |
Commit 8f2729cedd1845f65bd138c79ee029bffc400edc
replaced hard coded path
- path: /var/run/openvswitch
+ path: ${OVS_HOST_PATH}
by OVS_HOST_PATH. Now when OVS_HOST_PATH is empty path: field will be empty in generated cni_ds.yaml too.
It lead to the following error when we try to apply this cni_ds.yaml.
error: error validating "/tmp/resource_no_fixed/cni_ds.yml": error validating data: ValidationError(DaemonSet.spec.template.spec.volumes[4].hostPath): missing required field "path" in io.k8s.api.core.v1.HostPathVolumeSource; if you choose to ignore these errors, turn validation off with --validate=false
The steps for making kuryr-kubernetes as kubernetes addon are described here
https://docs.openstack.org/kuryr-kubernetes/latest/installation/containerized.html
as a workaround OVS_HOST_PATH could be defined as environment variable, but in some use cases it's better to omit openvswitch mount volume. |
|