public class KubernetesClient extends Object implements Kubernetes, KubernetesExtensions, KubernetesGlobalExtensions
KubernetesFactory and the differences between
the core Kubernetes API and the KubernetesExtensionsNAMESPACE_ALL, NAMESPACE_DEFAULT, ROOT_API_PATH, SERVICE_ACCOUNT_TOKEN_FILEOSAPI_ROOT_PATH| Constructor and Description |
|---|
KubernetesClient() |
KubernetesClient(KubernetesFactory factory) |
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) |
void |
createRouteOldAPi(io.fabric8.openshift.api.model.Route entity,
String namespace)
Temporary workaround for 0.4.x of Openshift not having osapi/v1beta3
|
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) |
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) |
String |
deleteTemplate(String name,
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
|
static String |
findDefaultOpenShiftNamespace() |
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() |
io.fabric8.openshift.api.model.ImageStream |
getImageStream(String name,
String namespace) |
io.fabric8.openshift.api.model.ImageStreamList |
getImageStreams(String namespace) |
Kubernetes |
getKubernetes() |
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
|
io.fabric8.openshift.api.model.template.Template |
getTemplate(String name,
String namespace) |
String |
getWriteableAddress() |
protected static <T> T |
handle404ByReturningNull(Callable<T> callable)
A helper method to handle REST APIs which throw a 404 by just returning null
|
String |
instantiateBuild(String name,
io.fabric8.openshift.api.model.BuildRequest request,
String namespace) |
io.fabric8.kubernetes.api.model.Node |
node(String nodeId)
List all endpoints for a service
|
String |
processTemplate(io.fabric8.openshift.api.model.template.Template entity,
String namespace) |
void |
setFactory(KubernetesFactory factory) |
void |
setNamespace(String namespace) |
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
|
String |
updateTemplate(String name,
io.fabric8.openshift.api.model.template.Template entity,
String namespace) |
protected void |
validateNamespace(String namespace,
Object entity)
Validates a namespace is supplied giving a meaningful error if not
|
org.eclipse.jetty.websocket.client.WebSocketClient |
watchBuildConfigs(Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.BuildConfig> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchBuildConfigs(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.BuildConfig> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchBuildConfigs(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.BuildConfig> watcher,
String resourceVersion) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchBuildConfigs(Watcher<io.fabric8.openshift.api.model.BuildConfig> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchBuilds(Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.Build> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchBuilds(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.Build> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchBuilds(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.Build> watcher,
String resourceVersion) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchBuilds(Watcher<io.fabric8.openshift.api.model.Build> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchDeploymentConfigs(Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.DeploymentConfig> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchDeploymentConfigs(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.DeploymentConfig> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchDeploymentConfigs(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.DeploymentConfig> watcher,
String resourceVersion) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchDeploymentConfigs(Watcher<io.fabric8.openshift.api.model.DeploymentConfig> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchEndpoints(Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchEndpoints(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchEndpoints(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher,
String resourceVersion) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchEndpoints(Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchPods(Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.Pod> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchPods(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.Pod> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchPods(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.Pod> watcher,
String resourceVersion) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchPods(Watcher<io.fabric8.kubernetes.api.model.Pod> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchReplicationControllers(Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.ReplicationController> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchReplicationControllers(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.ReplicationController> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchReplicationControllers(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.ReplicationController> watcher,
String resourceVersion) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchReplicationControllers(Watcher<io.fabric8.kubernetes.api.model.ReplicationController> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchRoutes(Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.Route> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchRoutes(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.Route> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchRoutes(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.openshift.api.model.Route> watcher,
String resourceVersion) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchRoutes(Watcher<io.fabric8.openshift.api.model.Route> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchServices(Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.Service> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchServices(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.Service> watcher) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchServices(String namespace,
Map<String,String> labels,
Watcher<io.fabric8.kubernetes.api.model.Service> watcher,
String resourceVersion) |
org.eclipse.jetty.websocket.client.WebSocketClient |
watchServices(Watcher<io.fabric8.kubernetes.api.model.Service> watcher) |
public KubernetesClient()
public KubernetesClient(String url)
public KubernetesClient(KubernetesFactory factory)
public static String defaultNamespace()
public static String findDefaultOpenShiftNamespace()
public String getNamespace()
public void setNamespace(String namespace)
public Kubernetes getKubernetes()
public KubernetesExtensions getKubernetesExtensions()
public KubernetesGlobalExtensions getKubernetesGlobalExtensions()
public KubernetesFactory getFactory()
public void setFactory(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 KubernetesExtensionsExceptionpublic void createRouteOldAPi(io.fabric8.openshift.api.model.Route entity,
String namespace)
entity - namespace - @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="templates") @Consumes(value="application/json") public String processTemplate(io.fabric8.openshift.api.model.template.Template entity, String namespace) throws Exception
processTemplate in interface KubernetesExtensionsException@Path(value="templates") @POST @Consumes(value="application/json") public String createTemplate(io.fabric8.openshift.api.model.template.Template entity, String namespace) throws Exception
createTemplate in interface KubernetesExtensionsException@GET
@Path(value="templates/{name}")
@Produces(value="application/json")
public io.fabric8.openshift.api.model.template.Template getTemplate(@NotNull
String name,
String namespace)
getTemplate in interface KubernetesExtensions@PUT
@Path(value="templates/{name}")
@Consumes(value="application/json")
public String updateTemplate(@NotNull
String name,
io.fabric8.openshift.api.model.template.Template entity,
String namespace)
throws Exception
updateTemplate in interface KubernetesExtensionsException@DELETE
@Path(value="templates/{name}")
@Produces(value="application/json")
@Consumes(value="text/plain")
public String deleteTemplate(@NotNull
String name,
String namespace)
throws Exception
deleteTemplate 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") @Produces(value="application/json") 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="buildconfigs/{name}/webhooks/{secret}/{type}")
public String triggerBuild(@NotNull
String name,
String namespace,
@NotNull
String secret,
@NotNull
String type,
byte[] body)
triggerBuild in interface KubernetesExtensions@POST
@Path(value="buildconfigs/{name}/instantiate")
public String instantiateBuild(@NotNull
String name,
io.fabric8.openshift.api.model.BuildRequest request,
String namespace)
instantiateBuild 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 org.eclipse.jetty.websocket.client.WebSocketClient watchPods(Watcher<io.fabric8.kubernetes.api.model.Pod> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchPods(Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.Pod> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchPods(String namespace, Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.Pod> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchPods(String namespace, Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.Pod> watcher, String resourceVersion) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchServices(Watcher<io.fabric8.kubernetes.api.model.Service> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchServices(Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.Service> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchServices(String namespace, Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.Service> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchServices(String namespace, Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.Service> watcher, String resourceVersion) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchEndpoints(Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchEndpoints(Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchEndpoints(String namespace, Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchEndpoints(String namespace, Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher, String resourceVersion) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchReplicationControllers(Watcher<io.fabric8.kubernetes.api.model.ReplicationController> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchReplicationControllers(Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.ReplicationController> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchReplicationControllers(String namespace, Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.ReplicationController> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchReplicationControllers(String namespace, Map<String,String> labels, Watcher<io.fabric8.kubernetes.api.model.ReplicationController> watcher, String resourceVersion) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchBuilds(Watcher<io.fabric8.openshift.api.model.Build> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchBuilds(Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.Build> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchBuilds(String namespace, Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.Build> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchBuilds(String namespace, Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.Build> watcher, String resourceVersion) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchBuildConfigs(Watcher<io.fabric8.openshift.api.model.BuildConfig> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchBuildConfigs(Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.BuildConfig> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchBuildConfigs(String namespace, Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.BuildConfig> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchBuildConfigs(String namespace, Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.BuildConfig> watcher, String resourceVersion) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchRoutes(Watcher<io.fabric8.openshift.api.model.Route> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchRoutes(Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.Route> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchRoutes(String namespace, Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.Route> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchRoutes(String namespace, Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.Route> watcher, String resourceVersion) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchDeploymentConfigs(Watcher<io.fabric8.openshift.api.model.DeploymentConfig> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchDeploymentConfigs(Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.DeploymentConfig> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchDeploymentConfigs(String namespace, Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.DeploymentConfig> watcher) throws Exception
Exceptionpublic org.eclipse.jetty.websocket.client.WebSocketClient watchDeploymentConfigs(String namespace, Map<String,String> labels, Watcher<io.fabric8.openshift.api.model.DeploymentConfig> watcher, String resourceVersion) throws Exception
Exceptionpublic 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 static <T> T handle404ByReturningNull(Callable<T> callable)
protected Collection<io.fabric8.kubernetes.api.model.Pod> getPodList()
Copyright © 2011–2015 Red Hat. All rights reserved.