Skip to content

Conversation

@eranco74
Copy link
Contributor

@eranco74 eranco74 commented May 20, 2025

This PR introduces the ability to filter Kubernetes resources by label using a labelSelector parameter for the following tools:

  • pods_list
  • pods_list_in_namespace
  • resources_list

This enhancement allows users to retrieve a more specific set of resources based on their labels, improving the flexibility and utility of these tools.

The labelSelector parameter accepts standard Kubernetes label selector syntax, such as app=myapp,env=prod or app in (myapp,yourapp).

Resolves: #54

This PR introduces the ability to filter Kubernetes resources by label using a labelSelector parameter for the following tools:

 * pods_list
 * pods_list_in_namespace
 * resources_list

This enhancement allows users to retrieve a more specific set of resources based on their labels, improving the flexibility and utility of these tools.

The labelSelector parameter accepts standard Kubernetes label selector syntax, such as app=myapp,env=prod or app in (myapp,yourapp).

Signed-off-by: Eran Cohen <[email protected]>
@manusa manusa added this to the 0.1.0 milestone May 20, 2025 — with automated-tasks
@manusa
Copy link
Member

manusa commented May 20, 2025

Tested in Goose CLI with gemini-2.0-flash

Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx!

@manusa manusa merged commit 2994699 into containers:main May 20, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tool support for querying pods, namespaces, etc by label selector(s)

2 participants