public interface KubernetesOperations
Modifier and Type | Method and Description |
---|---|
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)
List endpoints 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)
List services in the specified namespace.
|
org.reactivestreams.Publisher<ConfigMapWatchEvent> |
watchConfigMaps(java.lang.String namespace,
java.lang.Integer resourceVersion,
java.lang.String labelSelector)
Watch objects of kind ConfigMap.
|
@Get(value="/namespaces/{namespace}/services") org.reactivestreams.Publisher<ServiceList> listServices(java.lang.String namespace)
namespace
- Object name and auth scope, such as for teams and projects@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") org.reactivestreams.Publisher<EndpointsList> listEndpoints(java.lang.String namespace)
namespace
- Object name and auth scope, such as for teams and projects@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 labelsConfigMapList
default 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.Integer 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
@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
default 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@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 name