-
Notifications
You must be signed in to change notification settings - Fork 303
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 ProviderConfig Controller #2792
base: master
Are you sure you want to change the base?
Add ProviderConfig Controller #2792
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: panslava The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
8ca2383
to
64a3448
Compare
/retest |
64a3448
to
63b6cbe
Compare
/retest |
0c861ed
to
fd75ee7
Compare
6fde296
to
717f4c9
Compare
Thanks @panslava! I'm yet to take a look, but glancing through: now that we've started making use of our libraries/packages, are there some useful unit / integration tests that we can add? |
cmd/glbc/main.go
Outdated
namer, | ||
stopCh, | ||
) | ||
if err != nil { |
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 seems to be checking for the incorrect error
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.
Fixed
pkg/multiproject/start/start.go
Outdated
|
||
informersFactory := informers.NewSharedInformerFactoryWithOptions(kubeClient, ctxConfig.ResyncPeriod) | ||
|
||
providerConfigInformer := providerconfiginformers.NewSharedInformerFactory(providerConfigClient, ctxConfig.ResyncPeriod).Flags().V1().ProviderConfigs().Informer() |
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.
Who starts this informer?
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.
Add properly starting all informers
- Introduced a new ProviderConfigController to track ProviderConfig resources and start NEG controllers. - Added initialization and running the ProviderConfigController in multi-project mode in main.go.
…nt have specific purpose
12a0122
to
262703c
Compare
00d673c
to
013fb0a
Compare
Added unit tests Ready for review This PR has a bit too many commits now, integration tests will be done in next PR |
d887fd8
to
f413eeb
Compare
f413eeb
to
1a7e4d5
Compare
/assign @gauravkghildiyal
This will be the very last to review