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
All Kuberhealthy checks creation failing after installing latest v2.6.0 release #988
Comments
Thanks for the report @AshutoshNirkhe - we will work on reproducing this one. We haven't seen this in our end to end tests or in our clusters, which is a concern. @jonnydawg is checking this out. |
Looks like this might be an issue related to how we generated our CRDs -- leaving this here as a note for later reference:
|
This should be fixed in v2.7.0. |
@integrii @jonnydawg Thanks for fixing this. I had one query. Do we need to manually drop older crds and install new ones ? |
Yes! You would have to manually wipe the CRDs unfortunately. The CRD changes I made from This is what I am seeing in this scenario if you are going from
This creates a possible scenario where two groups of CRDs could exist -- or a failure to apply / install. |
Leaving this one open for awareness. |
Thanks for confirming @jonnydawg , I was upgrading from v2.5 to v2.6 initially and now to v2.7. But yeah, the results were same in either case. May be you can add it as a warning in the Release notes section ? |
I met the question for many times. But it's not the field "LastRun". How I deal with this question
Shortcommings The failed and key code position for verification:
now the type.go for khstate
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment on the issue or this will be closed in 15 days. |
This issue was closed because it has been stalled for 15 days with no activity. Please reopen and comment on the issue if you believe it should stay open. |
Describe the bug
After installing latest (v2.6) Kuberhealthy, new crds got installed. But all the khchecks and khstate creation started failing with error,
"invalid: spec.LastRun: Invalid value: "null": spec.LastRun in body must be of type string: "null""
Steps To Reproduce
Expected behavior
All khcheck pods and khstates should have been created properly.
Screenshots
If applicable, add screenshots to help explain your problem. You can paste images into github and they will upload automatically.
Logs from Kuberhealthy backend pods,
Versions
Additional context
All checks work perfectly fine with v2.5.0 KH release, but fail with v2.6.0 (fresh) installation.
LastRun field seems to be coming from khstate spec,
https://github.com/kuberhealthy/kuberhealthy/pull/937/files#diff-5e5ae41d19dd83d75f4a16a51db94409dbebeac54e7cd0b9454b84eb1b74741eR38
Another question I have is when I tried upgrading from v2.5.0 to v2.6.0, crds were not updated automatically and hence checks continued to run fine. I guess helm upgrade doesn't handle this. Do we need to remove older crds and install new ones manually before chart upgrade ? How are we supposed to handle existing custom resources (checks/jobs) in such case ?
The text was updated successfully, but these errors were encountered: