Implement DeploymentAdminService
Implement Java SpringBoot service org.opengroup.osdu.streaming.service.DeploymentAdminService.java
used by StreamingAdminService to perform k8s deployments operations using kubernetes java client:
-
createDeployment method should created the new deployment using the YAML/JSON deployment definition provided as an argument, set replicas to 0 and return -
deleteDeployment method should delete the deployment using deployment id provided as an argument -
startDeployment method should set the replicas of the deployment to 1 (or more), ensure the pods have started and return -
stopDeployment method should set the replicas of the deployment to 0, ensure the pods have stopped and return -
test for every method above