-
Notifications
You must be signed in to change notification settings - Fork 3.4k
ingress: migrate secret-sync to controller-runtime #29198
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
ingress: migrate secret-sync to controller-runtime #29198
Conversation
/test |
09a6236
to
3155530
Compare
I addressed the input from @meyskens . Thanks a lot! |
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.
Nice, the patch is simpler that I have expected 👍
3155530
to
ea42dca
Compare
This commit adds the possibility to define additional watches in addition to watching the object that is referencing the TLS Secret directly. This provides the possibility to trigger reconciliation based on other events. E.g. Default IngressClass changes Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
This commit introduces the possibility to define the default Secret. Default Secrets aren't referenced explicitly. Therefore, this Secrets are referenced regardless of whether they are referenced or not. Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
This commit migrates the secret-sync for Ingress related TLS secrets to use the controller-runtime based secret syncer, that is already used by Ciliums Gateway API implementation. By reusing the same secret-syncer we avoid potential problems of fighting two syncers with each other. Especially if Gateway API & Ingress can potentially have two different secret namespaces! Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
This commit removes the old, now unused, implementation of the Ingress Secret Sync based on informers. Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
ea42dca
to
c19a148
Compare
rebased to |
/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.
LGTM
As part of the "Cilium Ingress to controller-runtime library" migration (#28911), this PR migrates the TLS secret synchronization logic. This gets achieved by re-using functionality of the new secret-synchronization cell that is already using the controller-runtime library and is used by the Gateway API controller too (follow up of #29100).
For more information, please refer to the individual commits.
IngressClass
)