openshift-virt-labs icon indicating copy to clipboard operation
openshift-virt-labs copied to clipboard

Hostpath provisioner error must be of type string: "boolean"

Open russ9406 opened this issue 3 years ago • 2 comments

$ 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"

russ9406 avatar Apr 27 '21 14:04 russ9406

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

zokahn avatar May 03 '21 08:05 zokahn

#19 solved in this pull request

zokahn avatar May 04 '21 09:05 zokahn