openshift-virt-labs
openshift-virt-labs copied to clipboard
Hostpath provisioner error must be of type string: "boolean"
$ cat << EOF | oc apply -f -
apiVersion: hostpathprovisioner.kubevirt.io/v1alpha1 kind: HostPathProvisioner metadata: name: hostpath-provisioner spec: imagePullPolicy: IfNotPresent pathConfig: path: "/var/hpvolumes" useNamingPrefix: false EOF The HostPathProvisioner "hostpath-provisioner" is invalid: spec.pathConfig.useNamingPrefix: Invalid value: "boolean": sp ec.pathConfig.useNamingPrefix in body must be of type string: "boolean"
The quick solution is to replace the top line to
apiVersion: hostpathprovisioner.kubevirt.io/v1alpha1 into apiVersion: hostpathprovisioner.kubevirt.io/v1beta1
See https://bugzilla.redhat.com/show_bug.cgi?id=1885182 I'll see about some documentation changes and hope to contribute the results
#19 solved in this pull request