@Service(value={KubernetesClient.class,NamespacedKubernetesClient.class}) @Reference(referenceInterface=ResourceHandler.class,cardinality=OPTIONAL_MULTIPLE,policy=DYNAMIC,bind="bindResourceHandler",unbind="unbindResourceHandler") @Reference(referenceInterface=ExtensionAdapter.class,cardinality=OPTIONAL_MULTIPLE,policy=DYNAMIC,bind="bindExtensionAdapter",unbind="unbindExtensionAdapter") public class ManagedKubernetesClient extends BaseClient implements NamespacedKubernetesClient
httpClient
Constructor and Description |
---|
ManagedKubernetesClient() |
Modifier and Type | Method and Description |
---|---|
void |
activate(Map<String,Object> properties) |
<C> C |
adapt(Class<C> type) |
AppsAPIGroupDSL |
apps() |
AutoscalingAPIGroupDSL |
autoscaling() |
BatchAPIGroupDSL |
batch() |
void |
bindExtensionAdapter(ExtensionAdapter adapter) |
void |
bindResourceHandler(ResourceHandler resourceHandler) |
void |
close() |
MixedOperation<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.ComponentStatusList,io.fabric8.kubernetes.api.model.DoneableComponentStatus,Resource<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.DoneableComponentStatus>> |
componentstatuses() |
MixedOperation<io.fabric8.kubernetes.api.model.ConfigMap,io.fabric8.kubernetes.api.model.ConfigMapList,io.fabric8.kubernetes.api.model.DoneableConfigMap,Resource<io.fabric8.kubernetes.api.model.ConfigMap,io.fabric8.kubernetes.api.model.DoneableConfigMap>> |
configMaps() |
<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList,D extends io.fabric8.kubernetes.api.model.Doneable<T>> |
customResource(io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinition crd,
Class<T> resourceType,
Class<L> listClass,
Class<D> doneClass) |
NonNamespaceOperation<io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinition,io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinitionList,io.fabric8.kubernetes.api.model.apiextensions.DoneableCustomResourceDefinition,Resource<io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinition,io.fabric8.kubernetes.api.model.apiextensions.DoneableCustomResourceDefinition>> |
customResourceDefinitions() |
<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList,D extends io.fabric8.kubernetes.api.model.Doneable<T>> |
customResources(io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinition crd,
Class<T> resourceType,
Class<L> listClass,
Class<D> doneClass) |
void |
deactivate() |
MixedOperation<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsList,io.fabric8.kubernetes.api.model.DoneableEndpoints,Resource<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.DoneableEndpoints>> |
endpoints() |
MixedOperation<io.fabric8.kubernetes.api.model.Event,io.fabric8.kubernetes.api.model.EventList,io.fabric8.kubernetes.api.model.DoneableEvent,Resource<io.fabric8.kubernetes.api.model.Event,io.fabric8.kubernetes.api.model.DoneableEvent>> |
events() |
ExtensionsAPIGroupDSL |
extensions() |
String |
getApiVersion() |
Config |
getConfiguration() |
URL |
getMasterUrl() |
String |
getNamespace() |
VersionInfo |
getVersion() |
NamespacedKubernetesClient |
inAnyNamespace() |
NamespacedKubernetesClient |
inNamespace(String name) |
MixedOperation<io.fabric8.kubernetes.api.model.LimitRange,io.fabric8.kubernetes.api.model.LimitRangeList,io.fabric8.kubernetes.api.model.DoneableLimitRange,Resource<io.fabric8.kubernetes.api.model.LimitRange,io.fabric8.kubernetes.api.model.DoneableLimitRange>> |
limitRanges() |
KubernetesListMixedOperation |
lists() |
ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> |
load(InputStream is) |
NonNamespaceOperation<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.NamespaceList,io.fabric8.kubernetes.api.model.DoneableNamespace,Resource<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.DoneableNamespace>> |
namespaces() |
NetworkAPIGroupDSL |
network() |
NonNamespaceOperation<io.fabric8.kubernetes.api.model.Node,io.fabric8.kubernetes.api.model.NodeList,io.fabric8.kubernetes.api.model.DoneableNode,Resource<io.fabric8.kubernetes.api.model.Node,io.fabric8.kubernetes.api.model.DoneableNode>> |
nodes() |
MixedOperation<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.PersistentVolumeClaimList,io.fabric8.kubernetes.api.model.DoneablePersistentVolumeClaim,Resource<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.DoneablePersistentVolumeClaim>> |
persistentVolumeClaims() |
NonNamespaceOperation<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.PersistentVolumeList,io.fabric8.kubernetes.api.model.DoneablePersistentVolume,Resource<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.DoneablePersistentVolume>> |
persistentVolumes() |
MixedOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,io.fabric8.kubernetes.api.model.DoneablePod,PodResource<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.DoneablePod>> |
pods() |
PolicyAPIGroupDSL |
policy() |
RbacAPIGroupDSL |
rbac() |
MixedOperation<io.fabric8.kubernetes.api.model.ReplicationController,io.fabric8.kubernetes.api.model.ReplicationControllerList,io.fabric8.kubernetes.api.model.DoneableReplicationController,RollableScalableResource<io.fabric8.kubernetes.api.model.ReplicationController,io.fabric8.kubernetes.api.model.DoneableReplicationController>> |
replicationControllers() |
NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> |
resource(io.fabric8.kubernetes.api.model.HasMetadata is) |
NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> |
resource(String s) |
NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> |
resourceList(Collection<io.fabric8.kubernetes.api.model.HasMetadata> items) |
NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> |
resourceList(io.fabric8.kubernetes.api.model.HasMetadata... items) |
NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> |
resourceList(io.fabric8.kubernetes.api.model.KubernetesResourceList is) |
ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> |
resourceList(String s) |
MixedOperation<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaList,io.fabric8.kubernetes.api.model.DoneableResourceQuota,Resource<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.DoneableResourceQuota>> |
resourceQuotas() |
io.fabric8.kubernetes.api.model.RootPaths |
rootPaths() |
SchedulingAPIGroupDSL |
scheduling() |
MixedOperation<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.SecretList,io.fabric8.kubernetes.api.model.DoneableSecret,Resource<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.DoneableSecret>> |
secrets() |
MixedOperation<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.ServiceAccountList,io.fabric8.kubernetes.api.model.DoneableServiceAccount,Resource<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.DoneableServiceAccount>> |
serviceAccounts() |
MixedOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,io.fabric8.kubernetes.api.model.DoneableService,ServiceResource<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.DoneableService>> |
services() |
SettingsAPIGroupDSL |
settings() |
StorageAPIGroupDSL |
storage() |
void |
unbindExtensionAdapter(ExtensionAdapter adapter) |
void |
unbindResourceHandler(ResourceHandler resourceHandler) |
FunctionCallable<NamespacedKubernetesClient> |
withRequestConfig(RequestConfig requestConfig) |
getHttpClient, isAdaptable, supportsApiPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAdaptable, supportsApiPath
@Deactivate public void deactivate()
public MixedOperation<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.ComponentStatusList,io.fabric8.kubernetes.api.model.DoneableComponentStatus,Resource<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.DoneableComponentStatus>> componentstatuses()
componentstatuses
in interface KubernetesClient
public ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> load(InputStream is)
load
in interface KubernetesClient
public NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resourceList(io.fabric8.kubernetes.api.model.KubernetesResourceList is)
resourceList
in interface KubernetesClient
public NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resourceList(io.fabric8.kubernetes.api.model.HasMetadata... items)
resourceList
in interface KubernetesClient
public NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resourceList(Collection<io.fabric8.kubernetes.api.model.HasMetadata> items)
resourceList
in interface KubernetesClient
public ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resourceList(String s)
resourceList
in interface KubernetesClient
public NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resource(io.fabric8.kubernetes.api.model.HasMetadata is)
resource
in interface KubernetesClient
public NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resource(String s)
resource
in interface KubernetesClient
public MixedOperation<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsList,io.fabric8.kubernetes.api.model.DoneableEndpoints,Resource<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.DoneableEndpoints>> endpoints()
endpoints
in interface KubernetesClient
public MixedOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,io.fabric8.kubernetes.api.model.DoneablePod,PodResource<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.DoneablePod>> pods()
pods
in interface KubernetesClient
public MixedOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,io.fabric8.kubernetes.api.model.DoneableService,ServiceResource<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.DoneableService>> services()
services
in interface KubernetesClient
public NonNamespaceOperation<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.NamespaceList,io.fabric8.kubernetes.api.model.DoneableNamespace,Resource<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.DoneableNamespace>> namespaces()
namespaces
in interface KubernetesClient
public MixedOperation<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.ServiceAccountList,io.fabric8.kubernetes.api.model.DoneableServiceAccount,Resource<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.DoneableServiceAccount>> serviceAccounts()
serviceAccounts
in interface KubernetesClient
public NonNamespaceOperation<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.PersistentVolumeList,io.fabric8.kubernetes.api.model.DoneablePersistentVolume,Resource<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.DoneablePersistentVolume>> persistentVolumes()
persistentVolumes
in interface KubernetesClient
public MixedOperation<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaList,io.fabric8.kubernetes.api.model.DoneableResourceQuota,Resource<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.DoneableResourceQuota>> resourceQuotas()
resourceQuotas
in interface KubernetesClient
public KubernetesListMixedOperation lists()
lists
in interface KubernetesClient
public MixedOperation<io.fabric8.kubernetes.api.model.ConfigMap,io.fabric8.kubernetes.api.model.ConfigMapList,io.fabric8.kubernetes.api.model.DoneableConfigMap,Resource<io.fabric8.kubernetes.api.model.ConfigMap,io.fabric8.kubernetes.api.model.DoneableConfigMap>> configMaps()
configMaps
in interface KubernetesClient
public MixedOperation<io.fabric8.kubernetes.api.model.LimitRange,io.fabric8.kubernetes.api.model.LimitRangeList,io.fabric8.kubernetes.api.model.DoneableLimitRange,Resource<io.fabric8.kubernetes.api.model.LimitRange,io.fabric8.kubernetes.api.model.DoneableLimitRange>> limitRanges()
limitRanges
in interface KubernetesClient
public NonNamespaceOperation<io.fabric8.kubernetes.api.model.Node,io.fabric8.kubernetes.api.model.NodeList,io.fabric8.kubernetes.api.model.DoneableNode,Resource<io.fabric8.kubernetes.api.model.Node,io.fabric8.kubernetes.api.model.DoneableNode>> nodes()
nodes
in interface KubernetesClient
public MixedOperation<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.PersistentVolumeClaimList,io.fabric8.kubernetes.api.model.DoneablePersistentVolumeClaim,Resource<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.DoneablePersistentVolumeClaim>> persistentVolumeClaims()
persistentVolumeClaims
in interface KubernetesClient
public MixedOperation<io.fabric8.kubernetes.api.model.Event,io.fabric8.kubernetes.api.model.EventList,io.fabric8.kubernetes.api.model.DoneableEvent,Resource<io.fabric8.kubernetes.api.model.Event,io.fabric8.kubernetes.api.model.DoneableEvent>> events()
events
in interface KubernetesClient
public MixedOperation<io.fabric8.kubernetes.api.model.ReplicationController,io.fabric8.kubernetes.api.model.ReplicationControllerList,io.fabric8.kubernetes.api.model.DoneableReplicationController,RollableScalableResource<io.fabric8.kubernetes.api.model.ReplicationController,io.fabric8.kubernetes.api.model.DoneableReplicationController>> replicationControllers()
replicationControllers
in interface KubernetesClient
public MixedOperation<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.SecretList,io.fabric8.kubernetes.api.model.DoneableSecret,Resource<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.DoneableSecret>> secrets()
secrets
in interface KubernetesClient
public io.fabric8.kubernetes.api.model.RootPaths rootPaths()
rootPaths
in interface Client
rootPaths
in class BaseClient
public ExtensionsAPIGroupDSL extensions()
extensions
in interface KubernetesClient
public VersionInfo getVersion()
getVersion
in interface KubernetesClient
public AppsAPIGroupDSL apps()
apps
in interface KubernetesClient
public AutoscalingAPIGroupDSL autoscaling()
autoscaling
in interface KubernetesClient
public SchedulingAPIGroupDSL scheduling()
scheduling
in interface KubernetesClient
public NetworkAPIGroupDSL network()
network
in interface KubernetesClient
public StorageAPIGroupDSL storage()
storage
in interface KubernetesClient
public SettingsAPIGroupDSL settings()
settings
in interface KubernetesClient
public BatchAPIGroupDSL batch()
batch
in interface KubernetesClient
public PolicyAPIGroupDSL policy()
policy
in interface KubernetesClient
public RbacAPIGroupDSL rbac()
rbac
in interface KubernetesClient
public NonNamespaceOperation<io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinition,io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinitionList,io.fabric8.kubernetes.api.model.apiextensions.DoneableCustomResourceDefinition,Resource<io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinition,io.fabric8.kubernetes.api.model.apiextensions.DoneableCustomResourceDefinition>> customResourceDefinitions()
customResourceDefinitions
in interface KubernetesClient
public <T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList,D extends io.fabric8.kubernetes.api.model.Doneable<T>> MixedOperation<T,L,D,Resource<T,D>> customResources(io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinition crd, Class<T> resourceType, Class<L> listClass, Class<D> doneClass)
customResources
in interface KubernetesClient
public <T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList,D extends io.fabric8.kubernetes.api.model.Doneable<T>> MixedOperation<T,L,D,Resource<T,D>> customResource(io.fabric8.kubernetes.api.model.apiextensions.CustomResourceDefinition crd, Class<T> resourceType, Class<L> listClass, Class<D> doneClass)
customResource
in interface KubernetesClient
public String getApiVersion()
getApiVersion
in interface Client
getApiVersion
in class BaseClient
public String getNamespace()
getNamespace
in interface Client
getNamespace
in class BaseClient
public URL getMasterUrl()
getMasterUrl
in interface Client
getMasterUrl
in class BaseClient
public <C> C adapt(Class<C> type)
adapt
in interface Client
adapt
in class BaseClient
public void close()
close
in interface Client
close
in interface Closeable
close
in interface AutoCloseable
close
in class BaseClient
public Config getConfiguration()
getConfiguration
in interface ConfigAware
getConfiguration
in class BaseClient
public void bindResourceHandler(ResourceHandler resourceHandler)
public void unbindResourceHandler(ResourceHandler resourceHandler)
public void bindExtensionAdapter(ExtensionAdapter adapter)
public void unbindExtensionAdapter(ExtensionAdapter adapter)
public NamespacedKubernetesClient inAnyNamespace()
inAnyNamespace
in interface AnyNamespaceable<NamespacedKubernetesClient>
public NamespacedKubernetesClient inNamespace(String name)
inNamespace
in interface Namespaceable<NamespacedKubernetesClient>
public FunctionCallable<NamespacedKubernetesClient> withRequestConfig(RequestConfig requestConfig)
withRequestConfig
in interface RequestConfigurable<NamespacedKubernetesClient>
Copyright © 2015–2019 Red Hat. All rights reserved.