Package step.plugins.k8s
Class KubernetesServices
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.plugins.k8s.KubernetesServices
-
@Singleton @Path("kubernetes") public class KubernetesServices extends step.core.deployment.AbstractServices
-
-
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)
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classstep.core.deployment.AbstractServices
- 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
-
-