-
Notifications
You must be signed in to change notification settings - Fork 142
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
Deploy es-kube-controllers in a multi-tenant environment #3142
Conversation
pkg/controller/logstorage/kubecontrollers/es_kube_controllers.go
Outdated
Show resolved
Hide resolved
pkg/controller/logstorage/kubecontrollers/es_kube_controllers.go
Outdated
Show resolved
Hide resolved
pkg/controller/logstorage/kubecontrollers/es_kube_controllers.go
Outdated
Show resolved
Hide resolved
pkg/controller/logstorage/kubecontrollers/es_kube_controllers.go
Outdated
Show resolved
Hide resolved
07465e7
to
4a2e524
Compare
pkg/controller/logstorage/kubecontrollers/es_kube_controllers.go
Outdated
Show resolved
Hide resolved
4a2e524
to
11dbe5a
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.
lgtm
if err != nil { | ||
r.status.SetDegraded(operatorv1.ResourceReadError, "Failed to get kube controllers gateway secret", err, reqLogger) | ||
return reconcile.Result{}, err | ||
var kubeControllersUserSecret *core.Secret |
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.
This needs a comment explaining that this secret is only used for talking to es-gateway, and that when running in multi-tenant mode es-kube-controllers doesn't talk to es-gateway.
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.
Typo: "eskube controllers" should be "es-kube-controllers"
11dbe5a
to
3dfbd5e
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.
@asincu one typo but otherwise LGTM
Description
Deploy es kube controllers in a tenant namespace to enable license copy in the managed clusters. We will use a new configuration
managedclusterlicensing
, that only deploy the licensing controller. We also need to impersonate kube-controllers service account from calico-system namespace, since this is the one that has rights inside the managed cluster.For PR author
make gen-files
make gen-versions
For PR reviewers
A note for code reviewers - all pull requests must have the following:
kind/bug
if this is a bugfix.kind/enhancement
if this is a a new feature.enterprise
if this PR applies to Calico Enterprise only.