-
Notifications
You must be signed in to change notification settings - Fork 511
Adding volumes page to tenants #1019
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
149f5fd to
67c4c3f
Compare
| width: 120, | ||
| }, | ||
| { | ||
| label: "Tenant", |
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 column is redundant, please remove it
swagger-operator.yml
Outdated
| tags: | ||
| - OperatorAPI | ||
|
|
||
| /namespaces/{namespace}/tenants/{tenant}/list-pvcs: |
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.
the verb GET implies listing, and this endpoint is about the pvc resource, can you rename it to /namespaces/{namespace}/tenants/{tenant}/pvcs
operatorapi/operator_volumes.go
Outdated
| } | ||
|
|
||
| // List all PVCs | ||
| listAllPvcs, err2 := clientset.CoreV1().PersistentVolumeClaims("").List(ctx, listOpts) |
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.
you can actually filter by namespace here
| { | ||
| type: "view", | ||
| onClick: (record: any) => { | ||
| history.push( | ||
| `/namespaces/${record.namespace}/tenants/${record.tenant}` | ||
| ); | ||
| }, | ||
| }, |
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 sure if this action is needed as you are in the tenant and it only redirects you to summary page
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.
+1 this action doesn't make sense for this listing, let's remove it
dvaldivia
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.
Make sure you are on prettier 2.3.2
prettier --version
2.3.2
and format your files.
| { | ||
| type: "view", | ||
| onClick: (record: any) => { | ||
| history.push( | ||
| `/namespaces/${record.namespace}/tenants/${record.tenant}` | ||
| ); | ||
| }, | ||
| }, |
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.
+1 this action doesn't make sense for this listing, let's remove it
973f454 to
b0fa0ef
Compare
b0fa0ef to
3834f99
Compare
bexsoft
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.
LGTM

Adds a page showing volumes for a tenant.