Skip to content

Add GetBuild function to access existing Unstructured Build object - #2737

Merged
knative-prow-robot merged 2 commits into
knative:masterfrom
trisberg:get-unstructured-build
Dec 19, 2018
Merged

knative-prow-robot merged 2 commits into
knative:masterfrom
trisberg:get-unstructured-build

Conversation

@trisberg

Copy link
Copy Markdown
Contributor

Fixes #

Proposed Changes

  • Add GetBuild function to access existing Unstructured Build object
  • this is needed to modify labels or annotations on the Build that is part of a ConfigurationSpec

Release Note

NONE

- this is needed to modify labels or annotations on the Build that is part of a ConfigurationSpec
@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 17, 2018

@knative-prow-robot knative-prow-robot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@trisberg: 1 warning.

Details

In response to this:

Fixes #

Proposed Changes

  • Add GetBuild function to access existing Unstructured Build object
  • this is needed to modify labels or annotations on the Build that is part of a ConfigurationSpec

Release Note

NONE

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

return u
}

func GetBuild(configSpec *v1alpha1.ConfigurationSpec) *unstructured.Unstructured {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Golint comments: exported function GetBuild should have comment or be unexported. More info.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you document this?

@knative-metrics-robot

Copy link
Copy Markdown

The following is the coverage report on pkg/.
Say /test pull-knative-serving-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/v1alpha1/configuration/resources/build.go 87.1% 87.9% 0.8

@mattmoor mattmoor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 19, 2018
@knative-prow-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor, trisberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 19, 2018
@trisberg

Copy link
Copy Markdown
Contributor Author

/retest

@trisberg

Copy link
Copy Markdown
Contributor Author

/test pull-knative-serving-integration-tests

@knative-prow-robot
knative-prow-robot merged commit c089351 into knative:master Dec 19, 2018
trisberg added a commit to trisberg/knative-serving that referenced this pull request Dec 20, 2018
From knative#2737

Add GetBuild function to access existing Unstructured Build object

- this is needed to modify labels or annotations on the Build that is
part of a ConfigurationSpec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm 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.

4 participants