godaddy / godaddy/kubernetes-client
watch jobs with a hostname labelselector
- Dominant language
- JavaScript
- Stars
- 963
- Forks
- 189
- PR merge metrics
- No merged PRs in 30d
Description
Writing code like this:
`
const jobStream = client.apis.batch.v1.watch.jobs.getStream({ qs: { labelSelector: 'kubernetes.io/hostname=ip-10-0-22-120.us-west-2.compute.internal'}});
`
Doesn't work. Basically trying to watch all jobs on a host by host basis from a kubernetes daemonset. Tried to manually add a label with the spec.nodeName via the downward api but that doesn't appear to work in the JSON only via the volume api.
Open to ideas!
Thanks!
Contributor guide
Research direction
Start with the client.apis.batch.v1.watch.jobs.getStream entry point and reproduce the labelSelector request shown in the issue. Read the Kubernetes Jobs watch and downward API behavior for hostname labels; done means establishing whether this selector is supported and documenting a confirmed resolution or limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, kubernetes, nodejs
- Domain
- api, infrastructure
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100