Skip to content

Commit

Permalink
List pod images by app (#148)
Browse files Browse the repository at this point in the history
* List pods images by app label

* Setting correct source_url

* Update list_pod_images_by_app.yaml

* Changing soure_url and renaming flow to sth more specific as suggested

---------

Co-authored-by: Aloke Desai <aloke@warp.dev>
Co-authored-by: elvis kahoro <elvis@warp.dev>
  • Loading branch information
3 people authored Sep 6, 2023
1 parent e7e840a commit be86b6c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions specs/kubernetes/list_pod_images_by_app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: List all Kubernetes pods by app label
command: >
kubectl get pods -l app={{app}} -o jsonpath='{range .items[*]}{"\n"}{range .spec.containers[*]}{.name}{"\t"}{.image}{"\n"}{end}{end}' | sort | uniq
tags:
- kubernetes
description: Lists the images of pods fetched by app label
arguments:
- name: app
description: The value of the app label
default_value: ~
source_url: "https://kubernetes.io/docs/reference/kubectl/jsonpath/"
author: pkaramol
author_url: "https://www.linkedin.com/in/pkaramol/"
shells: []

0 comments on commit be86b6c

Please sign in to comment.