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

Porting GetLabelValues & DeleteProject function to client-go #448

Merged
merged 1 commit into from
May 18, 2018

Conversation

surajnarwade
Copy link
Contributor

@surajnarwade surajnarwade commented May 14, 2018

Partially fixes #444, This PR will port GetLabelValues & DeleteProject
to client-go. so that it will remove dependency of oc binary.

@surajnarwade surajnarwade added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. do not review labels May 14, 2018
@surajnarwade surajnarwade force-pushed the port-func-go branch 5 times, most recently from 8f7e629 to df9cda3 Compare May 14, 2018 14:31
@surajnarwade surajnarwade changed the title [WIP] Porting GetLabelValues function to client-go [WIP] Porting GetLabelValues & DeleteProject function to client-go May 14, 2018
return nil, err
}

appLabel, _ := c.appsClient.DeploymentConfigs(project).List(metav1.ListOptions{LabelSelector: selector})
Copy link
Member

Choose a reason for hiding this comment

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

check for error!

Copy link
Member

Choose a reason for hiding this comment

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

why is variable called appLabel? When it is containing List of DeploymentConfigs.

Partially fixes redhat-developer#444, This PR will port `GetLabelValues` & `DeleteProject`
to client-go. so that it will remove dependency of `oc` binary.
@surajnarwade surajnarwade changed the title [WIP] Porting GetLabelValues & DeleteProject function to client-go Porting GetLabelValues & DeleteProject function to client-go May 14, 2018
@surajnarwade surajnarwade removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label May 14, 2018
@kadel kadel merged commit f512349 into redhat-developer:master May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

port remaining functions from occlient to client-go
2 participants