Skip to content
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

Small addition to ClusterServiceMapper interface #235

Merged

Conversation

rramkumar1
Copy link
Contributor

This PR adds a new method to the interface. Specifically, now the list of expected services can be overwritten with a call to SetExpectedServices.

/assign @nicksardo

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 19, 2018
es := make(map[string]bool)
if expectedSvcs == nil {
return es
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This nil check isn't necessary.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be a generic helper func: stringsToKeyMap? If there's nothing already like it in utils, throw it in there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@rramkumar1 rramkumar1 force-pushed the cluster-service-mapper-refactor branch from 0046b4b to 879fc03 Compare April 19, 2018 23:44
@rramkumar1 rramkumar1 force-pushed the cluster-service-mapper-refactor branch from 879fc03 to 811a0e3 Compare April 19, 2018 23:49
@nicksardo
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 19, 2018
@nicksardo nicksardo merged commit 27269a4 into kubernetes:mci-dev Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants