How to get ReplicaSetList from fabric8 client

5 views
Skip to first unread message

Kasun de Silva

unread,
Oct 5, 2016, 5:53:39 AM10/5/16
to fabric8
Following is the code i use to get the rc list. But same pattern does not allows me to get the rs list,

ReplicationControllerList rcList = kubernetesClient.inNamespace(getNameSpace(applicationContext).getMetadata().getName()).replicationControllers().withLabels(selector).list();


Can you guys provide me an example?

Thanks,
kasun

Jimmi Dyson

unread,
Oct 5, 2016, 6:03:09 AM10/5/16
to Kasun de Silva, fabric8
ReplicaSet is part of the Kubernetes extensions API group (http://kubernetes.io/docs/api-reference/extensions/v1beta1/operations/) so you need to use something like:

ReplicaSetList rsList = kubernetesClient.extensions().replicaSets().inNamespace(getNameSpace(applicationContext).getMetadata().getName()).withLabels(selector).list();

Thanks,
Jimmi

--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kasun de Silva

unread,
Oct 5, 2016, 8:05:07 AM10/5/16
to Jimmi Dyson, fabric8
Thanks a lot!

To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Kasun de Silva
Senior Software Engineer | Cloud TG

WSO2 Inc| Email : kas...@wso2.com | Mobile: +94 77 794 4260

Reply all
Reply to author
Forward
0 new messages