Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WatchAll is missing for some resources #134

Open
cortex93 opened this issue Mar 30, 2021 · 4 comments
Open

WatchAll is missing for some resources #134

cortex93 opened this issue Mar 30, 2021 · 4 comments

Comments

@cortex93
Copy link

Is it normal that WatchAll is not defined on client for all ressources like Secret ?

@tintoy
Copy link
Owner

tintoy commented Apr 1, 2021

Hi - sorry, work’s been a little crazy. I’ll take a look at this first thing tomorrow morning :)

@tintoy
Copy link
Owner

tintoy commented Apr 3, 2021

Hi.

It's not a deliberate decision, just that nobody has needed it yet. It's pretty easy to add. I'll do so shortly for SecretV1 so you can see what's involved.

@tintoy
Copy link
Owner

tintoy commented Apr 3, 2021

Hi - apologies for the delay; I've added WatchAll for both Secrets and ConfigMaps.

Published new packages (v2.3.16).

BTW, not all resource types support WatchAll, but most do. If you look in src/Swagger/kube-swagger.yml, you'll see all supported actions for a given resource type .

For example, for v1/ConfigMap, look for the following YAML:

x-kubernetes-action: list
x-kubernetes-group-version-kind:
  group: ''
  kind: ConfigMap
  version: v1

For Watch, you want x-kubernetes-action: get, and for WatchAll, you want x-kubernetes-action: list. In both cases, the request must have:

parameters:
  in: query
  name: watch

@cortex93
Copy link
Author

cortex93 commented Apr 3, 2021

Thank you.

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

No branches or pull requests

2 participants