EV-6336: feat(istio): waypoint pull secret support for private registries#4483
Open
electricjesus wants to merge 2 commits intomasterfrom
Open
EV-6336: feat(istio): waypoint pull secret support for private registries#4483electricjesus wants to merge 2 commits intomasterfrom
electricjesus wants to merge 2 commits intomasterfrom
Conversation
Add ImagePullSecrets field to GlobalConfig and populate it from Installation pull secrets when rendering istiod Helm values. This makes istiod inject imagePullSecrets references into waypoint pod specs it creates, enabling image pulls from private registries.
Add a new controller that watches for istio-waypoint Gateway resources and copies pull secrets from the operator namespace to waypoint namespaces. This ensures waypoint pods can pull images from private registries. Secrets are tracked with a label for cleanup when gateways are removed or the Istio CR is deleted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Jira: EV-6336
When users create an Istio waypoint Gateway (
gatewayClassName: istio-waypoint) in their namespace, istiod automatically creates a waypoint Deployment there. On clusters with private registries (like AKS withgcr.io/unique-caldron-775), the waypoint pod fails withImagePullBackOffbecause the pull secret only exists in the operator namespace and istiod doesn't injectimagePullSecretsinto waypoint pod specs.This PR fixes the issue with two changes:
Part 1: Pass imagePullSecrets to istiod via Helm values
ImagePullSecretsfield toGlobalConfigin the Istio render packageglobal.imagePullSecretsin istiod Helm values from Installation pull secretsimagePullSecretsreferences into waypoint pod specs it createsPart 2: New waypoint sub-controller
istio-waypointGateway resources across all namespacesoperator.tigera.io/istio-waypoint-pull-secretlabel for cleanupBoth parts are no-ops when no pull secrets are configured (
omitempty/ early return).Testing:
Components affected:
pkg/render/istio,pkg/controller/istio,internal/controllerRelease Note
For PR author
make gen-filesmake gen-versions