Skip to content

Bug 1827050: Update to use revised ApplyDeployment#272

Closed
marun wants to merge 2 commits intoopenshift:masterfrom
marun:cleanup-condition-handling
Closed

Bug 1827050: Update to use revised ApplyDeployment#272
marun wants to merge 2 commits intoopenshift:masterfrom
marun:cleanup-condition-handling

Conversation

@marun
Copy link
Contributor

@marun marun commented Apr 16, 2020

The new method hashes the spec of the deployment which removes the need for forcing rollout.

/cc @deads2k @stlaz

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 16, 2020
marun added 2 commits April 22, 2020 11:42
The new method hashes the spec of the deployment which removes the
need for considering generation or forcing rollout.
@marun marun changed the title WIP Update to use revised ApplyDeployment Update to use revised ApplyDeployment Apr 22, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 22, 2020
@marun
Copy link
Contributor Author

marun commented Apr 22, 2020

@stlaz The library-go has merged. Updated and ready for review.

@vareti Adding you as a reviewer since this PR is touching code you added.

/cc @vareti

@marun
Copy link
Contributor Author

marun commented Apr 22, 2020

/retest


// Ensure a rollout when the bootstrap user goes away
if bootstrapUserExists {
deployment.Spec.Template.Annotations["operator.openshift.io/bootstrap-user-exists"] = "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

do you think we should name annotation to imply CAO?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think there's a need for that now, and this is not an API so we can change it anytime in the future.

nit: you could just deployment.Spec.Template.Annotations["operator.openshift.io/bootstrap-user-exists"] = fmt.Sprintf("%v", bootstrapUserExists) to avoid conditions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why is it desirable to avoid conditions? I think the absence of an annotation is as good a signal as one with a value of "false".

@vareti
Copy link
Contributor

vareti commented Apr 22, 2020

one single comment, otherwise /lgtm

@vareti
Copy link
Contributor

vareti commented Apr 22, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 22, 2020
@stlaz
Copy link
Contributor

stlaz commented Apr 23, 2020

/approve
looks good

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marun, stlaz, vareti

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 23, 2020
@marun
Copy link
Contributor Author

marun commented Apr 27, 2020

/retitle Bug 1827050: Update to use revised ApplyDeployment

@openshift-ci-robot openshift-ci-robot changed the title Update to use revised ApplyDeployment Bug 1827050: Update to use revised ApplyDeployment Apr 27, 2020
@openshift-ci-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Apr 27, 2020
@openshift-ci-robot
Copy link
Contributor

@marun: This pull request references Bugzilla bug 1827050, which is invalid:

  • expected the bug to target the "4.5.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

Bug 1827050: Update to use revised ApplyDeployment

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.

@marun
Copy link
Contributor Author

marun commented Apr 27, 2020

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Apr 27, 2020
@openshift-ci-robot
Copy link
Contributor

@marun: This pull request references Bugzilla bug 1827050, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
Details

In response to this:

/bugzilla refresh

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.

@mfojtik
Copy link
Contributor

mfojtik commented Apr 27, 2020

/hold

I will update tomorrow morning.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 27, 2020
@openshift-ci-robot
Copy link
Contributor

@marun: PR needs rebase.

Details

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.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 28, 2020
@marun
Copy link
Contributor Author

marun commented Apr 28, 2020

Committed with #282

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. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants