java-operator-sdk/sample-operators/leader-election at main · alxsbr2411/java-operator-sdk · GitHub
Skip to content

Latest commit

 

History

History
 
 

leader-election

Folders and files

Leader Election E2E Test

The purpose of this module is to e2e test leader election feature and to demonstrate contract-first CRDs.

The deployment is using directly pods in order to better control some aspects in test. In real life this would be a Deployment.

The custom resource definition (CRD) is defined in YAML in the folder src/main/resources/kubernetes. Upon build, the java-generator-maven-plugin generates the Java code under target/generated-sources/java.