Package io.fabric8.kubernetes.client
Class DefaultKubernetesClient
java.lang.Object
io.fabric8.kubernetes.client.BaseClient
io.fabric8.kubernetes.client.DefaultKubernetesClient
- All Implemented Interfaces:
Client
,ConfigAware
,AnyNamespaceable<NamespacedKubernetesClient>
,Namespaceable<NamespacedKubernetesClient>
,RequestConfigurable<NamespacedKubernetesClient>
,GenericKubernetesClient<NamespacedKubernetesClient>
,HttpClientAware
,KubernetesClient
,NamespacedKubernetesClient
,Closeable
,AutoCloseable
- Direct Known Subclasses:
AutoAdaptableKubernetesClient
public class DefaultKubernetesClient extends BaseClient implements NamespacedKubernetesClient
Class for Default Kubernetes Client implementing KubernetesClient interface.
It is thread safe.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DefaultKubernetesClient()
DefaultKubernetesClient(Config config)
DefaultKubernetesClient(String masterUrl)
DefaultKubernetesClient(okhttp3.OkHttpClient httpClient, Config config)
-
Method Summary
Modifier and Type Method Description AdmissionRegistrationAPIGroupDSL
admissionRegistration()
API entrypoint for kubernetes resources with APIGroup admissionregistration.k8s.io/v1beta1MixedOperation<io.fabric8.kubernetes.api.model.APIService,io.fabric8.kubernetes.api.model.APIServiceList,io.fabric8.kubernetes.api.model.DoneableAPIService,Resource<io.fabric8.kubernetes.api.model.APIService,io.fabric8.kubernetes.api.model.DoneableAPIService>>
apiServices()
API entrypoint for APIService related operations.AppsAPIGroupDSL
apps()
API entrypoint for kubernetes resources with APIGroup apps/v1AutoscalingAPIGroupDSL
autoscaling()
API entrypoint for kubernetes resources with APIGroup autoscaling/v2beta1BatchAPIGroupDSL
batch()
API entrypoint for kubernetes resources with APIGroup batch/v1beta1MixedOperation<io.fabric8.kubernetes.api.model.Binding,io.fabric8.kubernetes.api.model.KubernetesResourceList<io.fabric8.kubernetes.api.model.Binding>,io.fabric8.kubernetes.api.model.DoneableBinding,Resource<io.fabric8.kubernetes.api.model.Binding,io.fabric8.kubernetes.api.model.DoneableBinding>>
bindings()
Operations for Binding resource in APIgroup core/v1MixedOperation<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()
API entrypoint for dealing with core/v1/ComponentStatusMixedOperation<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()
API entrypoint for ConfigMap related operations.<T extends io.fabric8.kubernetes.api.model.HasMetadata, L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>, 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)
Old API for dealing with CustomResources.RawCustomResourceOperationsImpl
customResource(CustomResourceDefinitionContext customResourceDefinition)
Typeless API for interacting with CustomResources.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()
API entrypoint for CustomResourcedefinition(CRDs).<T extends io.fabric8.kubernetes.api.model.HasMetadata, L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>, 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)
Typed API for managing CustomResources.<T extends io.fabric8.kubernetes.api.model.HasMetadata, L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>, D extends io.fabric8.kubernetes.api.model.Doneable<T>>
MixedOperation<T,L,D,Resource<T,D>>customResources(CustomResourceDefinitionContext crdContext, Class<T> resourceType, Class<L> listClass, Class<D> doneClass)
Typed API for managing CustomResources.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()
API entrypoint for Endpoints with APIGroup core/v1MixedOperation<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()
API entrypoint for getting events in Kubernetes.ExtensionsAPIGroupDSL
extensions()
Extensions API entrypoint for APIGroup extensions/v1beta1static DefaultKubernetesClient
fromConfig(InputStream is)
static DefaultKubernetesClient
fromConfig(String config)
VersionInfo
getVersion()
Get Kubernetes API server versionNamespacedKubernetesClient
inAnyNamespace()
SharedInformerFactory
informers()
Get an instance of Kubernetes Client informer factory.SharedInformerFactory
informers(ExecutorService executorService)
Get an instance of Kubernetes Client informer factory.NamespacedKubernetesClient
inNamespace(String namespace)
LeaderElectorBuilder<NamespacedKubernetesClient>
leaderElector()
API entrypoint forLeaderElector
implementation for leader election.MixedOperation<io.fabric8.kubernetes.api.model.coordination.v1.Lease,io.fabric8.kubernetes.api.model.coordination.v1.LeaseList,io.fabric8.kubernetes.api.model.coordination.v1.DoneableLease,Resource<io.fabric8.kubernetes.api.model.coordination.v1.Lease,io.fabric8.kubernetes.api.model.coordination.v1.DoneableLease>>
leases()
API entrypoint forLease
related operations.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()
API entrypoint for LimitRange related operations.KubernetesListMixedOperation
lists()
List related operations.ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean>
load(InputStream is)
Load a Kubernetes resource object from file InputStreamNonNamespaceOperation<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()
API entrypoint for namespace related operations in Kubernetes.NetworkAPIGroupDSL
network()
API entrypoint for kubernetes resources with APIGroup networking/v1NonNamespaceOperation<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()
API entrypoint for node related operations in Kubernetes.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()
API entrypoint for PersistentVolumeClaim related operations.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()
API entrypoint for PersistentVolume related operations.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()
API entrypoint for Pod related operations.PolicyAPIGroupDSL
policy()
API entrypoint for kubernetes resources with APIGroup policy/v1beta1RbacAPIGroupDSL
rbac()
API entrypoint for kubernetes resources with APIGroup rbac/v1MixedOperation<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()
API entrypoint for ReplicationController related operations.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean>
resource(io.fabric8.kubernetes.api.model.HasMetadata item)
KubernetesResource operations.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean>
resource(String s)
KubernetesResource operations.NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean>
resourceList(io.fabric8.kubernetes.api.model.HasMetadata... items)
KubernetesResourceList operationsNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean>
resourceList(io.fabric8.kubernetes.api.model.KubernetesResourceList item)
KubernetesResourceList operationsParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean>
resourceList(String s)
Load a Kubernetes list objectNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean>
resourceList(Collection<io.fabric8.kubernetes.api.model.HasMetadata> items)
KubernetesResourceList operationsMixedOperation<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()
API entrypoint for ResourceQuota related operations.SchedulingAPIGroupDSL
scheduling()
API entrypoint for kubernetes resources with APIGroup scheduling/v1beta1MixedOperation<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()
API entrypoint for Secret related operations.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()
API entrypoint for ServiceAccount related operations.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()
API entrypoint for Service related operations.SettingsAPIGroupDSL
settings()
API entrypoint for kubernetes resources with APIGroup settings/v1alpha1StorageAPIGroupDSL
storage()
API entrypoint for kubernetes resources with APIGroup storage/v1SubjectAccessReviewDSL
subjectAccessReviewAuth()
SubjectAccessReview operations.MetricAPIGroupDSL
top()
API entrypoint for kubernetes metricsV1APIGroupDSL
v1()
API entrypoint for Core Kubernetes Resources (core/v1).FunctionCallable<NamespacedKubernetesClient>
withRequestConfig(RequestConfig requestConfig)
Methods inherited from class io.fabric8.kubernetes.client.BaseClient
adapt, close, getApiVersion, getConfiguration, getHttpClient, getMasterUrl, getNamespace, isAdaptable, rootPaths, supportsApiPath
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fabric8.kubernetes.client.Client
adapt, close, getApiVersion, getMasterUrl, getNamespace, isAdaptable, rootPaths, supportsApiPath
-
Constructor Details
-
DefaultKubernetesClient
public DefaultKubernetesClient() -
DefaultKubernetesClient
-
DefaultKubernetesClient
-
DefaultKubernetesClient
-
-
Method Details
-
fromConfig
-
fromConfig
-
componentstatuses
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()Description copied from interface:KubernetesClient
API entrypoint for dealing with core/v1/ComponentStatus- Specified by:
componentstatuses
in interfaceKubernetesClient
- Returns:
- MixedOperation object with which you can do basic operations for ComponentStatus
-
load
public ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> load(InputStream is)Description copied from interface:KubernetesClient
Load a Kubernetes resource object from file InputStream- Specified by:
load
in interfaceKubernetesClient
- Parameters:
is
- File input stream object containing json/yaml content- Returns:
- deserialized object
-
resourceList
public NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resourceList(io.fabric8.kubernetes.api.model.KubernetesResourceList item)Description copied from interface:KubernetesClient
KubernetesResourceList operations- Specified by:
resourceList
in interfaceKubernetesClient
- Parameters:
item
- KubernetesResourceList object containing kubernetes resource items- Returns:
- operations object for KubernetesResourceList
-
resourceList
public NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resourceList(io.fabric8.kubernetes.api.model.HasMetadata... items)Description copied from interface:KubernetesClient
KubernetesResourceList operations- Specified by:
resourceList
in interfaceKubernetesClient
- Parameters:
items
- array of HasMetadata values- Returns:
- operations object for Kubernetes list
-
resourceList
public NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resourceList(Collection<io.fabric8.kubernetes.api.model.HasMetadata> items)Description copied from interface:KubernetesClient
KubernetesResourceList operations- Specified by:
resourceList
in interfaceKubernetesClient
- Parameters:
items
- a collection containing HasMetadata values- Returns:
- operations object for Kubernetes list
-
resourceList
public ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resourceList(String s)Description copied from interface:KubernetesClient
Load a Kubernetes list object- Specified by:
resourceList
in interfaceKubernetesClient
- Parameters:
s
- kubernetes list as string- Returns:
- deserialized KubernetesList object
-
resource
public NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resource(io.fabric8.kubernetes.api.model.HasMetadata item)Description copied from interface:KubernetesClient
KubernetesResource operations. You can pass any Kubernetes resource as a HasMetadata object and do all operations- Specified by:
resource
in interfaceKubernetesClient
- Parameters:
item
- Kubernetes resource object- Returns:
- operations object for Kubernetes resource
-
resource
public NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata,Boolean> resource(String s)Description copied from interface:KubernetesClient
KubernetesResource operations. You can pass any Kubernetes resource as string object and do all operations- Specified by:
resource
in interfaceKubernetesClient
- Parameters:
s
- Kubernetes resource object as string- Returns:
- operations object for Kubernetes resource
-
bindings
public MixedOperation<io.fabric8.kubernetes.api.model.Binding,io.fabric8.kubernetes.api.model.KubernetesResourceList<io.fabric8.kubernetes.api.model.Binding>,io.fabric8.kubernetes.api.model.DoneableBinding,Resource<io.fabric8.kubernetes.api.model.Binding,io.fabric8.kubernetes.api.model.DoneableBinding>> bindings()Description copied from interface:KubernetesClient
Operations for Binding resource in APIgroup core/v1- Specified by:
bindings
in interfaceKubernetesClient
- Returns:
- MixedOperation object for doing operations for Binding
-
endpoints
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()Description copied from interface:KubernetesClient
API entrypoint for Endpoints with APIGroup core/v1- Specified by:
endpoints
in interfaceKubernetesClient
- Returns:
- MixedOperation object for doing operations for Endpoints
-
events
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()Description copied from interface:KubernetesClient
API entrypoint for getting events in Kubernetes. Events (core/v1)- Specified by:
events
in interfaceKubernetesClient
- Returns:
- MixedOperation object for doing operations for Events
-
namespaces
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()Description copied from interface:KubernetesClient
API entrypoint for namespace related operations in Kubernetes. Namespace (core/v1)- Specified by:
namespaces
in interfaceKubernetesClient
- Returns:
- NonNamespaceOperation object for Namespace related operations
-
nodes
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()Description copied from interface:KubernetesClient
API entrypoint for node related operations in Kubernetes. Node (core/v1)- Specified by:
nodes
in interfaceKubernetesClient
- Returns:
- NonNamespaceOperation object for Node related operations
-
persistentVolumes
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()Description copied from interface:KubernetesClient
API entrypoint for PersistentVolume related operations. PersistentVolume (core/v1)- Specified by:
persistentVolumes
in interfaceKubernetesClient
- Returns:
- NonNamespaceOperation object for PersistentVolume related operations.
-
persistentVolumeClaims
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()Description copied from interface:KubernetesClient
API entrypoint for PersistentVolumeClaim related operations. PersistentVolumeClaim (core/v1)- Specified by:
persistentVolumeClaims
in interfaceKubernetesClient
- Returns:
- MixedOperation object for PersistentVolumeClaim related operations.
-
pods
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()Description copied from interface:KubernetesClient
API entrypoint for Pod related operations. Pod (core/v1)- Specified by:
pods
in interfaceKubernetesClient
- Returns:
- MixedOperation object for Pod related operations
-
replicationControllers
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()Description copied from interface:KubernetesClient
API entrypoint for ReplicationController related operations. ReplicationController (core/v1)- Specified by:
replicationControllers
in interfaceKubernetesClient
- Returns:
- MixedOperation object for ReplicationController related operations.
-
resourceQuotas
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()Description copied from interface:KubernetesClient
API entrypoint for ResourceQuota related operations. ResourceQuota (core/v1)- Specified by:
resourceQuotas
in interfaceKubernetesClient
- Returns:
- MixedOperation object for ResourceQuota related operations.
-
scheduling
Description copied from interface:KubernetesClient
API entrypoint for kubernetes resources with APIGroup scheduling/v1beta1- Specified by:
scheduling
in interfaceKubernetesClient
- Returns:
- SchedulingAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
-
secrets
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()Description copied from interface:KubernetesClient
API entrypoint for Secret related operations. Secret (core/v1)- Specified by:
secrets
in interfaceKubernetesClient
- Returns:
- MixedOperation object for Secret related operations.
-
services
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()Description copied from interface:KubernetesClient
API entrypoint for Service related operations. Service (core/v1)- Specified by:
services
in interfaceKubernetesClient
- Returns:
- MixedOperation object for Service related operations.
-
serviceAccounts
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()Description copied from interface:KubernetesClient
API entrypoint for ServiceAccount related operations. ServiceAccount (core/v1)- Specified by:
serviceAccounts
in interfaceKubernetesClient
- Returns:
- MixedOperation object for ServiceAccount related operations.
-
apiServices
public MixedOperation<io.fabric8.kubernetes.api.model.APIService,io.fabric8.kubernetes.api.model.APIServiceList,io.fabric8.kubernetes.api.model.DoneableAPIService,Resource<io.fabric8.kubernetes.api.model.APIService,io.fabric8.kubernetes.api.model.DoneableAPIService>> apiServices()Description copied from interface:KubernetesClient
API entrypoint for APIService related operations. APIService (apiregistration.k8s.io/v1)- Specified by:
apiServices
in interfaceKubernetesClient
- Returns:
- MixedOperation object for APIService related operations
-
lists
Description copied from interface:KubernetesClient
List related operations.- Specified by:
lists
in interfaceKubernetesClient
- Returns:
- KubernetesListMixedOperations object for Kubernetes List
-
configMaps
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()Description copied from interface:KubernetesClient
API entrypoint for ConfigMap related operations. ConfigMap (core/v1)- Specified by:
configMaps
in interfaceKubernetesClient
- Returns:
- MixedOperation object for ConfigMap related operations.
-
limitRanges
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()Description copied from interface:KubernetesClient
API entrypoint for LimitRange related operations. LimitRange (core/v1)- Specified by:
limitRanges
in interfaceKubernetesClient
- Returns:
- MixedOperation object for LimitRange related operations.
-
customResourceDefinitions
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()Description copied from interface:KubernetesClient
API entrypoint for CustomResourcedefinition(CRDs). This offers basic operations like load, get, create, update, delete and watch for APIGroup apiextensions/v1beta1- Specified by:
customResourceDefinitions
in interfaceKubernetesClient
- Returns:
- NonNamespaceOperation object for CustomResourceDefinition
-
customResources
public <T extends io.fabric8.kubernetes.api.model.HasMetadata, L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>, D extends io.fabric8.kubernetes.api.model.Doneable<T>> MixedOperation<T,L,D,Resource<T,D>> customResources(CustomResourceDefinitionContext crdContext, Class<T> resourceType, Class<L> listClass, Class<D> doneClass)Description copied from interface:KubernetesClient
Typed API for managing CustomResources. You would need to provide POJOs for CustomResource into this and with it you would be able to instantiate a client specific to CustomResource.- Specified by:
customResources
in interfaceKubernetesClient
- Type Parameters:
T
- T type represents CustomResource typeL
- L type represents CustomResourceList typeD
- D type represents DoneableCustomResource type- Parameters:
crdContext
- CustomResourceDefinitionContext describes the core fields used to search for CustomResourcesresourceType
- Class for CustomResourcelistClass
- Class for list object for CustomResourcedoneClass
- Class for Doneable CustomResource object- Returns:
- returns a MixedOperation object with which you can do basic CustomResource operations
-
customResources
public <T extends io.fabric8.kubernetes.api.model.HasMetadata, L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>, 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)Description copied from interface:KubernetesClient
Typed API for managing CustomResources. You would need to provide POJOs for CustomResource into this and with it you would be able to instantiate a client specific to CustomResource.- Specified by:
customResources
in interfaceKubernetesClient
- Type Parameters:
T
- T type represents CustomResource typeL
- L type represents CustomResourceList typeD
- D type represents DoneableCustomResource type- Parameters:
crd
- CustomResourceDefinition object on basic of which this CustomResource was createdresourceType
- Class for CustomResourcelistClass
- Class for list object for CustomResourcedoneClass
- Class for Doneable CustomResource object- Returns:
- returns a MixedOperation object with which you can do basic CustomResource operations
-
customResource
public RawCustomResourceOperationsImpl customResource(CustomResourceDefinitionContext customResourceDefinition)Description copied from interface:KubernetesClient
Typeless API for interacting with CustomResources. You can do basic operations with CustomResources without having any model. You just need to pass an object providing basic information of CustomResource. CustomResource objects are parsed as HashMaps.- Specified by:
customResource
in interfaceKubernetesClient
- Parameters:
customResourceDefinition
- CustomResourceDefinitionContext - information about CustomResource like versioning, namespaced or not and group etc- Returns:
- a RawCustomResourceOperations object which offers several functions for creating, deleting, updating, watching CustomResources.
-
customResource
public <T extends io.fabric8.kubernetes.api.model.HasMetadata, L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>, 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)Description copied from interface:KubernetesClient
Old API for dealing with CustomResources.- Specified by:
customResource
in interfaceKubernetesClient
- Type Parameters:
T
- template argument for resourceL
- template argument for listD
- template argument for doneable resource- Parameters:
crd
- Custom Resource DefinitionresourceType
- resource type PojolistClass
- list class PojodoneClass
- Done class Pojo- Returns:
- Kubernetes client object for manipulating custom resource.
-
inNamespace
- Specified by:
inNamespace
in interfaceNamespaceable<NamespacedKubernetesClient>
-
inAnyNamespace
- Specified by:
inAnyNamespace
in interfaceAnyNamespaceable<NamespacedKubernetesClient>
-
withRequestConfig
- Specified by:
withRequestConfig
in interfaceRequestConfigurable<NamespacedKubernetesClient>
-
extensions
Description copied from interface:KubernetesClient
Extensions API entrypoint for APIGroup extensions/v1beta1- Specified by:
extensions
in interfaceKubernetesClient
- Returns:
- ExtensionsAPIGroupDSL with which you can access entrypoints for extension objects
-
getVersion
Description copied from interface:KubernetesClient
Get Kubernetes API server version- Specified by:
getVersion
in interfaceKubernetesClient
- Returns:
- VersionInfo object containing versioning information
-
v1
Description copied from interface:KubernetesClient
API entrypoint for Core Kubernetes Resources (core/v1). Right now other core resources have their own DSL entrypoints. But in future, all core/v1 resources would be added here.- Specified by:
v1
in interfaceKubernetesClient
- Returns:
- V1APIGroupDSL DSL object for core v1 resources
-
admissionRegistration
Description copied from interface:KubernetesClient
API entrypoint for kubernetes resources with APIGroup admissionregistration.k8s.io/v1beta1- Specified by:
admissionRegistration
in interfaceKubernetesClient
- Returns:
- AdmissionRegistrationAPIGroupDSL which offers entrypoints to specific resources in this API group
-
apps
Description copied from interface:KubernetesClient
API entrypoint for kubernetes resources with APIGroup apps/v1- Specified by:
apps
in interfaceKubernetesClient
- Returns:
- AppsAPIGroupDSL which offers entrypoints to specific resources in this API group
-
autoscaling
Description copied from interface:KubernetesClient
API entrypoint for kubernetes resources with APIGroup autoscaling/v2beta1- Specified by:
autoscaling
in interfaceKubernetesClient
- Returns:
- AutoScalingAPIGroupDSL which offers entrypoints to specific resources in this API group
-
network
Description copied from interface:KubernetesClient
API entrypoint for kubernetes resources with APIGroup networking/v1- Specified by:
network
in interfaceKubernetesClient
- Returns:
- NetworkAPIGroupDSL which offers entrypoints to specific resources in this APIGroup
-
storage
Description copied from interface:KubernetesClient
API entrypoint for kubernetes resources with APIGroup storage/v1- Specified by:
storage
in interfaceKubernetesClient
- Returns:
- StorageAPIGroupDSL which offers entrypoints to specific resources in this APIGroup
-
batch
Description copied from interface:KubernetesClient
API entrypoint for kubernetes resources with APIGroup batch/v1beta1- Specified by:
batch
in interfaceKubernetesClient
- Returns:
- BatchAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
-
top
Description copied from interface:KubernetesClient
API entrypoint for kubernetes metrics- Specified by:
top
in interfaceKubernetesClient
- Returns:
- MetricAPIGroupDSL which offers for fetching metrics
-
policy
Description copied from interface:KubernetesClient
API entrypoint for kubernetes resources with APIGroup policy/v1beta1- Specified by:
policy
in interfaceKubernetesClient
- Returns:
- PolicyAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
-
rbac
Description copied from interface:KubernetesClient
API entrypoint for kubernetes resources with APIGroup rbac/v1- Specified by:
rbac
in interfaceKubernetesClient
- Returns:
- RbacAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
-
settings
Description copied from interface:KubernetesClient
API entrypoint for kubernetes resources with APIGroup settings/v1alpha1- Specified by:
settings
in interfaceKubernetesClient
- Returns:
- SettingsAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
-
subjectAccessReviewAuth
Description copied from interface:KubernetesClient
SubjectAccessReview operations. (authorization/v1)- Specified by:
subjectAccessReviewAuth
in interfaceKubernetesClient
- Returns:
- SubjectAccessReviewDSL object for dealing with SubjectAccessReviewOperations
-
informers
Description copied from interface:KubernetesClient
Get an instance of Kubernetes Client informer factory. It allows you to construct and cache informers for API types. With it you can subscribe to all the events related to your Kubernetes type. It's like watch but a bit organized.- Specified by:
informers
in interfaceKubernetesClient
- Returns:
- SharedInformerFactory object
-
informers
Description copied from interface:KubernetesClient
Get an instance of Kubernetes Client informer factory. It allows you to construct and cache informers for API types. With it you can subscribe to all the events related to your Kubernetes type. It's like watch but a bit organized.- Specified by:
informers
in interfaceKubernetesClient
- Parameters:
executorService
- thread pool for informer factory- Returns:
- SharedInformerFactory object
-
leaderElector
API entrypoint forLeaderElector
implementation for leader election.- Specified by:
leaderElector
in interfaceKubernetesClient
- Returns:
- LeaderElectorBuilder to build LeaderElector instances
-
leases
public MixedOperation<io.fabric8.kubernetes.api.model.coordination.v1.Lease,io.fabric8.kubernetes.api.model.coordination.v1.LeaseList,io.fabric8.kubernetes.api.model.coordination.v1.DoneableLease,Resource<io.fabric8.kubernetes.api.model.coordination.v1.Lease,io.fabric8.kubernetes.api.model.coordination.v1.DoneableLease>> leases()API entrypoint forLease
related operations. Lease (coordination.k8s.io/v1)- Specified by:
leases
in interfaceKubernetesClient
- Returns:
- MixedOperation object for Lease related operations.
-