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
Upgrade MeshController to use TrafficController #79
Conversation
* informer reports service does not exist * informer generates empty notification
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.
Mesh related logic had been tested in KM env, LGTM
mc.superSpec, mc.spec, mc.super = superSpec, superSpec.ObjectSpec().(*spec.Admin), super | ||
mc.reload() |
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.
mc.api
is not set as in function Init
.
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.
@xxx7xxxx , Is that necessary to introduce the api
into MeshController? Since master
and worker
have handled the API registration inside. And I can't find any use of m.api
in MeshController.
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.
It's expected. Otherwise it will cause repeating registering apis.
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.
if so, in Init
, can we change
mc.api = api.New(superSpec, super)
to
api.New(superSpec, super)
and remove mc.api
?
it is weird to only initialize the variable in Init
.
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.
I don't see the difference. IMO, the standalone api.New
is weirder to me. I updated it to api.Register
No description provided.