add conditions to build api#52
Conversation
|
/assign @adambkaplan |
|
@adambkaplan Once this PR goes green, we can merge openshift/api#532 and openshift/client-go#128, then i'll come back and update this PR to use a proper bump. Then once it merges, we can retest/merge openshift/origin#24254 |
|
/retest |
adambkaplan
left a comment
There was a problem hiding this comment.
@bparees minor nits on the timestamps, otherwise looks right
| Type: buildv1.BuildConditionType(buildv1.BuildPhaseNew), | ||
| Status: corev1.ConditionTrue, | ||
| LastUpdateTime: metav1.Now(), | ||
| LastTransitionTime: metav1.Now(), |
There was a problem hiding this comment.
nit - use same object for LastUpdateTime and LastTransitionTime
| Type: buildv1.BuildConditionType(buildv1.BuildPhaseNew), | ||
| Status: corev1.ConditionTrue, | ||
| LastUpdateTime: metav1.Now(), | ||
| LastTransitionTime: metav1.Now(), |
There was a problem hiding this comment.
nit - use same object for timestamps
| if c.Status != kapi.ConditionFalse { | ||
| build.Status.Conditions[i].Status = kapi.ConditionFalse | ||
| build.Status.Conditions[i].LastTransitionTime = metav1.Now() | ||
| build.Status.Conditions[i].LastUpdateTime = metav1.Now() |
There was a problem hiding this comment.
nit - use same object for timestamps
| Type: buildapi.BuildConditionType(build.Status.Phase), | ||
| Status: kapi.ConditionTrue, | ||
| LastUpdateTime: metav1.Now(), | ||
| LastTransitionTime: metav1.Now(), |
There was a problem hiding this comment.
nit - use same object for timestamps
91e361c to
cfe04bc
Compare
|
@adambkaplan updated. if you can lgtm openshift/api#532 i'll start the process of merging/bumping across the repos. |
cfe04bc to
5a778d0
Compare
5a778d0 to
bab2005
Compare
bab2005 to
a3744ea
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bparees The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel @adambkaplan this is ready for re-review/merge. |
|
/retest |
a3744ea to
fb2fd36
Compare
|
/test cmd |
2 similar comments
|
/test cmd |
|
/test cmd |
|
/retest @adambkaplan ptal |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adambkaplan, bparees The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
implementation of https://jira.coreos.com/browse/DEVEXP-95
api updates: openshift/api#532
client-go updates(using temporary bump from bparees fork): openshift/client-go#128
openshift-apiserver updates(using temporary bump from bparees fork): #52
origin(e2e test, using temporary bump from bparees fork) updates: openshift/origin#24254