-
Notifications
You must be signed in to change notification settings - Fork 3k
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
kvstore: add clusterName suffix to session controllers #23928
Conversation
pkg/kvstore/etcd.go
Outdated
@@ -788,7 +791,7 @@ func connectEtcdClient(ctx context.Context, config *client.Config, cfgPath strin | |||
|
|||
go ec.statusChecker() | |||
|
|||
ec.controllers.UpdateController("kvstore-etcd-session-renew", | |||
ec.controllers.UpdateController(makeSessionName(etcdSessionRenewNamePrefix, opts.ClusterName), |
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.
opts
can be nil
here, that's probably why the integration tests are failing: https://github.com/cilium/cilium/actions/runs/4240559572/jobs/7371405312
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.
ofcourse, thanks
pkg/kvstore/etcd.go
Outdated
@@ -799,7 +802,7 @@ func connectEtcdClient(ctx context.Context, config *client.Config, cfgPath strin | |||
}, | |||
) | |||
|
|||
ec.controllers.UpdateController("kvstore-etcd-lock-session-renew", | |||
ec.controllers.UpdateController(makeSessionName(etcdLockSessionRenewNamePrefix, opts.ClusterName), |
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.
Same here.
Previously all session/locksession controllers used the same name as a controller name (even the ones for remote clusters) and it was not possible to distinguish between them. This commit adds a suffix with a cluster name to each session controller name. Signed-off-by: Ondrej Blazek <ondrej.blazek@firma.seznam.cz>
442d3ac
to
78ede9b
Compare
/test |
/test-1.16-4.19 |
any idea what could be wrong with |
/test-1.16-4.19 |
Reviews are in, all CI jobs are passed. Marking this ready to merge. |
Previously all session/locksession controllers used the same name as a controller name (even the ones for remote clusters) and it was not possible to distinguish between them.
cilium status --verbose
would show this output for clustermesh with 4 remote clusters:And noone has any idea which belongs to which connection.
This commit adds a suffix with a cluster name to each session controller name i.e.:
Had a small discussion with Andre about this https://cilium.slack.com/archives/C2B917YHE/p1676646945994179