-
Notifications
You must be signed in to change notification settings - Fork 690
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
cmd/contour: unify client creation #2339
Conversation
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, nice
Codecov Report
@@ Coverage Diff @@
## master #2339 +/- ##
==========================================
- Coverage 77.91% 77.79% -0.12%
==========================================
Files 59 60 +1
Lines 5208 5216 +8
==========================================
Hits 4058 4058
- Misses 1062 1070 +8
Partials 88 88
Continue to review full report at Codecov.
|
Updates projectcontour#403 Before I can add ingress status support to cmd/contour I need to clean up the serve method. This change unifies the creation of the various clients to a single method and improves the naming of the various return values -- they are infomer _factories_ not informers. Signed-off-by: Dave Cheney <[email protected]>
Signed-off-by: Dave Cheney <[email protected]>
} | ||
|
||
// ClientSet returns the Kubernetes Core v1 ClientSet. | ||
func (c *Clients) ClientSet() *kubernetes.Clientset { |
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.
These getters are unpleasant, I'll try to clean them up in a future PR.
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.
Yeh, I'd be inclined to just make the struct members public, but this is fine too.
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
Updates #403
Before I can add ingress status support to cmd/contour I need to clean
up the serve method. This change unifies the creation of the various
clients to a single method and improves the naming of the various return
values -- they are infomer factories not informers.
Signed-off-by: Dave Cheney [email protected]