Skip to content

Instantly share code, notes, and snippets.

@jeesmon
Created March 28, 2022 18:24

Revisions

  1. jeesmon created this gist Mar 28, 2022.
    4 changes: 4 additions & 0 deletions kubebuilder-printcolumn.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    ```
    //+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
    //+kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Available\")].status"
    ```