-
Notifications
You must be signed in to change notification settings - Fork 670
Show 'Type' for PVCs in the Mounted Volumes list #1344
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
|
Hi @AyushAmbastha. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
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 don't think we should use the PVC resource icon here since we don't use the S for secret volumes or the CM for config map volumns.
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 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.
Typically we use it for a specific resource instance with a link as well, so we're breaking the pattern.
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.
Which icon do you suggest we use 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.
Honestly, I'm not sure having a different icon for every kind of volume (emptydir, hostPath, secret, config map, PVC, etc.) scales. It would be difficult to find meaningful icons for all of these. We might just leave it off.
If it links to a specific secret, config map, or PVC, it would be nice to have a link to that specific object with the resource icon badge.
|
Hi, I wanted to check on the status of this PR. I think the simple thing to do is to add a |
Hey @spadgett , Do you still feel that the Icon such as the 'PVC' one is not required and that Adding |
|
@spadgett This is how it looks like after using |
|
Volume name isn't always the same as the secret name, so we should display both. The links should be like Make the actual name of the object the link text. This is consistent with other links throughout the console. Thanks! |
b4819a7 to
63c373d
Compare
|
@spadgett Made the changes as requested, Please review. For volume types in which neither the Resource link exists nor the Referring to line - https://github.com/openshift/console/pull/1344/files#diff-9f09cd1fb4d8499069d32d298cb76de7R21 |
frontend/public/module/k8s/pods.ts
Outdated
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.
s/link/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.
This comment is outstanding.
63c373d to
1cc382a
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: AyushAmbastha The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/assign @rhamilto |
b9bc07b to
1c62cc9
Compare
1c62cc9 to
e00c4f3
Compare
|
/assign @rhamilto |
|
@spadgett All changes requested have been taken care of. Please review. |
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.
FYI, it looks like this will conflict with #1891
| const kind = _.get(getVolumeType(value.volume), 'id', ''); | ||
| const loc = getVolumeLocation(value.volume); | ||
| const name = value.name; | ||
| const namespace = pod.metadata.namespace; |
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 want to make sure you're getting the namespace from the original resource, not the pod template. I don't think it's always set here.
| label: 'Projected', | ||
| description: 'A projected volume maps several existing volume sources into the same directory.', | ||
| }, | ||
| persistentVolumeClaim: { |
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.
It's unclear to me why this change is needed. I'm not sure it's right since there are other more specific values for different kinds of PVCs above.
frontend/public/module/k8s/pods.ts
Outdated
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 comment is outstanding.
|
/assign |
|
@anmolsachan - PR1891 adds a kebab menu to the volume table and allows for the |
|
Closing in favor of #2107 /close |
|
@spadgett: Closed this PR. 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. |



Before-
After-
Note: The description I've given for PVCs in the pods.tsx file is -
'A Persistent Volume Claim is a request for a resource i.e A Persistent Volume'