-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Describe the bug
We are trying to get the list of APIGROUPS using client java but we are not able to achieve it . Earlier we are using fabric8 client java ,with using this we were able to fetch the list of APIGROUPS.
Sample code from fabric8
try (final KubernetesClient client = new DefaultKubernetesClient()) {
APIGroupList list = client.getApiGroups();
String coreVersion = list.getApiVersion();
List<APIGroup> apiGroup = list.getGroups();
Similar functionality we are trying to simulate using kubernetes client java. Please help us to proceed further to get the list of APIGROUPS
Client Version
21.0.1
Kubernetes Version
v1.30.2
Java Version
Java 17
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We are trying to fetch the list of APIGROUPS using client java api
KubeConfig
If applicable, add a KubeConfig file with secrets redacted.
Server (please complete the following information):
- OS: [e.g. Linux]
- Environment [e.g. container]
- Cloud [e.g. Azure]
Additional context
Add any other context about the problem here.