Package step.plugins.k8s
Class KubernetesServices
- java.lang.Object
-
- step.framework.server.AbstractServices<step.core.access.User>
-
- step.core.deployment.AbstractStepServices
-
- step.plugins.k8s.KubernetesServices
-
@Singleton @Path("kubernetes") public class KubernetesServices extends step.core.deployment.AbstractStepServices
-
-
Constructor Summary
Constructors Constructor Description KubernetesServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AgentPool>
getAgentPools()
void
init()
void
setTarget(AgentPool agentPoolSetting)
-
Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classstep.core.deployment.AbstractStepServices
- Throws:
java.lang.Exception
-
getAgentPools
@GET @Path("/pool/agent") @Produces("application/json") public java.util.List<AgentPool> getAgentPools() throws java.io.IOException, java.net.URISyntaxException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.net.URISyntaxException
java.lang.InterruptedException
-
setTarget
@POST @Path("/agent/update") @Consumes("application/json") @Produces("application/json") public void setTarget(AgentPool agentPoolSetting) throws java.net.URISyntaxException, java.io.IOException, java.lang.InterruptedException
- Throws:
java.net.URISyntaxException
java.io.IOException
java.lang.InterruptedException
-
-