-
Notifications
You must be signed in to change notification settings - Fork 667
Bug 1796551: Create Snapshot for PVC for OCS #3976
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
Conversation
spadgett
left a comment
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.
I haven't reviewed this closely, but the handling of API group and kind are wrong
| }; | ||
| SnapshotTableHeader.displayName = 'SnapshotTableHeader'; | ||
|
|
||
| const kind = 'VolumeSnapshot'; |
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.
kind is wrong here. It should be referenceForModel(VolumeSnapshotModel)
| <ListPage | ||
| {...props} | ||
| canCreate={true} | ||
| kind="VolumeSnapshot" |
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.
Needs refernceForModel(VolumeSnapshotModel)
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.
Or better
| kind="VolumeSnapshot" | |
| kind={kind} |
and call referenceForModel when defining kind
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
frontend/public/models/index.ts
Outdated
| labelPlural: 'Persistent Volume Claims', | ||
| }; | ||
|
|
||
| export const VolumeSnapshotModel: K8sKind = { |
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.
Needs an API group, correct?
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.
Contribute this model from your plugin rather than here
| }; | ||
| SnapshotTableHeader.displayName = 'SnapshotTableHeader'; | ||
|
|
||
| const kind = 'VolumeSnapshot'; |
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.
| const kind = 'VolumeSnapshot'; | |
| const kind = referenceForModel(VolumeSnapshotModel); |
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
| /> | ||
| ); | ||
|
|
||
| export const SnapshotListPage = (props) => { |
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.
Please use VolumeSnapshot in the name throughout
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
| ), | ||
| ) | ||
| .set(referenceForModel(VolumeSnapshotModel), () => | ||
| import('./pvc-snapshot' /* webpackChunkName: "snapshot" */).then( |
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.
| import('./pvc-snapshot' /* webpackChunkName: "snapshot" */).then( | |
| import('./volume-snapshot' /* webpackChunkName: "volume-snapshot" */).then( |
and make sure the folder name matches
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
|
/retest Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest |
Added new extension point for Additonal Page and linked with PVC Signed-off-by: Kanika Murarka<kmurarka@redhat.com> Signed-off-by: Bipul Adhikari<badhikar@redhat.com>
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a2batic, vojtechszocs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retitle Bug 1796551: Create Snapshot for PVC for OCS |
|
@a2batic: This pull request references Bugzilla bug 1796551, which is invalid:
Comment DetailsIn 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 |
|
@a2batic: This pull request references Bugzilla bug 1796551, 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. DetailsIn 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. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
@a2batic: All pull requests linked via external trackers have merged. Bugzilla bug 1796551 has been moved to the MODIFIED state. DetailsIn 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. |
Uh oh!
There was an error while loading. Please reload this page.