-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Allow override of registry and tag for Calico images #10316
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I've tested this patch atop the "release-1.19" branch, and found that it works well. |
Do any of the nominated reviewers have any suggestions or objections here? |
I'm not a huge fan of the inconsistency we're introducing between other CNIs and addons, though after looking into it the other CNIs are already inconsistent in their API field naming:
I know we've been waiting for addon operators for a long time now, but I think as long as we have a clear transition path from this to addon operators then it should be okay. /lgtm |
/hold |
Thanks @rifelpet. You were right, I should have used |
👍🏻 I'm not a huge fan of but I think consistency is key here /lgtm |
Yes, will have to add some docs for this later and explain that version should be used with "care". :) |
FWIW with Cilium we do try to apply the best manifest for the version given. |
Could try that at some point I guess :). It is not a bad idea, just much more to maintain. Also, Calico releases much more versions. |
/retest |
Trying to use this feature today, I once again left the leading 'v' character off the value I supplied to the "spec.networking.calico.version" field. Had the field been called "tag" or something other than "version," I probably would stop making that mistake. |
You can copy the validation we have for the same thing in cilium :p |
The idea was to not limit it to tags starting with |
Yes, the same problem comes up in many places that deal with semantic versions, and debate whether or not the leading 'v' is part of the version. Here, I think of the version as "3.17.3," and I know that the container image tag is the prefixed "v3.17.3." The problem for me is the field name, not the values it accepts. I like that it accepts anything, because there's a lot of freedom for image tags. It's just misleading to suggest that it's asking for a version. |
/hold for feedback
/cc @johngmyers @olemarkus @rifelpet