public class KubernetesClient extends Object implements Kubernetes, KubernetesExtensions, KubernetesGlobalExtensions
KubernetesFactory and the differences between
the core Kubernetes API and the KubernetesExtensionsNAMESPACE_ALL, NAMESPACE_DEFAULT| Constructor and Description |
|---|
KubernetesClient() |
KubernetesClient(KubernetesFactory factory) |
KubernetesClient(KubernetesFactory factoryReadOnly,
KubernetesFactory factoryWriteable) |
KubernetesClient(String url) |
| Modifier and Type | Method and Description |
|---|---|
String |
createBuild(io.fabric8.openshift.api.model.Build entity,
String namespace) |
String |
createBuildConfig(io.fabric8.openshift.api.model.BuildConfig entity,
String namespace) |
String |
createDeploymentConfig(io.fabric8.openshift.api.model.DeploymentConfig entity,
String namespace) |
String |
createImageStream(io.fabric8.openshift.api.model.ImageStream entity,
String namespace) |
String |
createNamespace(io.fabric8.kubernetes.api.model.Namespace entity) |
String |
createOAuthClient(io.fabric8.openshift.api.model.OAuthClient entity) |
String |
createPod(io.fabric8.kubernetes.api.model.Pod entity) |
String |
createPod(io.fabric8.kubernetes.api.model.Pod entity,
String namespace) |
String |
createReplicationController(io.fabric8.kubernetes.api.model.ReplicationController entity) |
String |
createReplicationController(io.fabric8.kubernetes.api.model.ReplicationController entity,
String namespace) |
String |
createRoute(io.fabric8.openshift.api.model.Route entity,
String namespace) |
String |
createSecret(io.fabric8.kubernetes.api.model.Secret entity,
String namespace) |
String |
createService(io.fabric8.kubernetes.api.model.Service entity) |
String |
createService(io.fabric8.kubernetes.api.model.Service entity,
String namespace) |
String |
createTemplate(io.fabric8.openshift.api.model.template.Template entity,
String namespace) |
protected static String |
defaultNamespace() |
String |
deleteBuild(String name,
String namespace) |
String |
deleteBuildConfig(String name,
String namespace) |
String |
deleteDeploymentConfig(String name,
String namespace) |
String |
deleteImageStream(String name,
String namespace) |
String |
deleteNamespace(String name) |
String |
deleteOAuthClient(String name) |
void |
deletePod(io.fabric8.kubernetes.api.model.Pod entity) |
void |
deletePod(io.fabric8.kubernetes.api.model.Pod entity,
String namespace) |
String |
deletePod(String podId) |
String |
deletePod(String podId,
String namespace) |
void |
deleteReplicationController(io.fabric8.kubernetes.api.model.ReplicationController entity) |
void |
deleteReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController,
String namespace) |
String |
deleteReplicationController(String controllerId) |
String |
deleteReplicationController(String controllerId,
String namespace)
Delete a specific controller
|
void |
deleteReplicationControllerAndPods(io.fabric8.kubernetes.api.model.ReplicationController replicationController) |
void |
deleteReplicationControllerAndPods(io.fabric8.kubernetes.api.model.ReplicationController replicationController,
String namespace) |
String |
deleteRoute(String name,
String namespace) |
String |
deleteSecret(String secretId,
String namespace) |
void |
deleteService(io.fabric8.kubernetes.api.model.Service entity) |
void |
deleteService(io.fabric8.kubernetes.api.model.Service entity,
String namespace) |
String |
deleteService(String serviceId) |
String |
deleteService(String serviceId,
String namespace) |
protected String |
doTriggerBuild(String name,
String namespace,
String type,
String secret) |
io.fabric8.kubernetes.api.model.Endpoints |
endpointsForService(String serviceId,
String namespace)
List all endpoints for a service
|
List<io.fabric8.openshift.api.model.Build> |
findBuilds(String buildConfigName,
String namespace)
Returns all the builds for the given buildConfigName and namespace
|
io.fabric8.openshift.api.model.Build |
findLatestBuild(String name,
String namespace) |
io.fabric8.openshift.api.model.Route |
findRoute(String id,
String namespace)
Returns the route for the given id and namespace or null if it could not be found.
|
String |
getAddress() |
io.fabric8.openshift.api.model.Build |
getBuild(String name,
String namespace) |
io.fabric8.openshift.api.model.BuildConfig |
getBuildConfig(String name,
String namespace) |
io.fabric8.openshift.api.model.BuildConfigList |
getBuildConfigs(String namespace) |
io.fabric8.openshift.api.model.BuildList |
getBuilds(String namespace) |
io.fabric8.openshift.api.model.DeploymentConfig |
getDeploymentConfig(String name,
String namespace) |
io.fabric8.openshift.api.model.DeploymentConfigList |
getDeploymentConfigs(String namespace) |
io.fabric8.kubernetes.api.model.EndpointsList |
getEndpoints() |
io.fabric8.kubernetes.api.model.EndpointsList |
getEndpoints(String namespace)
List all service endpoints on this cluster
|
KubernetesFactory |
getFactory(boolean writeable) |
io.fabric8.openshift.api.model.ImageStream |
getImageStream(String name,
String namespace) |
io.fabric8.openshift.api.model.ImageStreamList |
getImageStreams(String namespace) |
Kubernetes |
getKubernetes() |
Kubernetes |
getKubernetes(boolean writeable) |
KubernetesExtensions |
getKubernetesExtensions() |
KubernetesGlobalExtensions |
getKubernetesGlobalExtensions() |
String |
getNamespace() |
io.fabric8.kubernetes.api.model.Namespace |
getNamespace(String name)
Get a specific Namespace
|
io.fabric8.kubernetes.api.model.NamespaceList |
getNamespaces()
List all namespaces on this cluster
|
io.fabric8.kubernetes.api.model.NodeList |
getNodes()
List all the minions on this cluster
|
io.fabric8.openshift.api.model.OAuthClient |
getOAuthClient(String name) |
io.fabric8.kubernetes.api.model.Pod |
getPod(String podId) |
io.fabric8.kubernetes.api.model.Pod |
getPod(String podId,
String namespace)
Get a specific pod
|
protected Collection<io.fabric8.kubernetes.api.model.Pod> |
getPodList() |
io.fabric8.kubernetes.api.model.PodList |
getPods() |
io.fabric8.kubernetes.api.model.PodList |
getPods(String namespace)
List all pods on this cluster
|
List<io.fabric8.kubernetes.api.model.Pod> |
getPodsForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController service) |
List<io.fabric8.kubernetes.api.model.Pod> |
getPodsForReplicationController(String replicationControllerId) |
List<io.fabric8.kubernetes.api.model.Pod> |
getPodsForService(io.fabric8.kubernetes.api.model.Service service) |
List<io.fabric8.kubernetes.api.model.Pod> |
getPodsForService(String serviceId) |
io.fabric8.kubernetes.api.model.ReplicationController |
getReplicationController(String controllerId) |
io.fabric8.kubernetes.api.model.ReplicationController |
getReplicationController(String controllerId,
String namespace)
Get a specific controller
|
io.fabric8.kubernetes.api.model.ReplicationController |
getReplicationControllerForPod(io.fabric8.kubernetes.api.model.Pod pod) |
io.fabric8.kubernetes.api.model.ReplicationController |
getReplicationControllerForPod(String podId) |
io.fabric8.kubernetes.api.model.ReplicationControllerList |
getReplicationControllers() |
io.fabric8.kubernetes.api.model.ReplicationControllerList |
getReplicationControllers(String namespace)
List all replicationControllers on this cluster
|
io.fabric8.openshift.api.model.Route |
getRoute(String name,
String namespace) |
io.fabric8.openshift.api.model.RouteList |
getRoutes(String namespace) |
io.fabric8.kubernetes.api.model.Secret |
getSecret(String secretId,
String namespace)
Get a specific secret
|
io.fabric8.kubernetes.api.model.SecretList |
getSecrets(String namespace)
List all secrets on this cluster
|
io.fabric8.kubernetes.api.model.Service |
getService(String serviceId) |
io.fabric8.kubernetes.api.model.Service |
getService(String serviceId,
String namespace)
Get a specific service
|
io.fabric8.kubernetes.api.model.ServiceList |
getServices() |
io.fabric8.kubernetes.api.model.ServiceList |
getServices(String namespace)
List all services on this cluster
|
String |
getServiceURL(String serviceName,
String namespace,
String serviceProtocol,
boolean serviceExternal)
Returns the URL to access the service; using the environment variables, routes
or service portalIP address
|
String |
getWriteableAddress() |
protected Kubernetes |
getWriteableKubernetes() |
io.fabric8.kubernetes.api.model.Node |
node(String nodeId)
List all endpoints for a service
|
void |
setFactory(KubernetesFactory factory) |
void |
setNamespace(String namespace) |
void |
setWriteableFactory(KubernetesFactory factory) |
String |
triggerBuild(String name,
String namespace) |
String |
triggerBuild(String name,
String namespace,
String secret,
String type,
byte[] body) |
String |
triggerBuildAndGetUuid(String name,
String namespace)
Triggers a build and returns the UID of the newly created build if it can be found within the default time period
|
String |
triggerBuildAndGetUuid(String name,
String namespace,
long maxTimeoutMs)
Triggers a build and returns the UID of the newly created build if it can be found within the given time period
|
String |
updateBuild(String name,
io.fabric8.openshift.api.model.Build entity,
String namespace) |
String |
updateBuildConfig(String name,
io.fabric8.openshift.api.model.BuildConfig entity,
String namespace) |
String |
updateDeploymentConfig(String name,
io.fabric8.openshift.api.model.DeploymentConfig entity,
String namespace) |
String |
updateImageStream(String name,
io.fabric8.openshift.api.model.ImageStream entity,
String namespace) |
String |
updateNamespace(String namespaceId,
io.fabric8.kubernetes.api.model.Namespace entity)
Update a namespace
|
String |
updateOAuthClient(String name,
io.fabric8.openshift.api.model.OAuthClient entity) |
String |
updatePod(String podId,
io.fabric8.kubernetes.api.model.Pod entity) |
String |
updatePod(String podId,
io.fabric8.kubernetes.api.model.Pod entity,
String namespace)
Update a pod
|
String |
updateReplicationController(String controllerId,
io.fabric8.kubernetes.api.model.ReplicationController entity) |
String |
updateReplicationController(String controllerId,
io.fabric8.kubernetes.api.model.ReplicationController entity,
String namespace) |
String |
updateRoute(String name,
io.fabric8.openshift.api.model.Route entity,
String namespace) |
String |
updateSecret(String secretId,
io.fabric8.kubernetes.api.model.Secret entity,
String namespace)
Update a secret
|
String |
updateService(String serviceId,
io.fabric8.kubernetes.api.model.Service entity) |
String |
updateService(String serviceId,
io.fabric8.kubernetes.api.model.Service entity,
String namespace)
Update a service
|
protected void |
validateNamespace(String namespace,
Object entity)
Validates a namespace is supplied giving a meaningful error if not
|
public KubernetesClient()
public KubernetesClient(String url)
public KubernetesClient(KubernetesFactory factory)
public KubernetesClient(KubernetesFactory factoryReadOnly, KubernetesFactory factoryWriteable)
protected static String defaultNamespace()
public String getNamespace()
public void setNamespace(String namespace)
public Kubernetes getKubernetes()
public Kubernetes getKubernetes(boolean writeable)
public KubernetesExtensions getKubernetesExtensions()
public KubernetesGlobalExtensions getKubernetesGlobalExtensions()
public KubernetesFactory getFactory(boolean writeable)
public void setFactory(KubernetesFactory factory)
public void setWriteableFactory(KubernetesFactory factory)
public String getAddress()
public String getWriteableAddress()
@GET @Path(value="namespaces") public io.fabric8.kubernetes.api.model.NamespaceList getNamespaces()
KubernetesgetNamespaces in interface Kubernetespublic String createNamespace(io.fabric8.kubernetes.api.model.Namespace entity) throws Exception
createNamespace in interface KubernetesException@GET
@Path(value="namespaces/{name}")
public io.fabric8.kubernetes.api.model.Namespace getNamespace(@NotNull
String name)
KubernetesgetNamespace in interface Kubernetes@PUT
@Path(value="namespaces/{name}")
@Consumes(value="application/json")
public String updateNamespace(@NotNull
String namespaceId,
io.fabric8.kubernetes.api.model.Namespace entity)
throws Exception
KubernetesupdateNamespace in interface KubernetesException@DELETE
@Path(value="namespaces/{name}")
@Consumes(value="text/plain")
public String deleteNamespace(@NotNull
String name)
throws Exception
deleteNamespace in interface KubernetesException@GET @Path(value="pods") public io.fabric8.kubernetes.api.model.PodList getPods()
public io.fabric8.kubernetes.api.model.PodList getPods(@QueryParam(value="namespace")
String namespace)
KubernetesgetPods in interface Kubernetes@DELETE
@Path(value="pods/{podId}")
public String deletePod(@NotNull
String podId)
throws Exception
Exception@DELETE
@Path(value="pods/{podId}")
@Consumes(value="text/plain")
public String deletePod(@NotNull
String podId,
String namespace)
throws Exception
deletePod in interface KubernetesException@GET
@Path(value="replicationControllers/{controllerId}")
@Produces(value="application/json")
public io.fabric8.kubernetes.api.model.ReplicationController getReplicationController(@NotNull
String controllerId)
public io.fabric8.kubernetes.api.model.ReplicationController getReplicationController(@PathParam(value="controllerId")@NotNull
String controllerId,
@QueryParam(value="namespace")
String namespace)
KubernetesgetReplicationController in interface Kubernetes@DELETE
@Path(value="replicationControllers/{controllerId}")
@Produces(value="application/json")
public String deleteReplicationController(@NotNull
String controllerId)
throws Exception
Exception@DELETE
@Path(value="replicationControllers/{controllerId}")
@Produces(value="application/json")
@Consumes(value="text/plain")
public String deleteReplicationController(@NotNull
String controllerId,
String namespace)
throws Exception
KubernetesdeleteReplicationController in interface KubernetesException@DELETE
@Path(value="services/{serviceId}")
@Produces(value="application/json")
@Consumes(value="text/plain")
public String deleteService(@NotNull
String serviceId,
String namespace)
throws Exception
deleteService in interface KubernetesException@Path(value="replicationControllers") @GET @Produces(value="application/json") public io.fabric8.kubernetes.api.model.ReplicationControllerList getReplicationControllers()
public io.fabric8.kubernetes.api.model.ReplicationControllerList getReplicationControllers(@QueryParam(value="namespace")
String namespace)
KubernetesgetReplicationControllers in interface Kubernetes@PUT
@Path(value="replicationControllers/{controllerId}")
@Consumes(value="application/json")
public String updateReplicationController(@NotNull
String controllerId,
io.fabric8.kubernetes.api.model.ReplicationController entity)
throws Exception
Exception@PUT
@Path(value="replicationControllers/{controllerId}")
@Consumes(value="application/json")
public String updateReplicationController(@NotNull
String controllerId,
io.fabric8.kubernetes.api.model.ReplicationController entity,
String namespace)
throws Exception
updateReplicationController in interface KubernetesException@PUT
@Path(value="services/{serviceId}")
@Consumes(value="application/json")
public String updateService(@NotNull
String serviceId,
io.fabric8.kubernetes.api.model.Service entity)
throws Exception
Exceptionpublic String updateService(@PathParam(value="serviceId")@NotNull String serviceId, io.fabric8.kubernetes.api.model.Service entity, @QueryParam(value="namespace") String namespace) throws Exception
KubernetesupdateService in interface KubernetesException@GET
@Path(value="services/{serviceId}")
@Produces(value="application/json")
public io.fabric8.kubernetes.api.model.Service getService(@NotNull
String serviceId)
public io.fabric8.kubernetes.api.model.Service getService(@PathParam(value="serviceId")@NotNull
String serviceId,
@QueryParam(value="namespace")
String namespace)
KubernetesgetService in interface Kubernetes@DELETE
@Path(value="services/{serviceId}")
@Produces(value="application/json")
public String deleteService(@NotNull
String serviceId)
throws Exception
Exception@GET
@Path(value="pods/{podId}")
public io.fabric8.kubernetes.api.model.Pod getPod(@NotNull
String podId)
public io.fabric8.kubernetes.api.model.Pod getPod(@PathParam(value="podId")@NotNull
String podId,
@QueryParam(value="namespace")
String namespace)
KubernetesgetPod in interface Kubernetes@PUT
@Path(value="pods/{podId}")
@Consumes(value="application/json")
public String updatePod(@NotNull
String podId,
io.fabric8.kubernetes.api.model.Pod entity)
throws Exception
Exceptionpublic String updatePod(@PathParam(value="podId")@NotNull String podId, io.fabric8.kubernetes.api.model.Pod entity, @QueryParam(value="namespace") String namespace) throws Exception
KubernetesupdatePod in interface KubernetesException@Path(value="services") @GET @Produces(value="application/json") public io.fabric8.kubernetes.api.model.ServiceList getServices()
public io.fabric8.kubernetes.api.model.ServiceList getServices(@QueryParam(value="namespace")
String namespace)
KubernetesgetServices in interface Kubernetes@POST @Path(value="pods") @Consumes(value="application/json") public String createPod(io.fabric8.kubernetes.api.model.Pod entity) throws Exception
Exception@POST @Path(value="pods") @Consumes(value="application/json") public String createPod(io.fabric8.kubernetes.api.model.Pod entity, String namespace) throws Exception
createPod in interface KubernetesException@Path(value="services") @POST @Consumes(value="application/json") public String createService(io.fabric8.kubernetes.api.model.Service entity) throws Exception
Exception@Path(value="services") @POST @Consumes(value="application/json") public String createService(io.fabric8.kubernetes.api.model.Service entity, String namespace) throws Exception
createService in interface KubernetesException@Path(value="replicationControllers") @POST @Consumes(value="application/json") public String createReplicationController(io.fabric8.kubernetes.api.model.ReplicationController entity) throws Exception
Exception@Path(value="replicationControllers") @POST @Consumes(value="application/json") public String createReplicationController(io.fabric8.kubernetes.api.model.ReplicationController entity, String namespace) throws Exception
createReplicationController in interface KubernetesException@GET @Path(value="endpoints") public io.fabric8.kubernetes.api.model.EndpointsList getEndpoints()
@GET @Path(value="endpoints") public io.fabric8.kubernetes.api.model.EndpointsList getEndpoints(String namespace)
KubernetesgetEndpoints in interface Kubernetes@GET
@Path(value="endpoints/{serviceId}")
public io.fabric8.kubernetes.api.model.Endpoints endpointsForService(@NotNull
String serviceId,
String namespace)
KubernetesendpointsForService in interface Kubernetes@Path(value="namespaces/{namespace}/secrets")
@POST
@Consumes(value="application/json")
public String createSecret(io.fabric8.kubernetes.api.model.Secret entity,
String namespace)
throws Exception
createSecret in interface KubernetesException@DELETE
@Path(value="namespaces/{namespace}/secrets/{secretId}")
@Produces(value="application/json")
@Consumes(value="text/plain")
public String deleteSecret(@NotNull
String secretId,
String namespace)
throws Exception
deleteSecret in interface KubernetesException@GET
@Path(value="namespaces/{namespace}/secrets/{secretId}")
@Produces(value="application/json")
public io.fabric8.kubernetes.api.model.Secret getSecret(@NotNull
String secretId,
String namespace)
KubernetesgetSecret in interface Kubernetes@Path(value="namespaces/{namespace}/secrets")
@GET
@Produces(value="application/json")
public io.fabric8.kubernetes.api.model.SecretList getSecrets(String namespace)
KubernetesgetSecrets in interface Kubernetes@PUT
@Path(value="namespaces/{namespace}/secrets/{secretId}")
@Consumes(value="application/json")
public String updateSecret(@NotNull
String secretId,
io.fabric8.kubernetes.api.model.Secret entity,
String namespace)
throws Exception
KubernetesupdateSecret in interface KubernetesException@GET @Path(value="nodes") public io.fabric8.kubernetes.api.model.NodeList getNodes()
KubernetesgetNodes in interface Kubernetes@GET
@Path(value="nodes/{nodeId}")
public io.fabric8.kubernetes.api.model.Node node(@NotNull
String nodeId)
Kubernetesnode in interface Kubernetes@POST @Path(value="oauthclients") @Consumes(value="application/json") public String createOAuthClient(io.fabric8.openshift.api.model.OAuthClient entity) throws Exception
createOAuthClient in interface KubernetesGlobalExtensionsException@DELETE
@Path(value="oauthclients/{name}")
public String deleteOAuthClient(@NotNull
String name)
deleteOAuthClient in interface KubernetesGlobalExtensions@GET
@Path(value="oauthclients/{name}")
public io.fabric8.openshift.api.model.OAuthClient getOAuthClient(@NotNull
String name)
getOAuthClient in interface KubernetesGlobalExtensions@PUT
@Path(value="oauthclients/{name}")
@Consumes(value="application/json")
public String updateOAuthClient(@NotNull
String name,
io.fabric8.openshift.api.model.OAuthClient entity)
throws Exception
updateOAuthClient in interface KubernetesGlobalExtensionsException@POST @Path(value="routes") public String createRoute(io.fabric8.openshift.api.model.Route entity, String namespace) throws Exception
createRoute in interface KubernetesExtensionsException@POST @Path(value="deploymentConfigs") public String createDeploymentConfig(io.fabric8.openshift.api.model.DeploymentConfig entity, String namespace) throws Exception
createDeploymentConfig in interface KubernetesExtensionsException@POST @Path(value="templateConfigs") @Consumes(value="application/json") public String createTemplate(io.fabric8.openshift.api.model.template.Template entity, String namespace) throws Exception
createTemplate in interface KubernetesExtensionsException@DELETE
@Path(value="buildConfigs/{name}")
public String deleteBuildConfig(@NotNull
String name,
String namespace)
deleteBuildConfig in interface KubernetesExtensions@DELETE
@Path(value="deploymentConfigs/{name}")
public String deleteDeploymentConfig(@NotNull
String name,
String namespace)
deleteDeploymentConfig in interface KubernetesExtensions@GET
@Path(value="routes")
public io.fabric8.openshift.api.model.RouteList getRoutes(@QueryParam(value="namespace")
String namespace)
getRoutes in interface KubernetesExtensions@GET
@Path(value="routes/{name}")
public io.fabric8.openshift.api.model.Route getRoute(@PathParam(value="name")@NotNull
String name,
@QueryParam(value="namespace")
String namespace)
getRoute in interface KubernetesExtensions@PUT
@Path(value="routes/{name}")
@Consumes(value="application/json")
public String updateRoute(@NotNull
String name,
io.fabric8.openshift.api.model.Route entity,
String namespace)
throws Exception
updateRoute in interface KubernetesExtensionsException@DELETE
@Path(value="routes/{name}")
public String deleteRoute(@NotNull
String name,
String namespace)
deleteRoute in interface KubernetesExtensions@POST @Path(value="builds") public String createBuild(io.fabric8.openshift.api.model.Build entity, String namespace) throws Exception
createBuild in interface KubernetesExtensionsException@DELETE
@Path(value="builds/{name}")
public String deleteBuild(@NotNull
String name,
String namespace)
deleteBuild in interface KubernetesExtensions@GET
@Path(value="builds/{name}")
public io.fabric8.openshift.api.model.Build getBuild(@NotNull
String name,
String namespace)
getBuild in interface KubernetesExtensions@GET @Path(value="builds") public io.fabric8.openshift.api.model.BuildList getBuilds(String namespace)
getBuilds in interface KubernetesExtensions@PUT
@Path(value="builds/{name}")
@Consumes(value="application/json")
public String updateBuild(@NotNull
String name,
io.fabric8.openshift.api.model.Build entity,
String namespace)
throws Exception
updateBuild in interface KubernetesExtensionsException@GET
@Path(value="buildConfigs/{name}")
public io.fabric8.openshift.api.model.BuildConfig getBuildConfig(@NotNull
String name,
String namespace)
getBuildConfig in interface KubernetesExtensions@GET @Path(value="buildConfigs") public io.fabric8.openshift.api.model.BuildConfigList getBuildConfigs(String namespace)
getBuildConfigs in interface KubernetesExtensions@GET
@Path(value="deploymentConfigs/{name}")
public io.fabric8.openshift.api.model.DeploymentConfig getDeploymentConfig(@NotNull
String name,
String namespace)
getDeploymentConfig in interface KubernetesExtensions@GET @Path(value="deploymentConfigs") public io.fabric8.openshift.api.model.DeploymentConfigList getDeploymentConfigs(String namespace)
getDeploymentConfigs in interface KubernetesExtensions@PUT
@Path(value="buildConfigs/{name}")
@Consumes(value="application/json")
public String updateBuildConfig(@NotNull
String name,
io.fabric8.openshift.api.model.BuildConfig entity,
String namespace)
throws Exception
updateBuildConfig in interface KubernetesExtensionsException@PUT
@Path(value="deploymentConfigs/{name}")
@Consumes(value="application/json")
public String updateDeploymentConfig(@NotNull
String name,
io.fabric8.openshift.api.model.DeploymentConfig entity,
String namespace)
throws Exception
updateDeploymentConfig in interface KubernetesExtensionsException@POST @Path(value="buildConfigs") public String createBuildConfig(io.fabric8.openshift.api.model.BuildConfig entity, String namespace) throws Exception
createBuildConfig in interface KubernetesExtensionsException@GET
@Path(value="imageStreams/{name}")
public io.fabric8.openshift.api.model.ImageStream getImageStream(@NotNull
String name,
String namespace)
getImageStream in interface KubernetesExtensions@GET @Path(value="imageStreams") public io.fabric8.openshift.api.model.ImageStreamList getImageStreams(String namespace)
getImageStreams in interface KubernetesExtensions@PUT
@Path(value="imageStreams/{name}")
@Consumes(value="application/json")
public String updateImageStream(@NotNull
String name,
io.fabric8.openshift.api.model.ImageStream entity,
String namespace)
throws Exception
updateImageStream in interface KubernetesExtensionsException@DELETE
@Path(value="imageStreams/{name}")
public String deleteImageStream(@NotNull
String name,
String namespace)
deleteImageStream in interface KubernetesExtensions@POST @Path(value="imageStreams") public String createImageStream(io.fabric8.openshift.api.model.ImageStream entity, String namespace) throws Exception
createImageStream in interface KubernetesExtensionsException@POST
@Path(value="buildConfigHooks/{name}/{secret}/{type}")
public String triggerBuild(@NotNull
String name,
String namespace,
@NotNull
String secret,
@NotNull
String type,
byte[] body)
triggerBuild in interface KubernetesExtensionspublic void deletePod(io.fabric8.kubernetes.api.model.Pod entity,
String namespace)
throws Exception
Exceptionpublic void deletePod(io.fabric8.kubernetes.api.model.Pod entity)
throws Exception
Exceptionpublic void deleteService(io.fabric8.kubernetes.api.model.Service entity,
String namespace)
throws Exception
Exceptionpublic void deleteService(io.fabric8.kubernetes.api.model.Service entity)
throws Exception
Exceptionpublic void deleteReplicationControllerAndPods(io.fabric8.kubernetes.api.model.ReplicationController replicationController,
String namespace)
throws Exception
Exceptionpublic void deleteReplicationControllerAndPods(io.fabric8.kubernetes.api.model.ReplicationController replicationController)
throws Exception
Exceptionprotected void validateNamespace(String namespace, Object entity)
public void deleteReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController,
String namespace)
throws Exception
Exceptionpublic void deleteReplicationController(io.fabric8.kubernetes.api.model.ReplicationController entity)
throws Exception
Exceptionpublic io.fabric8.kubernetes.api.model.ReplicationController getReplicationControllerForPod(String podId)
public io.fabric8.kubernetes.api.model.ReplicationController getReplicationControllerForPod(io.fabric8.kubernetes.api.model.Pod pod)
public List<io.fabric8.kubernetes.api.model.Pod> getPodsForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController service)
public List<io.fabric8.kubernetes.api.model.Pod> getPodsForReplicationController(String replicationControllerId)
public List<io.fabric8.kubernetes.api.model.Pod> getPodsForService(io.fabric8.kubernetes.api.model.Service service)
public List<io.fabric8.kubernetes.api.model.Pod> getPodsForService(String serviceId)
public String getServiceURL(String serviceName, String namespace, String serviceProtocol, boolean serviceExternal)
IllegalArgumentException - if the URL cannot be found for the serviceName and namespacepublic io.fabric8.openshift.api.model.Route findRoute(String id, String namespace)
public String triggerBuildAndGetUuid(@NotNull String name, String namespace)
public String triggerBuildAndGetUuid(@NotNull String name, String namespace, long maxTimeoutMs)
public List<io.fabric8.openshift.api.model.Build> findBuilds(String buildConfigName, String namespace)
public io.fabric8.openshift.api.model.Build findLatestBuild(String name, String namespace)
protected String doTriggerBuild(String name, String namespace, String type, String secret)
protected Kubernetes getWriteableKubernetes()
protected Collection<io.fabric8.kubernetes.api.model.Pod> getPodList()
Copyright © 2011–2015 Red Hat. All rights reserved.