-
Notifications
You must be signed in to change notification settings - Fork 140
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
feat: new field for image suffix in installation #2988
base: master
Are you sure you want to change the base?
feat: new field for image suffix in installation #2988
Conversation
Create the new field imageSuffix to allow users to specify a suffix for images deployed. This suffix follows the same rules as the already-existing field imagePrefix. Signed-off-by: Mauren Berti <[email protected]>
@stormqueen1990 thanks for the PR! So far as the code goes, it looks sensible to me. I am curious what your use-case is for a suffix here - is there a related issue? Or could you add a brief description of the use-case to the PR description? |
Hi there, @caseydavenport! The use case we have is a set of images in the format I didn't file an issue. Will add this to the PR description. |
Yeah the PR code looks sensible to me. My hesitation would be that I don't see what this would allow that couldn't also be achieved with images tagged like
So I hesitate to add a new field to satisfy a request to have a common suffix as there is no functional difference to my knowledge of |
Yep, that is what I was thinking as well @tmjd. Basically by question is "why not use the existing prefix capability?" If we want to introduce two ways of satisfying the same high level goal - distinguishing like images within a registry - it should be clear when one should be used vs. the other. |
Hi there, @tmjd and @caseydavenport!
|
Hello! It might be worth adding some context here that Chainguard is a popular security tool that many Calico users are using as part of their supply chain security efforts. It would be great if we could help @stormqueen1990 and the Chainguard team more easily manage the variants. :) |
I think the issue here is that the operator is opinionated in that it isn't meant to install different variants of images. The reasoning for allowing a "prefix" was for cases where a registry was flat (no sub-directories) and a user wanted to be able to have something like |
I agree with @tmjd - a core principle of this project is to prevent installing versions of our code that we haven't blessed in combination with the operator code, as we have historically seen that to result in issues for users. I understand your desire to use a suffix here, and have no problem with it fundamentally - but I don't think it's an appropriate gun to put into the hands of the remaining 99% of this project's users. If using one of the several other configurable options (prefix, tag) doesn't work for your flow, I'd probably suggest a custom build of this operator to support suffixes if you're already going to be rebuilding the other Calico images.
For FIPS in particular, we natively support FIPS and it can be enabled already via the operator's API: operator/api/v1/installation_types.go Lines 181 to 185 in 2e0727e
|
Description
Create a new field
imageSuffix
to allow users to specify a suffix for images deployed. This suffix follows the same rules as the already-existing fieldimagePrefix
. This affects theInstallation
resource in theoperator.tigera.io/v1
group/version.The goal of this change is to enable usage of images with Tigera Operator when the general format is
as it is currently not possible to use the operator with images for which names end with a standardized suffix (i.e.
my.registry/project/calico-pod2daemon-flexvol-test
).For PR author
make gen-files
make gen-versions
For PR reviewers
A note for code reviewers - all pull requests must have the following:
kind/bug
if this is a bugfix.kind/enhancement
if this is a a new feature.enterprise
if this PR applies to Calico Enterprise only.