-
Notifications
You must be signed in to change notification settings - Fork 638
Adds CRUD support for VolumeGroupSnapshot #14886
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
base: main
Are you sure you want to change the base?
Conversation
4d8d84e
to
0dde9ab
Compare
editYaml(), | ||
events(ResourceEventStream), | ||
]; | ||
return <DetailsPage {...props} menuActions={Kebab.factory.common} pages={pages} />; |
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 ActionMenu. Please refer #14878
<TableData {...tableColumnInfo[1]}>{driver}</TableData> | ||
<TableData {...tableColumnInfo[2]}>{deletionPolicy}</TableData> | ||
<TableData {...tableColumnInfo[3]}> | ||
<ResourceKebab |
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 LazyActionMenu
see #14878
"flags": { | ||
"required": [ | ||
"CAN_LIST_VGSC" | ||
] | ||
} |
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.
we don't need flags for other nav-items (VolumeGroupSnapshots & VolumeGroupSnapshotClasses) ??
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.
"A VolumeSnapshotContent is a snapshot taken from a volume in the cluster that has been provisioned by an administrator. It is a resource in the cluster just like a PersistentVolume is a cluster resource."
https://kubernetes.io/docs/concepts/storage/volume-snapshots/
This is actually the representation of Snapshot content in the backend containing the data. Hence it needs to be protected. Other resources are more of a logical representation that don't need to be protected. That is how i understand it
======= | ||
"component": { | ||
"$codeRef": "oauthConfigDetailsPage.default" | ||
} | ||
>>>>>>> 4d8d84e63c (Adds CRUD support for VolumeGroupSnapshot) |
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.
merge conflicts were not properly resolved...
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.
there are multiple such instances in this file...
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.
Sorry about that, something is wrong with the editor. It somehow stopped highlighting the conflicts
{ | ||
"type": "console.navigation/resource-cluster", | ||
"properties": { | ||
"id": "volumegroupsnapshotcontents", |
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.
we don't need perspective
here ??
"id": "volumegroupsnapshotcontents", | |
"id": "volumegroupsnapshotcontents", | |
"perspective": "admin", |
<TableData {...tableColumnInfo[0]}> | ||
<ResourceLink name={name} kind={referenceForModel(VolumeGroupSnapshotClassModel)}> | ||
{isDefaultSnapshotClass(obj) && ( | ||
<span className="small text-muted co-resource-item__help-text">– Default</span> |
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.
<span className="small text-muted co-resource-item__help-text">– Default</span> | |
<span className="small text-muted co-resource-item__help-text">– {t('public~Default')}</span> |
frontend/public/models/index.ts
Outdated
labelPlural: 'VolumeGroupSnapshotContents', | ||
labelPluralKey: 'public~VolumeGroupSnapshotContents', |
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.
labelPlural: 'VolumeGroupSnapshotContents', | |
labelPluralKey: 'public~VolumeGroupSnapshotContents', | |
labelPlural: 'VolumeGroupSnapshotContents', | |
// t('public~VolumeGroupSnapshotContents') | |
labelPluralKey: 'public~VolumeGroupSnapshotContents', |
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.
this is needed for parser...
frontend/public/models/index.ts
Outdated
labelPlural: 'VolumeGroupSnapshotClasses', | ||
labelPluralKey: 'public~VolumeGroupSnapshotClasses', |
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.
labelPlural: 'VolumeGroupSnapshotClasses', | |
labelPluralKey: 'public~VolumeGroupSnapshotClasses', | |
labelPlural: 'VolumeGroupSnapshotClasses', | |
// t('public~VolumeGroupSnapshotClasses') | |
labelPluralKey: 'public~VolumeGroupSnapshotClasses', |
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.
this is needed for parser...
frontend/public/models/index.ts
Outdated
labelPlural: 'VolumeGroupSnapshots', | ||
labelPluralKey: 'public~VolumeGroupSnapshots', |
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.
labelPlural: 'VolumeGroupSnapshots', | |
labelPluralKey: 'public~VolumeGroupSnapshots', | |
labelPlural: 'VolumeGroupSnapshots', | |
// t('public~VolumeGroupSnapshots') | |
labelPluralKey: 'public~VolumeGroupSnapshots', |
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.
this is needed for parser...
51e070c
to
c267a9e
Compare
6e2d762
to
b5f4c54
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bipuladh, vbnrh The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
b5f4c54
to
d59afe4
Compare
...packages/console-app/src/components/volume-group-snapshot/_create-volume-group-snapshot.scss
Show resolved
Hide resolved
...packages/console-app/src/components/volume-group-snapshot/_create-volume-group-snapshot.scss
Show resolved
Hide resolved
...d/packages/console-app/src/components/volume-group-snapshot/create-volume-group-snapshot.tsx
Outdated
Show resolved
Hide resolved
...d/packages/console-app/src/components/volume-group-snapshot/create-volume-group-snapshot.tsx
Outdated
Show resolved
Hide resolved
...d/packages/console-app/src/components/volume-group-snapshot/create-volume-group-snapshot.tsx
Outdated
Show resolved
Hide resolved
...d/packages/console-app/src/components/volume-group-snapshot/create-volume-group-snapshot.tsx
Outdated
Show resolved
Hide resolved
...d/packages/console-app/src/components/volume-group-snapshot/create-volume-group-snapshot.tsx
Outdated
Show resolved
Hide resolved
...d/packages/console-app/src/components/volume-group-snapshot/create-volume-group-snapshot.tsx
Outdated
Show resolved
Hide resolved
...mponents/volume-group-snapshot/label-expression-selector/label-expression-selector-modal.tsx
Outdated
Show resolved
Hide resolved
...mponents/volume-group-snapshot/label-expression-selector/label-expression-selector-modal.tsx
Outdated
Show resolved
Hide resolved
...mponents/volume-group-snapshot/label-expression-selector/label-expression-selector-modal.tsx
Outdated
Show resolved
Hide resolved
...mponents/volume-group-snapshot/label-expression-selector/label-expression-selector-modal.tsx
Outdated
Show resolved
Hide resolved
...mponents/volume-group-snapshot/label-expression-selector/label-expression-selector-modal.tsx
Outdated
Show resolved
Hide resolved
...src/components/volume-group-snapshot/label-expression-selector/label-expression-selector.tsx
Outdated
Show resolved
Hide resolved
...src/components/volume-group-snapshot/label-expression-selector/label-expression-selector.tsx
Outdated
Show resolved
Hide resolved
...src/components/volume-group-snapshot/label-expression-selector/label-expression-selector.tsx
Outdated
Show resolved
Hide resolved
.../src/components/volume-group-snapshot/label-expression-selector/labelExpressionSelector.scss
Outdated
Show resolved
Hide resolved
.../src/components/volume-group-snapshot/label-expression-selector/labelExpressionSelector.scss
Outdated
Show resolved
Hide resolved
.../src/components/volume-group-snapshot/label-expression-selector/labelExpressionSelector.scss
Show resolved
Hide resolved
frontend/packages/console-app/src/components/volume-group-snapshot/pvc-table.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/console-app/src/components/volume-group-snapshot/pvc-table.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/console-app/src/components/volume-group-snapshot/pvc-table.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/console-app/src/components/volume-group-snapshot/pvc-table.tsx
Show resolved
Hide resolved
PR depends upon kubernetes-csi/external-snapshotter#1286 |
@spadgett Please review. Its pending since some time |
Signed-off-by: vbadrina <[email protected]>
Signed-off-by: vbadrina <[email protected]>
Signed-off-by: vbadrina <[email protected]>
d59afe4
to
528d3c8
Compare
@vbnrh: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
This commit adds support for CRUD operations on
VolumeGroupSnapshot, VolumeGroupSnapshotClass, VolumeGroupSnapshotContent
Declares types for the above and adds list, details and creation page for VGS.
Design
https://www.figma.com/design/hOKRxynqZ6EXfOkIy8RaVf/Multi-volume-consistency---Lifecycle-management?node-id=2048-4744&p=f&t=tcU5kHtdNgEzmFFB-0
Epic:
https://issues.redhat.com/browse/RHSTOR-4926