-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Add apigroup to the data source of pvc description #82464
Add apigroup to the data source of pvc description #82464
Conversation
2a0ef5e
to
9cedf5d
Compare
@@ -1549,6 +1549,9 @@ func describePersistentVolumeClaim(pvc *corev1.PersistentVolumeClaim, events *co | |||
} | |||
if pvc.Spec.DataSource != nil { | |||
w.Write(LEVEL_0, "DataSource:\n") | |||
if pvc.Spec.DataSource.APIGroup != nil { | |||
w.Write(LEVEL_1, "APIGroup:\t%v\n", *pvc.Spec.DataSource.APIGroup) | |||
} | |||
w.Write(LEVEL_1, "Name:\t%v\n", pvc.Spec.DataSource.Name) | |||
w.Write(LEVEL_1, "Kind:\t%v\n", pvc.Spec.DataSource.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.
Should we put Name after 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.
That's better, thanks!
done
9cedf5d
to
a88812f
Compare
/retest |
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
/approve
/priority important-longterm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cwdsuzhou, soltysh 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 |
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 cancel
One comment about ordering
@@ -1551,6 +1551,9 @@ func describePersistentVolumeClaim(pvc *corev1.PersistentVolumeClaim, events *co | |||
w.Write(LEVEL_0, "DataSource:\n") | |||
w.Write(LEVEL_1, "Name:\t%v\n", pvc.Spec.DataSource.Name) | |||
w.Write(LEVEL_1, "Kind:\t%v\n", pvc.Spec.DataSource.Kind) | |||
if pvc.Spec.DataSource.APIGroup != nil { |
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.
Should the order be large->small, or small->large? ie
- apigroup, kind, name
- name, kind, apigroup
It looks like other places do the first, so we should try to be consistent.
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'd expect group, kind, name
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'd expect group, kind, name
I also expect this. wdyt? @msau42
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.
sgtm
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.
done
a88812f
to
9157df4
Compare
/lgtm |
/retest Review the full test history for this PR. Silence the bot with an |
…o_datasource Add apigroup to the data source of pvc description Kubernetes-commit: bd62a85
What type of PR is this?
/kind feature
/kind bug
What this PR does / why we need it:
We missed it in #76463
Which issue(s) this PR fixes:
Fixes #82463
Special notes for your reviewer:
/cc @msau42
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: