-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix: gwp does not respect image variant #10603
Conversation
Issues linked to changelog: |
Visit the preview URL for this PR (updated for commit b37853c): https://gloo-edge--pr10603-fix-gwp-fips-distrol-t0l7olu4.web.app (expires Tue, 18 Feb 2025 15:16:03 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 77c2b86e287749579b7ff9cadb81e099042ef677 |
@@ -31,6 +31,7 @@ Construct a container image name from a registry, repository, tag, and digest. | |||
{{- define "gloo.image" -}} | |||
{{- $image := printf "%s/%s" .registry .repository -}} | |||
|
|||
{{- /* This has been copied over to _gg-helpers.tpl and should be kept in sync */ -}} |
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.
why cant we have a shared space for the template to avoid sync issues?
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.
Yeah I was thinking the same thing. I've split the "gloo.image" template into subtemplates to handle each section
for fips or fips-distroless variants: add -fips to the image repo (name) | ||
*/ -}} | ||
{{- if or $image.fips (has $image.variant (list "fips" "fips-distroless")) -}} | ||
{{- $fipsSupportedImages := list "gloo-ee" "extauth-ee" "gloo-ee-envoy-wrapper" "rate-limit-ee" "discovery-ee" "sds-ee" -}} |
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.
does this include distroless?
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.
Yup, the distroless section is separated now!
This reverts commit 51fe37a.
/kick
|
Description
Ensures the images generated in the gatewayparams via helm respect the global.image.variant
Context
https://github.com/solo-io/solo-projects/issues/7803
Testing steps
Before :
After :
Notes for reviewers
Checklist: