public interface KubernetesOperations
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<ConfigMap> |
createConfigMap(java.lang.String namespace,
ConfigMap configMap)
Create the specified ConfigMap.
|
org.reactivestreams.Publisher<Pod> |
createPod(java.lang.String namespace,
Pod pod)
Returns the created
Pod in the given namespace. |
org.reactivestreams.Publisher<Secret> |
createSecret(java.lang.String namespace,
Secret secret)
Create the specified Secret.
|
org.reactivestreams.Publisher<ConfigMap> |
deleteConfigMap(java.lang.String namespace,
java.lang.String configMapName)
Delete the specified ConfigMap.
|
org.reactivestreams.Publisher<Pod> |
deletePod(java.lang.String namespace,
java.lang.String podName)
Returns the deleted
Pod in the given namespace. |
org.reactivestreams.Publisher<Secret> |
deleteSecret(java.lang.String namespace,
java.lang.String secretName)
Delete the specified Secret.
|
org.reactivestreams.Publisher<ConfigMap> |
getConfigMap(java.lang.String namespace,
java.lang.String configMapName)
Read the specified ConfigMap.
|
org.reactivestreams.Publisher<Endpoints> |
getEndpoints(java.lang.String namespace,
java.lang.String serviceName)
Read the specified Endpoints.
|
org.reactivestreams.Publisher<Pod> |
getPod(java.lang.String namespace,
java.lang.String podName)
Returns a
Pod of the given name in the given namespace. |
org.reactivestreams.Publisher<Secret> |
getSecret(java.lang.String namespace,
java.lang.String secretName)
Returns a
Secret of the given namespace. |
org.reactivestreams.Publisher<Service> |
getService(java.lang.String namespace,
java.lang.String serviceName)
Read the specified Service.
|
default org.reactivestreams.Publisher<ConfigMapList> |
listConfigMaps(java.lang.String namespace) |
org.reactivestreams.Publisher<ConfigMapList> |
listConfigMaps(java.lang.String namespace,
java.lang.String labelSelector)
List objects of kind ConfigMap.
|
org.reactivestreams.Publisher<EndpointsList> |
listEndpoints(java.lang.String namespace,
java.lang.String labelSelector)
List endpoints in the given namespace.
|
default org.reactivestreams.Publisher<PodList> |
listPods(java.lang.String namespace) |
org.reactivestreams.Publisher<PodList> |
listPods(java.lang.String namespace,
java.lang.String labelSelector)
List pods in the given namespace.
|
default org.reactivestreams.Publisher<SecretList> |
listSecrets(java.lang.String namespace) |
org.reactivestreams.Publisher<SecretList> |
listSecrets(java.lang.String namespace,
java.lang.String labelSelector)
List objects of kind Secret.
|
org.reactivestreams.Publisher<ServiceList> |
listServices(java.lang.String namespace,
java.lang.String labelSelector)
List services in the specified namespace.
|
org.reactivestreams.Publisher<ConfigMap> |
replaceConfigMap(java.lang.String namespace,
java.lang.String configMapName,
ConfigMap configMap)
Replace the specified ConfigMap.
|
org.reactivestreams.Publisher<Secret> |
replaceSecret(java.lang.String namespace,
java.lang.String secretName,
Secret secret)
Replace the specified Secret.
|
org.reactivestreams.Publisher<ConfigMapWatchEvent> |
watchConfigMaps(java.lang.String namespace,
java.lang.Long resourceVersion,
java.lang.String labelSelector)
Watch objects of kind ConfigMap.
|
org.reactivestreams.Publisher<SecretWatchEvent> |
watchSecrets(java.lang.String namespace,
java.lang.Long resourceVersion,
java.lang.String labelSelector)
Watch objects of kind Secret.
|
@Get(value="/namespaces/{namespace}/services?labelSelector={labelSelector}")
org.reactivestreams.Publisher<ServiceList> listServices(java.lang.String namespace,
@Nullable
java.lang.String labelSelector)
namespace - Object name and auth scope, such as for teams and projectslabelSelector - A selector to restrict the list of returned objects by their labels@Get(value="/namespaces/{namespace}/services/{serviceName}")
org.reactivestreams.Publisher<Service> getService(java.lang.String namespace,
java.lang.String serviceName)
namespace - Object name and auth scope, such as for teams and projectsserviceName - The name of the service@Get(value="/namespaces/{namespace}/endpoints?labelSelector={labelSelector}")
org.reactivestreams.Publisher<EndpointsList> listEndpoints(java.lang.String namespace,
@Nullable
java.lang.String labelSelector)
namespace - Object name and auth scope, such as for teams and projectslabelSelector - A selector to restrict the list of returned objects by their labels@Get(value="/namespaces/{namespace}/endpoints/{serviceName}")
org.reactivestreams.Publisher<Endpoints> getEndpoints(java.lang.String namespace,
java.lang.String serviceName)
namespace - object name and auth scope, such as for teams and projectsserviceName - name of the endpoints@Get(value="/namespaces/{namespace}/configmaps?labelSelector={labelSelector}")
org.reactivestreams.Publisher<ConfigMapList> listConfigMaps(java.lang.String namespace,
@Nullable
java.lang.String labelSelector)
namespace - object name and auth scope, such as for teams and projectslabelSelector - A selector to restrict the list of returned objects by their labelsConfigMapListdefault org.reactivestreams.Publisher<ConfigMapList> listConfigMaps(java.lang.String namespace)
namespace - object name and auth scope, such as for teams and projectsConfigMapList of the given namespace@Get(value="/watch/namespaces/{namespace}/configmaps?resourceVersion={resourceVersion}&labelSelector={labelSelector}")
@Consumes(value={"application/x-json-stream","application/json"})
org.reactivestreams.Publisher<ConfigMapWatchEvent> watchConfigMaps(java.lang.String namespace,
java.lang.Long resourceVersion,
@Nullable
java.lang.String labelSelector)
namespace - object name and auth scope, such as for teams and projectsresourceVersion - the resource version to receive events from. If set to 0, Kubernetes will send all eventslabelSelector - A selector to restrict the list of returned objects by their labelsConfigMapList@Get(value="/namespaces/{namespace}/configmaps/{configMapName}")
org.reactivestreams.Publisher<ConfigMap> getConfigMap(java.lang.String namespace,
java.lang.String configMapName)
namespace - object name and auth scope, such as for teams and projectsconfigMapName - name of the ConfigMapConfigMap@Post(value="/namespaces/{namespace}/configmaps")
org.reactivestreams.Publisher<ConfigMap> createConfigMap(java.lang.String namespace,
@Body
ConfigMap configMap)
namespace - object name and auth scope, such as for teams and projectsconfigMap - to createConfigMap@Put(value="/namespaces/{namespace}/configmaps/{configMapName}")
org.reactivestreams.Publisher<ConfigMap> replaceConfigMap(java.lang.String namespace,
java.lang.String configMapName,
@Body
ConfigMap configMap)
namespace - object name and auth scope, such as for teams and projectsconfigMapName - name of the ConfigMapconfigMap - to replaceConfigMap@Delete(value="/namespaces/{namespace}/configmaps/{configMapName}")
org.reactivestreams.Publisher<ConfigMap> deleteConfigMap(java.lang.String namespace,
java.lang.String configMapName)
namespace - object name and auth scope, such as for teams and projectsconfigMapName - name of the ConfigMapConfigMap@Get(value="/namespaces/{namespace}/secrets?labelSelector={labelSelector}")
org.reactivestreams.Publisher<SecretList> listSecrets(java.lang.String namespace,
@Nullable
java.lang.String labelSelector)
namespace - object name and auth scope, such as for teams and projectslabelSelector - A selector to restrict the list of returned objects by their labelsSecretList@Get(value="/watch/namespaces/{namespace}/secrets?resourceVersion={resourceVersion}&labelSelector={labelSelector}")
@Consumes(value={"application/x-json-stream","application/json"})
org.reactivestreams.Publisher<SecretWatchEvent> watchSecrets(java.lang.String namespace,
java.lang.Long resourceVersion,
@Nullable
java.lang.String labelSelector)
namespace - object name and auth scope, such as for teams and projectsresourceVersion - the resource version to receive events from. If set to 0, Kubernetes will send all eventslabelSelector - A selector to restrict the list of returned objects by their labelsConfigMapListdefault org.reactivestreams.Publisher<SecretList> listSecrets(java.lang.String namespace)
namespace - object name and auth scope, such as for teams and projectsSecretList@Get(value="/namespaces/{namespace}/secrets/{secretName}")
org.reactivestreams.Publisher<Secret> getSecret(java.lang.String namespace,
java.lang.String secretName)
Secret of the given namespace.namespace - object name and auth scope, such as for teams and projectssecretName - the secret nameSecret instance@Post(value="/namespaces/{namespace}/secrets/")
org.reactivestreams.Publisher<Secret> createSecret(java.lang.String namespace,
@Body
Secret secret)
namespace - object name and auth scope, such as for teams and projectssecret - the secretSecret instance@Put(value="/namespaces/{namespace}/secrets/{secretName}")
org.reactivestreams.Publisher<Secret> replaceSecret(java.lang.String namespace,
java.lang.String secretName,
@Body
Secret secret)
namespace - object name and auth scope, such as for teams and projectssecretName - the secret namesecret - the secret to replaceSecret instance@Delete(value="/namespaces/{namespace}/secrets/{secretName}")
org.reactivestreams.Publisher<Secret> deleteSecret(java.lang.String namespace,
java.lang.String secretName)
namespace - object name and auth scope, such as for teams and projectssecretName - the secret nameSecret instance@Get(value="/namespaces/{namespace}/pods/{podName}")
org.reactivestreams.Publisher<Pod> getPod(java.lang.String namespace,
java.lang.String podName)
Pod of the given name in the given namespace.namespace - object name and auth scope, such as for teams and projectspodName - the pod namePod instance@Get(value="/namespaces/{namespace}/pods?labelSelector={labelSelector}")
org.reactivestreams.Publisher<PodList> listPods(java.lang.String namespace,
@Nullable
java.lang.String labelSelector)
namespace - Object name and auth scope, such as for teams and projectslabelSelector - A selector to restrict the list of returned objects by their labelsPodList of the given namespacedefault org.reactivestreams.Publisher<PodList> listPods(java.lang.String namespace)
namespace - object name and auth scope, such as for teams and projectsPodList of the given namespace@Post(value="/namespaces/{namespace}/pods")
org.reactivestreams.Publisher<Pod> createPod(java.lang.String namespace,
@Body
Pod pod)
Pod in the given namespace.namespace - object name and auth scope, such as for teams and projectspod - the pod to createPod instance@Delete(value="/namespaces/{namespace}/pods/{podName}")
org.reactivestreams.Publisher<Pod> deletePod(java.lang.String namespace,
java.lang.String podName)
Pod in the given namespace.namespace - object name and auth scope, such as for teams and projectspodName - the pod namePod instance