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

Abstracted port checking function #107

Merged
merged 1 commit into from
Aug 16, 2016

Conversation

surajssd
Copy link
Member

To reduce the inconsistency of message printing created a function which can be called from both kubernetes and openshift

@@ -213,3 +213,12 @@ func convertToVersion(objs []runtime.Object) ([]runtime.Object, error) {

return ret, nil
}

func CheckPorts(name string, service kobject.ServiceConfig) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about PortsExist ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure!

To reduce the inconsistency of message printing created a
function which can be called from both kubernetes and openshift
@ngtuna ngtuna added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 16, 2016
@surajssd surajssd merged commit 08488f8 into kubernetes:master Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. review needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants