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

Always give new-app output a common label #3888

Merged
merged 2 commits into from Jul 24, 2015

Conversation

smarterclayton
Copy link
Contributor

app= where name is --name or the first component's name.

@csrwng review please

@smarterclayton
Copy link
Contributor Author

Review..... :)

@@ -235,7 +235,7 @@ func setupAppConfig(f *clientcmd.Factory, c *cobra.Command, args []string, confi

func setLabels(labels map[string]string, result *newcmd.AppResult) error {
if len(labels) == 0 {
return nil
labels = map[string]string{"app": result.Name}
Copy link
Contributor

Choose a reason for hiding this comment

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

should likely check when result.Name is empty... no pipelines got created because you were only instantiating templates.

@csrwng
Copy link
Contributor

csrwng commented Jul 24, 2015

Just one comment, other than that, looks good

Only if no labels are specified - uses the first component name
@smarterclayton
Copy link
Contributor Author

[merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/3779/) (Image: devenv-fedora_2050)

@openshift-bot
Copy link
Contributor

Evaluated for origin up to 16f9790

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/3779/)

openshift-bot pushed a commit that referenced this pull request Jul 24, 2015
@openshift-bot openshift-bot merged commit 79562af into openshift:master Jul 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants