Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
russ9406 opened this issue Apr 27, 2021 · 2 comments
Open

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

russ9406 opened this issue Apr 27, 2021 · 2 comments

Comments

@russ9406
Copy link

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

@zokahn
Copy link
Contributor

zokahn commented May 3, 2021

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
Copy link
Contributor

zokahn commented May 4, 2021

#19 solved in this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants