Skip to content

Start to refactor the way builds are created.#2400

Merged
knative-prow-robot merged 1 commit intoknative:masterfrom
mattmoor:refactor-build-creation
Nov 5, 2018
Merged

Start to refactor the way builds are created.#2400
knative-prow-robot merged 1 commit intoknative:masterfrom
mattmoor:refactor-build-creation

Conversation

@mattmoor
Copy link
Copy Markdown
Member

@mattmoor mattmoor commented Nov 4, 2018

We want to be able to elide build creation when that portion of the ConfigurationSpec remains unchanged. To support those, we need to remove assumptions that MakeRevision can directly synthesize an ObjectReference for the Build directly from the Configuration.

The idea is that in a subsequent change, we will start to label builds using the schema outlined in #439 and potentially pass in an ObjectReference we have looked up instead.

Progress towards: #439

We want to be able to elide build creation when that portion of the `ConfigurationSpec` remains unchanged.  To support those, we need to remove assumptions that `MakeRevision` can directly synthesize an `ObjectReference` for the `Build` directly from the `Configuration`.

The idea is that in a subsequent change, we will start to label builds using the schema outlined in knative#439 and potentially pass in an `ObjectReference` we have looked up instead.

Progress towards: knative#439
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor

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 size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 4, 2018
Copy link
Copy Markdown
Contributor

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

Choose a reason for hiding this comment

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

@mattmoor: 1 warning.

Details

In response to this:

We want to be able to elide build creation when that portion of the ConfigurationSpec remains unchanged. To support those, we need to remove assumptions that MakeRevision can directly synthesize an ObjectReference for the Build directly from the Configuration.

The idea is that in a subsequent change, we will start to label builds using the schema outlined in #439 and potentially pass in an ObjectReference we have looked up instead.

Progress towards: #439

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.

)

func MakeRevision(config *v1alpha1.Configuration) *v1alpha1.Revision {
func MakeRevision(config *v1alpha1.Configuration, buildRef *corev1.ObjectReference) *v1alpha1.Revision {
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 MakeRevision should have comment or be unexported. More info.

@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/configuration.go 90.1% 90.2% 0.2

@imikushin
Copy link
Copy Markdown
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 5, 2018
@knative-prow-robot knative-prow-robot merged commit b68c5c9 into knative:master Nov 5, 2018
@mattmoor mattmoor deleted the refactor-build-creation branch November 5, 2018 20:21
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants