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 1787660: Add CLI flag to set ClusterOperator name. #280

Conversation

benluddy
Copy link
Contributor

If the flag is set to a non-empty string, and config.openshift.io/v1
isn't available, then the operator exits with an error
status. Previously, the absence of configv1 would log a warning and
continue running without ever updating ClusterOperator status. If this
occurred during an OpenShift cluster upgrade, the upgrade would time
out waiting for marketplace to report success via its ClusterOperator.

Outside of an OpenShift cluster, the new flag can be omitted (or set
to the empty string) to disable ClusterOperator status updates
altogether.

@openshift-ci-robot openshift-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 30, 2020
@benluddy benluddy changed the title Add CLI flag to set ClusterOperator name. Bug 1787660: Add CLI flag to set ClusterOperator name. Jan 30, 2020
@openshift-ci-robot
Copy link
Contributor

@benluddy: This pull request references Bugzilla bug 1787660, 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 1787660: Add CLI flag to set ClusterOperator name.

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 bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Jan 30, 2020
If the flag is set to a non-empty string, and config.openshift.io/v1
isn't available, then the operator exits with an error
status. Previously, the absence of configv1 would log a warning and
continue running without ever updating ClusterOperator status. If this
occurred during an OpenShift cluster upgrade, the upgrade would time
out waiting for marketplace to report success via its ClusterOperator.

Outside of an OpenShift cluster, the new flag can be omitted (or set
to the empty string) to disable ClusterOperator status updates
altogether.
@benluddy benluddy force-pushed the optional-cluster-operator-status branch from 974d82c to 581f9b8 Compare January 30, 2020 17:52
@benluddy
Copy link
Contributor Author

/retest

Copy link
Member

@kevinrizza kevinrizza left a comment

Choose a reason for hiding this comment

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

I'm not opposed to removing the /deploy folder in master, but I feel like we should do it in a separate pr when master is open. When we try to cherrypick this pr for a backport we don't necessarily want to include that change since it may still be used there -- it seems unrelated to the rest of the purpose of this pr anyway.

Aside from that and one or two nits, this looks good to me.

@@ -4,7 +4,7 @@ import (
"context"

"github.com/operator-framework/operator-marketplace/pkg/apis/operators/shared"
"github.com/operator-framework/operator-marketplace/pkg/apis/operators/v1"
v1 "github.com/operator-framework/operator-marketplace/pkg/apis/operators/v1"
Copy link
Member

Choose a reason for hiding this comment

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

What's the point of this alias?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is weird. I have an after-save hook to tell gopls to organize imports, but I didn't notice that it had done that.

@ecordell
Copy link
Member

/approve
/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: benluddy, ecordell

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 Jan 31, 2020
@openshift-merge-robot openshift-merge-robot merged commit 3d79e7f into operator-framework:master Jan 31, 2020
@openshift-ci-robot
Copy link
Contributor

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

In response to this:

Bug 1787660: Add CLI flag to set ClusterOperator name.

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.

@benluddy benluddy deleted the optional-cluster-operator-status branch January 31, 2020 15:34
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants