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 1755699: Removes Add capacity option for other storage operators #2840

Merged
merged 1 commit into from Sep 27, 2019

Conversation

a2batic
Copy link
Contributor

@a2batic a2batic commented Sep 26, 2019

Storage like Potworx shows Add Capacity which is only supported
for OCS, the PR checks for storage type before showing the option
Signed-off-by: Kanika kmurarka@redhat.com

Thanks @umangachapagain for pointers

@openshift-ci-robot
Copy link
Contributor

@a2batic: This pull request references Bugzilla bug 1755699, which is invalid:

  • expected the bug to target the "4.3.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1755699: Removes Add capacity option for other storage

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/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Sep 26, 2019
@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 26, 2019
@openshift-ci-robot
Copy link
Contributor

@a2batic: This pull request references Bugzilla bug 1755699, which is invalid:

  • expected the bug to target the "4.3.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1755699: Removes Add capacity option for other storage

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 component/olm Related to OLM label Sep 26, 2019
@a2batic
Copy link
Contributor Author

a2batic commented Sep 26, 2019

/assign @gnehapk @afreen23 @umangachapagain

@a2batic
Copy link
Contributor Author

a2batic commented Sep 26, 2019

/bugzilla refresh

@openshift-ci-robot
Copy link
Contributor

@a2batic: This pull request references Bugzilla bug 1755699, which is invalid:

  • expected the bug to target the "4.3.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

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.

@umangachapagain
Copy link
Member

This should fix the issue.
lgtm

@gnehapk
Copy link
Contributor

gnehapk commented Sep 26, 2019

/approve

@gnehapk
Copy link
Contributor

gnehapk commented Sep 26, 2019

/test e2e-aws-console-olm

@a2batic a2batic changed the title Bug 1755699: Removes Add capacity option for other storage Bug 1755699: Removes Add capacity option for other storage operators Sep 26, 2019
@a2batic
Copy link
Contributor Author

a2batic commented Sep 26, 2019

/test e2e-aws-console

.filter(
(action) =>
action.properties.kind === selectedObj.kind &&
_.startsWith(selectedObj.apiVersion, 'ocs.openshift.io'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Not in favor of hardcoding things in core components.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ack

@openshift-ci-robot openshift-ci-robot added component/ceph Related to ceph-storage-plugin component/sdk Related to console-plugin-sdk labels Sep 26, 2019
@a2batic
Copy link
Contributor Author

a2batic commented Sep 26, 2019

/assign @rawagner @alecmerdler

@@ -203,6 +203,7 @@ const plugin: Plugin<ConsumedExtensions> = [
properties: {
kind: 'StorageCluster',
label: 'Add Capacity',
apiVersion: 'ocs.openshift.io',
Copy link
Contributor

Choose a reason for hiding this comment

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

Isnt this apiGroup ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ack

@spadgett spadgett added this to the v4.3 milestone Sep 26, 2019
@spadgett
Copy link
Member

/cherrypick release-4.2

@openshift-cherrypick-robot

@spadgett: 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

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.

@spadgett
Copy link
Member

/bugzilla refresh

@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 Sep 26, 2019
@openshift-ci-robot
Copy link
Contributor

@spadgett: This pull request references Bugzilla bug 1755699, 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:

/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.

@openshift-ci-robot openshift-ci-robot removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Sep 26, 2019
@@ -7,6 +7,8 @@ namespace ExtensionProperties {
kind: K8sResourceKindReference;
/** label of action */
label: string;
/** Storage type */
Copy link
Member

Choose a reason for hiding this comment

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

    /** API group of the resource */
    apiGroup: string;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ack

.filter(
(action) =>
action.properties.kind === selectedObj.kind &&
_.startsWith(selectedObj.apiVersion, action.properties.apiVersion),
Copy link
Member

@spadgett spadgett Sep 26, 2019

Choose a reason for hiding this comment

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

Don't use startsWith since it could incorrectly match a substring. Use groupVersionFor

Suggested change
_.startsWith(selectedObj.apiVersion, action.properties.apiVersion),
groupVersionFor(selectedObj).group === action.properties.apiGroup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ack

@spadgett
Copy link
Member

/assign
/unassign @alecmerdler

Storage like Potworx shows `Add Capacity` which is only supported
for OCS, the PR checks for storage type before showing the option
Signed-off-by: Kanika <kmurarka@redhat.com>
@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 Sep 26, 2019
@a2batic
Copy link
Contributor Author

a2batic commented Sep 26, 2019

@spadgett Thanks for the review, addressed review comments, please review.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 26, 2019
Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a2batic, gnehapk, spadgett

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 Sep 26, 2019
@openshift-merge-robot openshift-merge-robot merged commit 4aa5a64 into openshift:master Sep 27, 2019
@openshift-ci-robot
Copy link
Contributor

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

In response to this:

Bug 1755699: Removes Add capacity option for other storage operators

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

@spadgett: #2840 failed to apply on top of branch "release-4.2":

error: Failed to merge in the changes.
Using index info to reconstruct a base tree...
M	frontend/packages/ceph-storage-plugin/src/plugin.ts
A	frontend/packages/operator-lifecycle-manager/src/components/operand.tsx
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): frontend/packages/operator-lifecycle-manager/src/components/operand.tsx deleted in HEAD and modified in Bug 1755699: Removes Add capacity option for other storage operators. Version Bug 1755699: Removes Add capacity option for other storage operators of frontend/packages/operator-lifecycle-manager/src/components/operand.tsx left in tree.
Auto-merging frontend/packages/ceph-storage-plugin/src/plugin.ts
Patch failed at 0001 Bug 1755699: Removes Add capacity option for other storage operators

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.

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. component/ceph Related to ceph-storage-plugin component/olm Related to OLM component/sdk Related to console-plugin-sdk lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet