-
Notifications
You must be signed in to change notification settings - Fork 74
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
unknown field "spec.volume.volumeClaimTemplates.name" #170
Comments
Hi, |
Sure! Here you go:
I was trying it woth "volumes" and "volumeMounts" before as well as with different paths and replacing anyMount with any other value. The result was always the same. |
You find an issue in the documentation. Thank you :) I updated the doc and released the changes: https://www.kubegres.io/doc/properties-explained.html Try the following, by adding the field "name" under "metadata":
|
Thank you for your reply! Let's try to apply it:
(The indentation from the example above may not be accurate due to copying and pasting. I formatted it in a correct way on my lab environment)
|
Oh you know what, it seems like the initial example in the documentation was correct. I did not notice in your initial YAML example that "-" was missing. Because "volumeClaimTemplates" is an array. For us it works fine.
|
Oh, indeed! It turns out I missed this point. Thank you Alex. It works fine now. One more question (if I shouldn't create a new issue): can I use this option to override the default pvc setting? For example, to specify "matchLabels" to bind the kubegres pvc's only to the specific pv's. Or it's intended to add an additional pvc? |
Hello,
I'm trying to apply custom settings with volumeClaimTemplates option from this doc: https://www.kubegres.io/doc/properties-explained.html
However, it does not work even with the example from that link. The error below:
To test it, just follow steps from "Getting started" and add the volume section from the "All properties explained" article. All settings are default.
Is it a bug or the documentation is outdated?
Thank you in advance.
The text was updated successfully, but these errors were encountered: