How to find all HelmRelease in my cluster using java?

7/14/2020

After searching many of the articles, not found any answer to my problem. Hence, posting this question. I am using java spring boot. In my spring-boot application, I need to find all HelmRelease in my spring boot application. The below command, I want to execute in java and want to see the labels. Is there any SDK or java library available?

Example in kubernates - kubectl get helmreleases --show-labels

Any suggestion or help is welcome.

Thanks

-- JDGuide
kubernetes
kubernetes-helm

1 Answer

7/14/2020

Java-Operator-SDK

This is what you are looking for:

https://github.com/ContainerSolutions/java-operator-sdk

Operator-SDK

<dependency>
 <groupId>com.github.containersolutions</groupId>
 <artifactId>spring-boot-operator-framework-starter</artifactId>
 <version>{see https://search.maven.org/search?q=a:spring-boot-operator-framework-starter for latest version}</version>
</dependency>

so on and so forth!

-- Abdennour TOUMI
Source: StackOverflow