Skip to content

Commit be86b6c

Browse files
pkaramolalokedesaielvis kahoro
authored
List pod images by app (#148)
* 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>
1 parent e7e840a commit be86b6c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: List all Kubernetes pods by app label
3+
command: >
4+
kubectl get pods -l app={{app}} -o jsonpath='{range .items[*]}{"\n"}{range .spec.containers[*]}{.name}{"\t"}{.image}{"\n"}{end}{end}' | sort | uniq
5+
tags:
6+
- kubernetes
7+
description: Lists the images of pods fetched by app label
8+
arguments:
9+
- name: app
10+
description: The value of the app label
11+
default_value: ~
12+
source_url: "https://kubernetes.io/docs/reference/kubectl/jsonpath/"
13+
author: pkaramol
14+
author_url: "https://www.linkedin.com/in/pkaramol/"
15+
shells: []

0 commit comments

Comments
 (0)