Skip to content

Add LatestRevisionReady condition in Configuration#568

Merged
google-prow-robot merged 1 commit intoknative:masterfrom
johnugeorge:master
Apr 2, 2018
Merged

Add LatestRevisionReady condition in Configuration#568
google-prow-robot merged 1 commit intoknative:masterfrom
johnugeorge:master

Conversation

@johnugeorge
Copy link
Contributor

Adds LatestRevisionReady type in Configuration that provides the
status of the latest created revision when it is not ready.

@google-prow-robot google-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 2, 2018
@evankanderson
Copy link
Member

/assign evankanderson

Copy link
Member

@evankanderson evankanderson left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for adding this!

}
c.recorder.Eventf(config, corev1.EventTypeNormal, "LatestReadyUpdate",
"LatestReadyRevisionName updated to %q", revision.Name)
} else {
Copy link
Member

Choose a reason for hiding this comment

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

At some point, we'll need to change line 390 above to allow a revision between the current LatestReady and the LatestCreated to become the new LatestReady.

I don't think you have to solve that in this PR, though.

func getLatestRevisionStatusCondition(revision *v1alpha1.Revision) *v1alpha1.RevisionCondition {
for _, cond := range revision.Status.Conditions {
if !(cond.Type == v1alpha1.RevisionConditionReady && cond.Status == corev1.ConditionTrue) {

Copy link
Member

Choose a reason for hiding this comment

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

Odd extra line here.

Conditions: []v1alpha1.RevisionCondition{{
Type: v1alpha1.RevisionConditionReady,
Status: corev1.ConditionFalse,
Reason: "Build Failed",
Copy link
Member

Choose a reason for hiding this comment

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

"BuildFailed" (reason is supposed to be a single CamelCase word).

v1alpha1.ConfigurationCondition{
Type: v1alpha1.ConfigurationConditionLatestRevisionReady,
Status: corev1.ConditionFalse,
Reason: "Build Failed",
Copy link
Member

Choose a reason for hiding this comment

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

"BuildFailed" here as well.

@evankanderson
Copy link
Member

(Ping this when updated, since Prow will start merging once there's an lgtm + approve)

Fixes #494

Adds LatestRevisionReady type in Configuration that provides the
status of the latest created revision when it is not ready.
@johnugeorge
Copy link
Contributor Author

@evankanderson updated. Please have a look

@evankanderson
Copy link
Member

/approved
/lgtm

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 2, 2018
@google-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: evankanderson, johnugeorge

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

@google-prow-robot google-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 2, 2018
@google-prow-robot google-prow-robot merged commit a912e45 into knative:master Apr 2, 2018
nak3 added a commit to nak3/serving that referenced this pull request Oct 20, 2020
* Add multi-container image directories

* Fix makefile

* Fix makefile to build multicontainer images

* Use maxdepth 2

* Do not use maxdepth
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.

3 participants