Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1753778: Set Version on Operator status even if Removed. #406

Merged
merged 1 commit into from
Nov 6, 2019
Merged

Bug 1753778: Set Version on Operator status even if Removed. #406

merged 1 commit into from
Nov 6, 2019

Conversation

ricardomaraschini
Copy link
Contributor

@ricardomaraschini ricardomaraschini commented Nov 4, 2019

This patch uses the environment variable RELEASE_VERSION to set Operator
version if ManagementState is not "Managed". This is introduced now as we
may, in some situations, bootstrap the Image Registry Operator with Removed
ManagementState.

@ricardomaraschini ricardomaraschini changed the title Set Version on Operator status even if Removed. WIP - Set Version on Operator status even if Removed. Nov 4, 2019
@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 4, 2019
@ricardomaraschini ricardomaraschini changed the title WIP - Set Version on Operator status even if Removed. WIP - Bug 1768357: Set Version on Operator status even if Removed. Nov 4, 2019
@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Nov 4, 2019
@openshift-ci-robot
Copy link
Contributor

@ricardomaraschini: This pull request references Bugzilla bug 1768357, 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.

In response to this:

WIP - Bug 1768357: Set Version on Operator status even if Removed.

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.

@ricardomaraschini
Copy link
Contributor Author

/assign @dmage @adambkaplan

Copy link
Contributor

@adambkaplan adambkaplan left a comment

Choose a reason for hiding this comment

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

@ricardomaraschini also needs a test to verify (unit is fine).

pkg/resource/clusteroperator.go Show resolved Hide resolved
@ricardomaraschini
Copy link
Contributor Author

/test e2e-aws

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 5, 2019
@ricardomaraschini
Copy link
Contributor Author

@adambkaplan I have implemented unit testing for the syncVersions() function.

@ricardomaraschini
Copy link
Contributor Author

/test unit

@ricardomaraschini
Copy link
Contributor Author

/test verify

@ricardomaraschini
Copy link
Contributor Author

/test unit

@ricardomaraschini ricardomaraschini changed the title WIP - Bug 1768357: Set Version on Operator status even if Removed. Bug 1768357: Set Version on Operator status even if Removed. Nov 5, 2019
@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 Nov 5, 2019
pkg/resource/clusteroperator.go Outdated Show resolved Hide resolved
pkg/resource/clusteroperator_test.go Show resolved Hide resolved
pkg/resource/clusteroperator.go Outdated Show resolved Hide resolved
pkg/resource/clusteroperator.go Show resolved Hide resolved
@adambkaplan
Copy link
Contributor

/retitle Bug 1753778,1768357: Set Version on Operator status even if Removed.

@openshift-ci-robot openshift-ci-robot changed the title Bug 1768357: Set Version on Operator status even if Removed. Bug 1753778,1768357: Set Version on Operator status even if Removed. Nov 6, 2019
@openshift-ci-robot openshift-ci-robot removed the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Nov 6, 2019
@openshift-ci-robot
Copy link
Contributor

@ricardomaraschini: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

Bug 1753778,1768357: Set Version on Operator status even if Removed.

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.

@adambkaplan
Copy link
Contributor

/retitle Bug 1753778, 1768357: Set Version on Operator status even if Removed.

@openshift-ci-robot openshift-ci-robot changed the title Bug 1753778,1768357: Set Version on Operator status even if Removed. Bug 1753778, 1768357: Set Version on Operator status even if Removed. Nov 6, 2019
@adambkaplan
Copy link
Contributor

/bugzilla refresh

@openshift-ci-robot
Copy link
Contributor

@adambkaplan: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

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.

@adambkaplan
Copy link
Contributor

/retitle Bug 1753778: Set Version on Operator status even if Removed.

@openshift-ci-robot openshift-ci-robot changed the title Bug 1753778, 1768357: Set Version on Operator status even if Removed. Bug 1753778: Set Version on Operator status even if Removed. Nov 6, 2019
@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Nov 6, 2019
@openshift-ci-robot
Copy link
Contributor

@ricardomaraschini: This pull request references Bugzilla bug 1753778, 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.

In response to this:

Bug 1753778: Set Version on Operator status even if Removed.

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.

This patch uses the environment variable RELEASE_VERSION to set Operator
version if ManagementState is not "Managed". This is introduced now as we
may, in some situations, bootstrap the Image Registry Operator with Removed
ManagementState.
@openshift-ci-robot
Copy link
Contributor

@ricardomaraschini: This pull request references Bugzilla bug 1753778, which is valid.

In response to this:

Bug 1753778: Set Version on Operator status even if Removed.

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.

@ricardomaraschini
Copy link
Contributor Author

ricardomaraschini commented Nov 6, 2019

/cherrypick release-4.2

@openshift-cherrypick-robot

@ricardomaraschini: once the present PR merges, I will cherry-pick it on top of release-4.2 in a new PR and assign it to you.

In response to this:

/cherrypick release-4.2
/cherrypick release-4.1

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.

@ricardomaraschini
Copy link
Contributor Author

/cherrypick release-4.1

@openshift-cherrypick-robot

@ricardomaraschini: once the present PR merges, I will cherry-pick it on top of release-4.1 in a new PR and assign it to you.

In response to this:

/cherrypick release-4.1

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.

@ricardomaraschini
Copy link
Contributor Author

/test e2e-aws-image-registry

@adambkaplan
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 6, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adambkaplan, ricardomaraschini

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

The pull request process is described here

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 Nov 6, 2019
@openshift-merge-robot openshift-merge-robot merged commit 41484af into openshift:master Nov 6, 2019
@openshift-ci-robot
Copy link
Contributor

@ricardomaraschini: All pull requests linked via external trackers have merged. Bugzilla bug 1753778 has been moved to the MODIFIED state.

In response to this:

Bug 1753778: Set Version on Operator status even if Removed.

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-cherrypick-robot

@ricardomaraschini: new pull request created: #408

In response to this:

/cherrypick release-4.2

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-cherrypick-robot

@ricardomaraschini: new pull request created: #409

In response to this:

/cherrypick release-4.1

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.

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/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. 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.

6 participants