godaddy / godaddy/kubernetes-client

watch jobs with a hostname labelselector

Open
#374 1 comment 0 reactions 0 assignees View on GitHub
help wanted question request for example
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.