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
Conversation
|
@a2batic: This pull request references Bugzilla bug 1755699, which is invalid:
Comment In response to this:
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. |
|
@a2batic: This pull request references Bugzilla bug 1755699, which is invalid:
Comment In response to this:
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. |
|
/assign @gnehapk @afreen23 @umangachapagain |
|
/bugzilla refresh |
|
@a2batic: This pull request references Bugzilla bug 1755699, which is invalid:
Comment In response to this:
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. |
|
This should fix the issue. |
|
/approve |
|
/test e2e-aws-console-olm |
Add capacity option for other storage|
/test e2e-aws-console |
| .filter( | ||
| (action) => | ||
| action.properties.kind === selectedObj.kind && | ||
| _.startsWith(selectedObj.apiVersion, 'ocs.openshift.io'), |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack
|
/assign @rawagner @alecmerdler |
| @@ -203,6 +203,7 @@ const plugin: Plugin<ConsumedExtensions> = [ | |||
| properties: { | |||
| kind: 'StorageCluster', | |||
| label: 'Add Capacity', | |||
| apiVersion: 'ocs.openshift.io', | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isnt this apiGroup ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack
|
/cherrypick release-4.2 |
|
@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:
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. |
|
/bugzilla refresh |
|
@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:
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. |
| @@ -7,6 +7,8 @@ namespace ExtensionProperties { | |||
| kind: K8sResourceKindReference; | |||
| /** label of action */ | |||
| label: string; | |||
| /** Storage type */ | |||
There was a problem hiding this comment.
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;There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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
| _.startsWith(selectedObj.apiVersion, action.properties.apiVersion), | |
| groupVersionFor(selectedObj).group === action.properties.apiGroup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack
|
/assign |
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>
|
@spadgett Thanks for the review, addressed review comments, please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
|
[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 |
|
@a2batic: All pull requests linked via external trackers have merged. Bugzilla bug 1755699 has been moved to the MODIFIED state. In response to this:
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: #2840 failed to apply on top of branch "release-4.2": In response to this:
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. |
Storage like Potworx shows
Add Capacitywhich is only supportedfor OCS, the PR checks for storage type before showing the option
Signed-off-by: Kanika kmurarka@redhat.com
Thanks @umangachapagain for pointers