Skip to content

Instantly share code, notes, and snippets.

@navicore
Last active January 24, 2024 17:25
Show Gist options
  • Select an option

  • Save navicore/624d3b6e8ba2a8edd3a5f8664d6dacc5 to your computer and use it in GitHub Desktop.

Select an option

Save navicore/624d3b6e8ba2a8edd3a5f8664d6dacc5 to your computer and use it in GitHub Desktop.

Revisions

  1. navicore revised this gist Jan 24, 2024. No changes.
  2. navicore revised this gist Sep 28, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion jsonpath.md
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,4 @@ get name and image and startTime
    kubectl get pods -Ao jsonpath='{range .items[*]}{@.metadata.name}{" "}{@..spec..containers[*].image}{" "}{@.status.phase}{" "}{@.status.startTime}{"\n"}{end}'
    ```

    edited with `..` and `A` suggestions
    edited 10/2022 with `..` and `A` suggestions
  3. navicore revised this gist Sep 28, 2022. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions jsonpath.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    get name and image and startTime

    ```console
    kubectl get pods -ao jsonpath='{range .items[*]}{@.metadata.name}{" "}{@.spec.containers[*].image}{" "}{@.status.phase}{" "}{@.status.startTime}{"\n"}{end}'| grep track
    ```
    kubectl get pods -Ao jsonpath='{range .items[*]}{@.metadata.name}{" "}{@..spec..containers[*].image}{" "}{@.status.phase}{" "}{@.status.startTime}{"\n"}{end}'
    ```

    edited with `..` and `A` suggestions
  4. navicore revised this gist Sep 15, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions jsonpath.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    get name and image and startTime

    ```console
    kubectl get pods -ao jsonpath='{range .items[*]}{@.metadata.name}{" "}{@.spec.containers[*].image}{" "}{@.status.phase}{" "}{@.status.startTime}{"\n"}{end}'| grep track
    ```
  5. navicore renamed this gist Sep 15, 2017. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion zshTuhceA → jsonpath.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    kubectl get pods -ao jsonpath='{range .items[*]}{@.metadata.name}{" "}{@.spec.containers[*].image}{" "}{@.status.phase}{" "}{@.status.startTime}{"\n"}{end}'| grep track
    ```console
    kubectl get pods -ao jsonpath='{range .items[*]}{@.metadata.name}{" "}{@.spec.containers[*].image}{" "}{@.status.phase}{" "}{@.status.startTime}{"\n"}{end}'| grep track
    ```
  6. navicore created this gist Sep 15, 2017.
    1 change: 1 addition & 0 deletions zshTuhceA
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    kubectl get pods -ao jsonpath='{range .items[*]}{@.metadata.name}{" "}{@.spec.containers[*].image}{" "}{@.status.phase}{" "}{@.status.startTime}{"\n"}{end}'| grep track