is it possible to Filter deployments pods by labalseselctor

This issue has been created since 2021-06-15.

I am using the following api:

lustNamespaceDeployments. or pods

and I see that I can send labels a filter but how can I filter deeper like : "apps=pod_name"

now I can use only "apps" as labe selector , i would like to search like call the HTTP request directly

is it possible ?
thanks

brendandburns wrote this answer on 2021-06-15

I'm not sure I understand your request.

Is there a kubectl command that is equivalent to the code you are trying to write? If you share that I may be able to point you in the right direction.

johnico wrote this answer on 2021-06-15

@brendandburns hi thanks
yes
if this is my yaml file:

metadata:
  name: label-demo
  labels:
    environment: production
    app: nginx

I can run

kubectl -n="namespace" get deployments -l=app=nginx

so it will return only the matched labels

brendandburns wrote this answer on 2021-06-16

Use 'app=nginx' in as the labelSelector parameter in the call to listNamespacedDeployments

In general, if you want to understand what kubectl is doing, just add --v=10 to the kubectl call and it will print all of the HTTP calls that it is making.

johnico wrote this answer on 2021-06-21

thanks .works

More Details About Repo
Owner Name kubernetes-client
Repo Name javascript
Full Name kubernetes-client/javascript
Language TypeScript
Created Date 2017-04-28
Updated Date 2022-09-24
Star Count 1473
Watcher Count 29
Fork Count 395
Issue Count 38

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
brakes when switching between two large open files 0 2022-08-23 2022-09-11
Add new ports to existing tunnel? 1 2021-08-27 2022-08-09
[Bug] In abyss,Some monster shouldnt spawn before starting challenge after layer 5 0 2022-05-09 2022-09-21
Potential problem with embeddings computing? 0 2022-02-19 2022-08-08
Problem to get players urls 0 2021-12-27 2022-07-15
Android 12/ Android auto update 3 2022-06-05 2022-09-02
Which CarStream version I should download? 2 2022-06-09 2022-09-02
Remove font padding from the game info header's second title 1 2022-06-14 2022-09-14
Update to Freqtrade 2022.8 1 2022-08-31 2022-09-22
Doxygen doesn't allow emphasis of code spans in markdown 2 2021-11-18 2022-09-02
How to use weekends-only in off/on hour filter? 4 2022-03-02 2022-09-26
Generate unique location when Delta table created with no explicit location 0 2022-06-24 2022-08-27
Gradient Checkpointing 0 2020-10-30 2022-09-29
Documentation missing Multipart upload 2 2021-03-03 2022-09-11
GFM Reports 3 2014-04-02 2021-11-30
headless linux throwing an error 0 2022-01-31 2022-09-19
在修改用户组时会出现卡死 mysql爆的情况 17 2022-04-04 2022-09-26
请问使用OneDrive存储,WebDAV连接的话流量要过服务器吗? 4 2022-02-14 2022-09-28
Need to cause `TypeError` message manually inside `slot_new` of `range` 2 2022-07-24 2022-08-31
As a user or developer, I can enable the memory recording of my tasks 2 2022-03-11 2022-09-14
Memory record of tasks is measured from inside the task 0 2022-03-15 2022-08-23
RepositoryVersion repair API is using the wrong serializer 0 2022-03-11 2022-08-23
Migration of encrypted fields between 3.14 and 3.16 is broken for some remotes 17 2022-03-11 2022-09-15
Make the batch size configurable 4 2022-03-11 2022-08-23
Occasional `Connection reset by peer` by content app 1 2022-03-15 2022-08-03
Selecting a .tscn entry in filesystem and clicking a node (in Scene) does not switch from editor to 2D view. 2 2022-08-07 2022-08-02
wrk2 vs wrk Lua difference 0 2021-06-23 2022-09-26
Skip using ErrorHandlerMiddleware in cli mode 3 2022-09-23 2022-09-28
Mission Control Default Settings display undefined values 23 2021-06-04 2022-09-07
DigitalOcean: Constant updates when TTL annotation is used on ingress 1 2022-05-12 2022-08-18
How to use plugins as a class member 2 2022-05-05 2022-07-26
Cannot start offboard plugin from the RC switch (instead of calling offboard->start()) 6 2022-04-28 2022-07-15
Error when calling confirmPayment: "You must provide cardDetails, token or paymentMethodId" 1 2021-11-10 2022-09-15
How to generate adapters for classes in separate files. 1 2022-08-08 2022-09-19
Is it necessary to use openBox and future to use hive? 0 2022-08-10 2022-09-19
Support of URI instead of string path (usage with Storage Access Framework) 0 2022-07-31 2022-09-19
Error: export '_isTestEnvironment' (./node_modules/@angular/material/fesm2015/core.js:150:26-44) 1 2021-10-05 2022-09-26
Chat Bot integration? 0 2022-07-14 2022-09-19
Add scoop or winget installation options 1 2022-07-16 2022-09-19
Verdi (FSDB) support for ChipYard? 1 2022-01-03 2022-08-23
Scroll Bar using WinAppDriver 2 2022-06-29 2022-09-19
building issue mvn install 3 2018-07-02 2022-08-27
Dependency Dashboard 0 2020-02-20 2022-08-29
Livro: FATAL error in WP-Admin 4 2022-03-18 2022-08-12
Livro: Newsreader font is no longer loaded 4 2022-03-18 2022-07-21
运行2.1.7版本的sample工程时提示“The resource [/] is not found” 1 2021-02-19 2022-09-14
build error 2 2021-09-18 2022-01-17
QueryBuilder ignores microseconds when processing DateTime arguments 7 2022-09-16 2022-09-15
The log is so big 1 2019-04-01 2022-01-16
[Bug]: apps.plugin creates "System Processes State" chart with Linux-specific states on FreeBSD 0 2022-03-17 2022-09-14