-
Notifications
You must be signed in to change notification settings - Fork 33
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
Panic when creating Cluster using non-semver tag #747
Comments
I would never recommend you to use tags called The current code has special meaning to tags The nil pointer dereference is obviously not ideal here and is definitely something that needs to be fixed so it is handled better and not crashes the entire operator. If we assume we merge in this change and configure Question is more: should we just add snapshot/staging to the list of "known assumed-bleeding-edge" container image tags? Or should we change the default behavior so that it always assumes anything not semver compatible is always assumed to be bleeding edge? |
Yeah at first I didn't know this but then when I went to go fix & create the issue I learned how tied the operator is to versions :)
Agreed. I think #752 makes sense but I'd also still consider the changes in #751 alongside it. This could be dangerous though if you're on a bleeding edge version as it'll be nil. humio-operator/controllers/humiocluster_version.go Lines 54 to 56 in 7354ed9
|
Similar to #551, If you attempt to create a HumioCluster with
spec.image
set to a tag such assnapshot
orpreview
, it'll panic insidehumiocluster_version.go
. This is due to the constraint failing to parse andconstraint
is nil.humio-operator/controllers/humiocluster_version.go
Lines 67 to 70 in b7c2429
The text was updated successfully, but these errors were encountered: