-
Notifications
You must be signed in to change notification settings - Fork 57
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
[4.2] addons: List cilium-init image only for Cilium < 1.6 #1397
[4.2] addons: List cilium-init image only for Cilium < 1.6 #1397
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isnt it possible to plainly skip the test altogether if the version is above 1.6 instead of running a dummy string test ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to skip the call to GetCiliumInitImage() here instead of passing an empty string ?
What do you mean?
Not really. Look here: skuba/internal/pkg/skuba/addons/cilium.go Lines 33 to 35 in a019c91
The Honesly, I don't think there is any better way of handling different versions without a huge rewrite of the whole addons mechanism, but I'm open for suggestions. Also, keep in mind that this is a backport and the same change is already merged in master (#1396). So if there is any other way of handling the <1.6 case which would be better for you, we would need to push it to master first. |
Sorry, I was only referring to the test code here: https://github.com/SUSE/skuba/pull/1397/files#diff-5f300cc81d08e60d6fa85478fa933ba35c084d1d3c2a7b31f5fdc12ac075dda1R50. where you are passing an empty string ? Again, its not very crucial.. just a suggestion. Otherwise Looks Good to me. |
Add the versioncheck module with VersionCompare function. Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
We don't ship a separate cilium-init image anymore. The cilium-init
script is included in the main cilium container image.
Fixes: SUSE/avant-garde#1923
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
782b387
to
a792046
Compare
We don't ship a separate cilium-init image anymore. The cilium-init
script is included in the main cilium container image.
Fixes: SUSE/avant-garde#1923
Signed-off-by: Michal Rostecki mrostecki@opensuse.org