-
Notifications
You must be signed in to change notification settings - Fork 461
Consolidate duplicated code into applyManifests #2837
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
Conversation
ee55426 to
2c65067
Compare
yuqi-zhang
left a comment
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.
The diff view is a bit wonky but I see everything was just abstracted to syncManifests, which makes a lot of sense.
Out of curiosity, are
type manifestPaths struct {
clusterRoles []string
roleBindings []string
clusterRoleBindings []string
serviceAccounts []string
secrets []string
daemonsets []string
}
Those specific types consolidated in library-go?
|
No idea if they're in library-go, but I don't expect there's a function that takes those exact arguments. I guess I could also just pass all of them as args to |
|
/assign |
kikisdeliveryservice
left a comment
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.
Some comments / questions
|
/retest-required |
c4975b7 to
8216fa1
Compare
Besides eliminating code duplication, this will allow more easily unit testing functions that call resourceapply.* functions, which will help in migrating from using ./lib to library-go Created a new type manifestPaths to wrap all the arguments needed for applyManifests
8216fa1 to
eeef059
Compare
|
@mkenigs: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
kikisdeliveryservice
left a comment
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.
great job @mkenigs
|
Zack, can you give this a once over and I'll leave the final lgtm to you =) |
|
@kikisdeliveryservice thanks and thanks for the feedback :) |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheesesashimi, kikisdeliveryservice, mkenigs, yuqi-zhang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Besides eliminating code duplication, this will allow more easily unit
testing functions that call resourceapply.* functions, which will help
in migrating from using ./lib to library-go
Created a new type manifestPaths to wrap all the arguments needed for
applyManifests