-
Notifications
You must be signed in to change notification settings - Fork 65
✨ Add support for kubectl printer columns #1421
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
Unless we add another `.status` field, this is what we can do. Only simple queries starting with `.` can be used. Signed-off-by: Todd Short <[email protected]>
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1421 +/- ##
==========================================
+ Coverage 73.30% 73.45% +0.15%
==========================================
Files 42 42
Lines 3057 3063 +6
==========================================
+ Hits 2241 2250 +9
+ Misses 643 640 -3
Partials 173 173
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
//+kubebuilder:printcolumn:name="Installed Bundle",type=string,JSONPath=`.status.install.bundle.name` | ||
//+kubebuilder:printcolumn:name=Version,type=string,JSONPath=`.status.install.bundle.version` | ||
//+kubebuilder:printcolumn:name="Installed",type=string,JSONPath=`.status.conditions[?(@.type=='Installed')].status` | ||
//+kubebuilder:printcolumn:name="Progressing",type=string,JSONPath=`.status.conditions[?(@.type=='Progressing')].status` |
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.
Add Progressing
condition reason as well?
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.
With that, it can get pretty wide, as it's a non-constrained string. That might be something they need to use the -o yaml
for.
@tmshort Can you give an example of the output/outputs before and after printer columns? |
main:
With this PR:
|
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.
Looks good to me. Thanks for finalising it.
Unless we add another
.status
field, this is what we can do. Only simple queries starting with.
can be used.Alternative to: #1019
Resolves #1018
Description
Reviewer Checklist