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

add reference to build as a label on built images #13703

Merged
merged 1 commit into from
Apr 11, 2017

Conversation

bparees
Copy link
Contributor

@bparees bparees commented Apr 10, 2017

fixes #5978

@bparees
Copy link
Contributor Author

bparees commented Apr 10, 2017

@openshift/devex ptal, ultimately this implements the agreement reached here:
#5978 (comment)

@bparees
Copy link
Contributor Author

bparees commented Apr 10, 2017

[test]

@bparees
Copy link
Contributor Author

bparees commented Apr 10, 2017

[testextended][extended:core(builds)]


// addBuildLabels adds some common image labels describing the build that produced
// this time.
func addBuildLabels(labels map[string]string, build *buildapi.Build, labelNamespace string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why pass the labelNamespace? shouldn't we just use the constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was trying to keep it generic but yeah in this case i guess there's no real value, i'll change it.

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

@csrwng
Copy link
Contributor

csrwng commented Apr 10, 2017

LGTM

@@ -192,3 +194,10 @@ func reportPushFailure(err error, authPresent bool, pushAuthConfig docker.AuthCo
}
return fmt.Errorf("Failed to push image: %v", err)
}

// addBuildLabels adds some common image labels describing the build that produced
Copy link
Member

Choose a reason for hiding this comment

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

grammar nit: that was produced

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually it's correct as is. what's incorrect is "this time" on the next line which should read "this image"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 992b889

@openshift-bot
Copy link
Contributor

Evaluated for origin testextended up to 992b889

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/678/) (Base Commit: 1d26c38)

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/testextended SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended/144/) (Base Commit: 1d26c38) (Extended Tests: core(builds))

@bparees
Copy link
Contributor Author

bparees commented Apr 10, 2017

[merge]

@bparees
Copy link
Contributor Author

bparees commented Apr 11, 2017

flake #11114
[merge]

@bparees
Copy link
Contributor Author

bparees commented Apr 11, 2017

flake #9414
[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 992b889

@openshift-bot
Copy link
Contributor

openshift-bot commented Apr 11, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/317/) (Base Commit: b3cacc5) (Image: devenv-rhel7_6134)

@openshift-bot openshift-bot merged commit ef6c37b into openshift:master Apr 11, 2017
@bparees bparees deleted the build_labels branch April 17, 2017 21:09
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.

Allow to annotate the build started manually
4 participants