-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add support for remote control plane to SLI exporter #273
Conversation
19524bf
to
9ff0abf
Compare
9ff0abf
to
98b0a28
Compare
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.
Some small nitpicks but I don't see where you connect to the control plane, where do you set KUBECONFIG
? I see only SERVICE_ KUBECONFIG
which is not even mandatory
|
70d65e5
to
feccc65
Compare
As pointed out in the docs PR, does this PR also addresses the problem of XRs from different service clusters? We should make sure this works, otherwise it's gonna be a bug which will have to fix later on. |
Yes I need to add that logic, somehow I missed that completely. Might end up having multiple k8s clients after all. |
feccc65
to
26c59ee
Compare
I came up with a simple logic to match all control plane composites to a local service cluster, could you have another look? |
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
This adds support for remote control planes for the SLI exporter. It now takes an additional `KUBECONFIG` env var to connect to the control plane. Additionally to determine the state of the maintenance of the service cluster, it connects to the local service cluster to reconcile on `UpgradeJob` objects. Also the SLI-Prober doesn't need any configuration about the services anymore. It will detect these on startup.
682657a
to
36762a3
Compare
Summary
This adds support for remote control planes for the SLI exporter. It now
takes an additional
KUBECONFIG
env var to connect to the control plane.Additionally to determine the state of the maintenance of the service
cluster, it connects to the local service cluster to reconcile on
UpgradeJob
objects.Also the SLI-Prober doesn't need any configuration about the services
anymore. It will detect these on startup.
Checklist
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelog