soluble-ai / kubetap

Kubectl plugin to interactively proxy Kubernetes Services with ease
https://soluble-ai.github.io/kubetap/
Apache License 2.0
524 stars 44 forks source link

Add support for Statefulset #25

Open jmgilman opened 10 months ago

jmgilman commented 10 months ago

Feature Description

Add support for tapping Statefulset objects.

Proposed Solution

Extend the search beyond just deployments to include Statefulsets.

Alternative Solutions

I'm not aware of a workaround to this issue.

Additional Context

It appears that this tool doesn't support Statefulset objects. When attempting to tap a service pointing at a statefulset, I get:

Error: error resolving Deployment from Service selectors: the Service selector did not match any Deployments

I'm interpreting the "Deployments" as being literal in the above error.