Skip to content

Bug 2034484: Library go bump#107

Merged
openshift-merge-robot merged 5 commits intoopenshift:masterfrom
eggfoobar:library_go_bump
Jan 10, 2022
Merged

Bug 2034484: Library go bump#107
openshift-merge-robot merged 5 commits intoopenshift:masterfrom
eggfoobar:library_go_bump

Conversation

@eggfoobar
Copy link
Copy Markdown
Contributor

Bumping the library-go dependency to latest, this should take advantage of leader election changes for SNO clusters proposed in this library-go PR and performance improvements in this PR.

Changes:

  • updated to latest library-go
  • updated method calls with new signatures
  • removed passing next generation to ApplyValidationWebhookConfiguration
  • updated to use explicit call to bind log flags to cli commandline

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 16, 2021
Comment thread pkg/operator/webhookdeployment/webhook.go
Comment thread cmd/csi-snapshot-controller-operator/main.go Outdated
Comment thread pkg/operator/webhookdeployment/webhook.go
Comment thread pkg/operator/operator.go Outdated
c.updateSyncError(&instanceCopy.Status.OperatorStatus, syncErr)

if _, _, err := v1helpers.UpdateStatus(c.client, func(status *operatorv1.OperatorStatus) error {
if _, _, err := v1helpers.UpdateStatus(context.TODO(), c.client, func(status *operatorv1.OperatorStatus) error {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you plumb through the ctx variable from starter.go: RunOperator()? You could start by changing the signature of the Run() function to Run(ctx context.Context, workers int).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sounds great, modified the code to use context

@eggfoobar eggfoobar changed the title [WIP] Library go bump Library go bump Jan 6, 2022
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 6, 2022
updated library-go to latest

Signed-off-by: ehila <ehila@redhat.com>
updated method scalls with new signatures
removed passing next generation to ApplyValidationWebhookConfiguration
updated to use explicit call to bind log flags to cli commandline

Signed-off-by: ehila <ehila@redhat.com>

upkeep: removed unused code and small clean up

Signed-off-by: ehila <ehila@redhat.com>

fix: pull in latest library-go

pull in to grab fix described here openshift/library-go#1272

Signed-off-by: ehila <ehila@redhat.com>

bump: library-go

updated library-go to latest for fix in pr openshift/library-go#1273

Signed-off-by: ehila <ehila@redhat.com>
updated the operator Run() method to pass context through to the sync function

Signed-off-by: ehila <ehila@redhat.com>
updated to use component-base/cli package to start operator
ran go mod tidy/vendor/verify

Signed-off-by: ehila <ehila@redhat.com>
updated unit test to regenerate hash when test object is modified
ran go mod tidy/vendor/verify

Signed-off-by: ehila <ehila@redhat.com>
@eggfoobar
Copy link
Copy Markdown
Contributor Author

/retest-required

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jan 6, 2022

@eggfoobar: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@eggfoobar eggfoobar changed the title Library go bump Bug 2034484: Library go bump Jan 7, 2022
@openshift-ci openshift-ci Bot added bugzilla/severity-high Referenced Bugzilla bug's severity is high 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. labels Jan 7, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jan 7, 2022

@eggfoobar: This pull request references Bugzilla bug 2034484, which is valid. 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.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (jhou@redhat.com), skipping review request.

Details

In response to this:

Bug 2034484: Library go bump

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.

@eggfoobar
Copy link
Copy Markdown
Contributor Author

/assign @bertinatto

Copy link
Copy Markdown
Member

@bertinatto bertinatto 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 openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jan 10, 2022
Copy link
Copy Markdown
Member

@bertinatto bertinatto left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jan 10, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bertinatto, eggfoobar

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 openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 10, 2022
@openshift-merge-robot openshift-merge-robot merged commit f89336c into openshift:master Jan 10, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jan 10, 2022

@eggfoobar: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Bugzilla bug in order for it to move to the next state. Once unlinked, request a bug refresh with /bugzilla refresh.

Bugzilla bug 2034484 has not been moved to the MODIFIED state.

Details

In response to this:

Bug 2034484: Library go bump

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/severity-high Referenced Bugzilla bug's severity is high 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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants