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

fix(operatorgroup): No targetNamespaces matched namespace selector #851

Merged
merged 1 commit into from
May 15, 2019

Conversation

dinhxuanvu
Copy link
Member

@dinhxuanvu dinhxuanvu commented May 8, 2019

If no namespaces are matched selector in operatorgroup, CSV should have a failure
status to indicate OperatorGroup NoTargetNamspaces. Also, a warning message for
no-matched namespaces is added for visibility.

Signed-off-by: Vu Dinh [email protected]

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 8, 2019
@dinhxuanvu dinhxuanvu force-pushed the op-ns branch 6 times, most recently from 693871f to 4c1f449 Compare May 9, 2019 08:13
@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 9, 2019
@dinhxuanvu
Copy link
Member Author

/retest

Copy link
Member

@ecordell ecordell left a comment

Choose a reason for hiding this comment

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

One question about how we want to do this but otherwise looks good.

And we need at least a unit test for this :)

pkg/controller/operators/olm/operator.go Show resolved Hide resolved
@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 9, 2019
@dinhxuanvu dinhxuanvu changed the title fix(operatorgroup): Add new CSV failure due to operatorgroup incorrect fix(operatorgroup): No targetNamespaces matched namespace selector May 9, 2019
@dinhxuanvu
Copy link
Member Author

/test unit

@dinhxuanvu
Copy link
Member Author

/retest

@ecordell
Copy link
Member

ecordell commented May 9, 2019

/hold

holding until master is open for 4.2 😢

@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 May 9, 2019
@dinhxuanvu
Copy link
Member Author

/retest

@ecordell
Copy link
Member

/hold cancel

@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 May 13, 2019
@ecordell
Copy link
Member

@dinhxuanvu can you find an appropriate test to add a case for this state? otherwise it LGTM :)

@openshift-ci-robot openshift-ci-robot removed the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 14, 2019
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 14, 2019
If no namespaces are matched selector in operatorgroup, CSV should have a failure
status to indicate OperatorGroup NoTargetNamspaces. Also, a warning message for
no-matched namespaces is added for visibility.

Signed-off-by: Vu Dinh <[email protected]>
@dinhxuanvu
Copy link
Member Author

@ecordell Unit test case is added. Ready for final review.

@dinhxuanvu
Copy link
Member Author

/retest

1 similar comment
@dinhxuanvu
Copy link
Member Author

/retest

Copy link
Member

@ecordell ecordell left a comment

Choose a reason for hiding this comment

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

/lgtm

Looks great!

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 15, 2019
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dinhxuanvu, 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 May 15, 2019
@openshift-merge-robot openshift-merge-robot merged commit 3b9d943 into operator-framework:master May 15, 2019
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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants