-
Notifications
You must be signed in to change notification settings - Fork 93
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
Schema Validation Fix #167
Conversation
@AdheipSingh did you re-produce the issue before this patch, and checked that this patch indeed fixed the issue? |
@himanshug i dint not get the error as the other users mentioned, i got an error on deleteOrphanPVC key which i fixed, also the file size went over a certain bytes, so when applying the server gave me an error, so to fix that i added this https://github.com/druid-io/druid-operator/pull/167/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R5 ( basically this removes the description key from the crd ) ok ill try another round to see if i can re-create this. and update :) |
I tested this pull request and still face the same issue. Looking at the #135 comment, I can not seem to find this in the file druid.apache.org_druids.yaml, is this where the fix needed to be added? |
@y25ean can you share your yaml. |
@AdheipSingh I am using this tiny-cluster.yaml. The only thing changed from the one supplied is the storage class name. I am also running it on k8s version 1.20. In the original pull request #152 that fixes this issue I can see the CRDs file is updated with the code mentioned in the #135 comment , however I can not see it in the branch that is linked to this pull request. |
@y25ean thanks, i will run few more tests and get back with the updates. |
i fail to re-produce the error, my PR works fine for the tiny-cluster.yaml, i too just updated my storage class.
cc @himanshug |
@AdheipSingh The pod that the persistent volume attaches too is the historicals, which you can not see in the list you get by running |
i tried all routes, fail to understand what is causing this. I am getting the same sts error, this error goes off if there is no validation. I have even tried updating the go mod nothing worked though The crd defination is not passing name field in the metadata I wonder what // +kubebuilder tag can add this name #152 as mentioned here, if we are able to find which tag is responsible it should be good. I have no clue, spent hours on this. :( Will try again and see, but for now clueless. |
we could go back to not having openapi spec validation by documenting users to use crd spec without it, just so that the bug is "fixed" |
@himanshug i believe for now we can do this. I think we might be missing out something on change of local kubebuilder version, controller-gen, controller runtime or k8s 1.20. This requires change in helm crd too cc @y25ean |
I was able to fix this issue by using the CRD supplied in the pull request #152. The PVC for the Historicals work fine and get attached no problem. Only issue I subsequently had was that Druid needed to run as root to be able to access the volume attached. Could you try it CRD file mentioned and see where you get to? |
@AdheipSingh I don't have a lot of experience with Kubernetes or CRD's, however here is where I have got to regarding this issue. I went looking for any issues surrounding PVC and / or metadata objects not being generated and have found that the controller-tools, which is used to generate the CRD, has issues:
This issue has been merged into their master branch but unfortunately has not been fully released. Fortunately, they have a beta release and I was able to test it and it seems to work for me. There was two changes that I had to make in the Makefile. First is the URL of the controller-gen was changed from If you could test this fix and comment on how we want to proceed with either waiting for a new release of controller-tools or go with the beta. |
@y25ean appreciate your help. I see, this definitely needed to be a bug on the generation. |
i have pushed the changes, bumped the helm chart version and update the crd defination there too. |
LGTM , can you remove the vendor'd files please? |
oh sorry i though we are still pushing vendor :) |
Fixes #152
I did try to re-create issues as faced here Wrong pvc for middle manager #135 (comment)
I am able to run this with tiny-cluster.yaml, and dont see any issues, my k8s version 1.20.
Can someone confirm if this does solve there problem, as i was able to run this without any issues, though not able to re-create the validation issue.
@dsx @lum-splunk @y25ean @hugo-costa-tek
Keeping this Draft as of now.
cc @himanshug
Description
This PR has:
Key changed/added files in this PR
MyFoo
OurBar
TheirBaz