Skip to content

Conversation

@jottofar
Copy link
Contributor

This was not originally done in the migration to operator-sdk v0.19.3. In that original migration I choose to continue using the legacy leader election method, which is still supported, and was not sure how to do so while also using SetupWithManager. This PR migrates leader election to the controller-runtime’s leader with lease mechanism as well.

Also added back in a couple of kubebuilder:scaffold markers which shouldn't have been deleted

@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 12, 2020
@jottofar
Copy link
Contributor Author

jottofar commented Nov 12, 2020

Not sure why deployment error is popping up now so will retry:
CreateDeploymentFailed {"Request.Namespace": "openshift-updateservice", "Request.Name": "example", "error": "Deployment.apps \"example\" is invalid:

/test operator-e2e

@jottofar
Copy link
Contributor Author

Works locally but took ~7 minutes for operand deployment to be ready so perhaps it was too slow in coming up in Ci env.

@jottofar
Copy link
Contributor Author

/test operator-e2e

@jottofar
Copy link
Contributor Author

Have an issue to fix causing test failure

/hold

@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 Nov 16, 2020
@wking
Copy link
Member

wking commented Nov 16, 2020

images:

error: build error: failed to pull image: After retrying 2 times, Pull image still failed due to error: while pulling "docker://docker.io/openshift/origin-release:golang-1.13" as "docker.io/openshift/origin-release:golang-1.13"...

We should be pulling that from the CI registry...

wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 16, 2020
The outgoing docker.io image was subject to docker.io rate limiting
[1]:

  error: build error: failed to pull image: After retrying 2 times, Pull image still failed due to error: while pulling "docker://docker.io/openshift/origin-release:golang-1.13" as "docker.io/openshift/origin-release:golang-1.13"...

The new image matches openshift/cluster-version-operator@7cb2662924
(Updating cluster-version-operator builder & base images to be
consistent with ART, 2020-10-07,
openshift/cluster-version-operator#468).  Matching builders with the
CVO reduces our exposure by consolidating around a smaller set of Go
builder images.

[1]: openshift#82 (comment)
wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 16, 2020
The outgoing docker.io image was subject to docker.io rate limiting
[1]:

  error: build error: failed to pull image: After retrying 2 times, Pull image still failed due to error: while pulling "docker://docker.io/openshift/origin-release:golang-1.13" as "docker.io/openshift/origin-release:golang-1.13"...

The new image matches openshift/cluster-version-operator@7cb2662924
(Updating cluster-version-operator builder & base images to be
consistent with ART, 2020-10-07,
openshift/cluster-version-operator#468).  Matching builders with the
CVO reduces our exposure by consolidating around a smaller set of Go
builder images.

I expect that after this lands, openshift/registry will pick it up via
a change like openshift/release@d0fa1c98b9 (Registry-replacer
autocommit, 2020-10-07, openshift/release#12532).

[1]: openshift#82 (comment)
@LalatenduMohanty
Copy link
Member

Needs a rebase as #86 is merged now.

Supported legacy leader.Become method required operator-lib dependency.
Copy link
Member

@LalatenduMohanty LalatenduMohanty left a comment

Choose a reason for hiding this comment

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

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jottofar, LalatenduMohanty

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:
  • OWNERS [LalatenduMohanty,jottofar]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jottofar
Copy link
Contributor Author

/unhold

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 17, 2020
@openshift-merge-robot openshift-merge-robot merged commit 21b58e8 into openshift:master Nov 17, 2020
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants