Class ManagedKubernetesClient
- java.lang.Object
-
- io.fabric8.kubernetes.client.BaseClient
-
- io.fabric8.kubernetes.client.osgi.ManagedKubernetesClient
-
- All Implemented Interfaces:
Client
,ConfigAware
,AnyNamespaceable<NamespacedKubernetesClient>
,Namespaceable<NamespacedKubernetesClient>
,RequestConfigurable<NamespacedKubernetesClient>
,GenericKubernetesClient<NamespacedKubernetesClient>
,HttpClientAware
,KubernetesClient
,NamespacedKubernetesClient
,Closeable
,AutoCloseable
@Service({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") @Reference(referenceInterface=OAuthTokenProvider.class,cardinality=OPTIONAL_UNARY,policyOption=GREEDY,bind="bindOAuthTokenProvider",unbind="unbindOAuthTokenProvider") public class ManagedKubernetesClient extends BaseClient implements NamespacedKubernetesClient
-
-
Field Summary
-
Fields inherited from class io.fabric8.kubernetes.client.BaseClient
httpClient
-
-
Constructor Summary
Constructors Constructor Description ManagedKubernetesClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(Map<String,Object> properties)
<C> C
adapt(Class<C> type)
AdmissionRegistrationAPIGroupDSL
admissionRegistration()
API entrypoint for kubernetes resources with APIGroup admissionregistration.k8s.io/v1beta1ApiextensionsAPIGroupDSL
apiextensions()
API entrypoint for apiextensions resources.MixedOperation<io.fabric8.kubernetes.api.model.APIService,io.fabric8.kubernetes.api.model.APIServiceList,Resource<io.fabric8.kubernetes.api.model.APIService>>
apiServices()
API entrypoint for APIService related operations.AppsAPIGroupDSL
apps()
API entrypoint for kubernetes resources with APIGroup apps/v1AuthorizationAPIGroupDSL
authorization()
Authorization operations.AutoscalingAPIGroupDSL
autoscaling()
API entrypoint for kubernetes resources with APIGroup autoscaling/v2beta1BatchAPIGroupDSL
batch()
API entrypoint for kubernetes resources with APIGroup batch/v1beta1void
bindExtensionAdapter(ExtensionAdapter adapter)
MixedOperation<io.fabric8.kubernetes.api.model.Binding,io.fabric8.kubernetes.api.model.KubernetesResourceList<io.fabric8.kubernetes.api.model.Binding>,Resource<io.fabric8.kubernetes.api.model.Binding>>
bindings()
Operations for Binding resource in APIgroup core/v1void
bindOAuthTokenProvider(OAuthTokenProvider provider)
void
bindResourceHandler(ResourceHandler resourceHandler)
CertificatesAPIGroupDSL
certificates()
API entrypoint for certificates.k8s.io APIGroupNonNamespaceOperation<io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequest,io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequestList,Resource<io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequest>>
certificateSigningRequests()
API entrypoint for using CertificateSigningRequest(certificates.k8s.io/v1beta1)void
close()
MixedOperation<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.ComponentStatusList,Resource<io.fabric8.kubernetes.api.model.ComponentStatus>>
componentstatuses()
API entrypoint for dealing with core/v1/ComponentStatusMixedOperation<io.fabric8.kubernetes.api.model.ConfigMap,io.fabric8.kubernetes.api.model.ConfigMapList,Resource<io.fabric8.kubernetes.api.model.ConfigMap>>
configMaps()
API entrypoint for ConfigMap related operations.RawCustomResourceOperationsImpl
customResource(CustomResourceDefinitionContext customResourceDefinition)
Typeless API for interacting with CustomResources.<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
MixedOperation<T,L,Resource<T>>customResources(CustomResourceDefinitionContext crdContext, Class<T> resourceType, Class<L> listClass)
Typed API for managing CustomResources.<T extends CustomResource>
MixedOperation<T,io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,Resource<T>>customResources(Class<T> resourceType)
Typed API for managing CustomResources.<T extends CustomResource,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
MixedOperation<T,L,Resource<T>>customResources(Class<T> resourceType, Class<L> listClass)
Typed API for managing CustomResources.void
deactivate()
DiscoveryAPIGroupDSL
discovery()
Discovery API entrypoint for APIGroup discovery.k8s.ioMixedOperation<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsList,Resource<io.fabric8.kubernetes.api.model.Endpoints>>
endpoints()
API entrypoint for Endpoints with APIGroup core/v1ExtensionsAPIGroupDSL
extensions()
Extensions API entrypoint for APIGroup extensions/v1beta1String
getApiVersion()
Config
getConfiguration()
URL
getMasterUrl()
String
getNamespace()
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 name)
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,Resource<io.fabric8.kubernetes.api.model.coordination.v1.Lease>>
leases()
API entrypoint forLease
related operations.MixedOperation<io.fabric8.kubernetes.api.model.LimitRange,io.fabric8.kubernetes.api.model.LimitRangeList,Resource<io.fabric8.kubernetes.api.model.LimitRange>>
limitRanges()
API entrypoint for LimitRange related operations.KubernetesListMixedOperation
lists()
List related operations.ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata>
load(InputStream is)
Load a Kubernetes resource object from file InputStreamNonNamespaceOperation<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.NamespaceList,Resource<io.fabric8.kubernetes.api.model.Namespace>>
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,Resource<io.fabric8.kubernetes.api.model.Node>>
nodes()
API entrypoint for node related operations in Kubernetes.MixedOperation<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.PersistentVolumeClaimList,Resource<io.fabric8.kubernetes.api.model.PersistentVolumeClaim>>
persistentVolumeClaims()
API entrypoint for PersistentVolumeClaim related operations.NonNamespaceOperation<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.PersistentVolumeList,Resource<io.fabric8.kubernetes.api.model.PersistentVolume>>
persistentVolumes()
API entrypoint for PersistentVolume related operations.MixedOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource<io.fabric8.kubernetes.api.model.Pod>>
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,RollableScalableResource<io.fabric8.kubernetes.api.model.ReplicationController>>
replicationControllers()
API entrypoint for ReplicationController related operations.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata>
resource(io.fabric8.kubernetes.api.model.HasMetadata is)
KubernetesResource operations.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata>
resource(String s)
KubernetesResource operations.NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata>
resourceList(io.fabric8.kubernetes.api.model.HasMetadata... items)
KubernetesResourceList operationsNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata>
resourceList(io.fabric8.kubernetes.api.model.KubernetesResourceList is)
KubernetesResourceList operationsParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata>
resourceList(String s)
Load a Kubernetes list objectNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata>
resourceList(Collection<io.fabric8.kubernetes.api.model.HasMetadata> items)
KubernetesResourceList operationsMixedOperation<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaList,Resource<io.fabric8.kubernetes.api.model.ResourceQuota>>
resourceQuotas()
API entrypoint for ResourceQuota related operations.io.fabric8.kubernetes.api.model.RootPaths
rootPaths()
RunOperations
run()
Run a Pod (core/v1)NonNamespaceOperation<io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClass,io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClassList,Resource<io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClass>>
runtimeClasses()
API entrypoint for RuntimeClass (node.k8s.io/v1beta1)SchedulingAPIGroupDSL
scheduling()
API entrypoint for kubernetes resources with APIGroup scheduling/v1beta1MixedOperation<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.SecretList,Resource<io.fabric8.kubernetes.api.model.Secret>>
secrets()
API entrypoint for Secret related operations.MixedOperation<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.ServiceAccountList,Resource<io.fabric8.kubernetes.api.model.ServiceAccount>>
serviceAccounts()
API entrypoint for ServiceAccount related operations.MixedOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>>
services()
API entrypoint for Service related operations.StorageAPIGroupDSL
storage()
API entrypoint for kubernetes resources with APIGroup storage/v1Createable<io.fabric8.kubernetes.api.model.authentication.TokenReview>
tokenReviews()
API for creating authentication.k8s.io/v1 TokenReviewsMetricAPIGroupDSL
top()
API entrypoint for kubernetes metricsvoid
unbindExtensionAdapter(ExtensionAdapter adapter)
void
unbindOAuthTokenProvider(OAuthTokenProvider provider)
void
unbindResourceHandler(ResourceHandler resourceHandler)
V1APIGroupDSL
v1()
API entrypoint for Core Kubernetes Resources (core/v1).FunctionCallable<NamespacedKubernetesClient>
withRequestConfig(RequestConfig requestConfig)
-
Methods inherited from class io.fabric8.kubernetes.client.BaseClient
getHttpClient, isAdaptable, 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
isAdaptable, supportsApiPath
-
-
-
-
Method Detail
-
deactivate
@Deactivate public void deactivate()
-
componentstatuses
public MixedOperation<io.fabric8.kubernetes.api.model.ComponentStatus,io.fabric8.kubernetes.api.model.ComponentStatusList,Resource<io.fabric8.kubernetes.api.model.ComponentStatus>> 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> 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> resourceList(io.fabric8.kubernetes.api.model.KubernetesResourceList is)
Description copied from interface:KubernetesClient
KubernetesResourceList operations- Specified by:
resourceList
in interfaceKubernetesClient
- Parameters:
is
- KubernetesResourceList object containing kubernetes resource items- Returns:
- operations object for KubernetesResourceList
-
resourceList
public NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> 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> 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> 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> resource(io.fabric8.kubernetes.api.model.HasMetadata is)
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:
is
- Kubernetes resource object- Returns:
- operations object for Kubernetes resource
-
resource
public NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> 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
-
endpoints
public MixedOperation<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsList,Resource<io.fabric8.kubernetes.api.model.Endpoints>> 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
-
bindings
public MixedOperation<io.fabric8.kubernetes.api.model.Binding,io.fabric8.kubernetes.api.model.KubernetesResourceList<io.fabric8.kubernetes.api.model.Binding>,Resource<io.fabric8.kubernetes.api.model.Binding>> 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
-
pods
public MixedOperation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource<io.fabric8.kubernetes.api.model.Pod>> 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
-
services
public MixedOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>> 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.
-
namespaces
public NonNamespaceOperation<io.fabric8.kubernetes.api.model.Namespace,io.fabric8.kubernetes.api.model.NamespaceList,Resource<io.fabric8.kubernetes.api.model.Namespace>> 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
-
serviceAccounts
public MixedOperation<io.fabric8.kubernetes.api.model.ServiceAccount,io.fabric8.kubernetes.api.model.ServiceAccountList,Resource<io.fabric8.kubernetes.api.model.ServiceAccount>> 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,Resource<io.fabric8.kubernetes.api.model.APIService>> 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
-
persistentVolumes
public NonNamespaceOperation<io.fabric8.kubernetes.api.model.PersistentVolume,io.fabric8.kubernetes.api.model.PersistentVolumeList,Resource<io.fabric8.kubernetes.api.model.PersistentVolume>> 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.
-
resourceQuotas
public MixedOperation<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaList,Resource<io.fabric8.kubernetes.api.model.ResourceQuota>> 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.
-
lists
public KubernetesListMixedOperation 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,Resource<io.fabric8.kubernetes.api.model.ConfigMap>> 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,Resource<io.fabric8.kubernetes.api.model.LimitRange>> 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.
-
nodes
public NonNamespaceOperation<io.fabric8.kubernetes.api.model.Node,io.fabric8.kubernetes.api.model.NodeList,Resource<io.fabric8.kubernetes.api.model.Node>> 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
-
persistentVolumeClaims
public MixedOperation<io.fabric8.kubernetes.api.model.PersistentVolumeClaim,io.fabric8.kubernetes.api.model.PersistentVolumeClaimList,Resource<io.fabric8.kubernetes.api.model.PersistentVolumeClaim>> 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.
-
replicationControllers
public MixedOperation<io.fabric8.kubernetes.api.model.ReplicationController,io.fabric8.kubernetes.api.model.ReplicationControllerList,RollableScalableResource<io.fabric8.kubernetes.api.model.ReplicationController>> 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.
-
secrets
public MixedOperation<io.fabric8.kubernetes.api.model.Secret,io.fabric8.kubernetes.api.model.SecretList,Resource<io.fabric8.kubernetes.api.model.Secret>> 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.
-
rootPaths
public io.fabric8.kubernetes.api.model.RootPaths rootPaths()
- Specified by:
rootPaths
in interfaceClient
- Overrides:
rootPaths
in classBaseClient
-
extensions
public ExtensionsAPIGroupDSL 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
public VersionInfo getVersion()
Description copied from interface:KubernetesClient
Get Kubernetes API server version- Specified by:
getVersion
in interfaceKubernetesClient
- Returns:
- VersionInfo object containing versioning information
-
v1
public V1APIGroupDSL 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
public AdmissionRegistrationAPIGroupDSL 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
public AppsAPIGroupDSL 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
public AutoscalingAPIGroupDSL 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
-
scheduling
public SchedulingAPIGroupDSL 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
-
network
public NetworkAPIGroupDSL 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
public StorageAPIGroupDSL 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
public BatchAPIGroupDSL 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
public MetricAPIGroupDSL top()
Description copied from interface:KubernetesClient
API entrypoint for kubernetes metrics- Specified by:
top
in interfaceKubernetesClient
- Returns:
- MetricAPIGroupDSL which offers for fetching metrics
-
policy
public PolicyAPIGroupDSL 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
public RbacAPIGroupDSL 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
-
apiextensions
public ApiextensionsAPIGroupDSL apiextensions()
Description copied from interface:KubernetesClient
API entrypoint for apiextensions resources. Currently support both v1 and v1beta1- Specified by:
apiextensions
in interfaceKubernetesClient
- Returns:
- ApiextensionsAPIGroupDSL which routes to v1 or v1beta1
-
certificateSigningRequests
public NonNamespaceOperation<io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequest,io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequestList,Resource<io.fabric8.kubernetes.api.model.certificates.v1beta1.CertificateSigningRequest>> certificateSigningRequests()
Description copied from interface:KubernetesClient
API entrypoint for using CertificateSigningRequest(certificates.k8s.io/v1beta1)- Specified by:
certificateSigningRequests
in interfaceKubernetesClient
- Returns:
NonNamespaceOperation
for CertificateSigningRequest class
-
certificates
public CertificatesAPIGroupDSL certificates()
Description copied from interface:KubernetesClient
API entrypoint for certificates.k8s.io APIGroup- Specified by:
certificates
in interfaceKubernetesClient
- Returns:
CertificatesAPIGroupDSL
for Certificate API resources
-
authorization
public AuthorizationAPIGroupDSL authorization()
Description copied from interface:KubernetesClient
Authorization operations. (authorization.k8s.io/v1 and authorization.k8s.io/v1beta1)- Specified by:
authorization
in interfaceKubernetesClient
- Returns:
- AuthorizationAPIGroupDSL object for dealing with Authorization objects
-
tokenReviews
public Createable<io.fabric8.kubernetes.api.model.authentication.TokenReview> tokenReviews()
Description copied from interface:KubernetesClient
API for creating authentication.k8s.io/v1 TokenReviews- Specified by:
tokenReviews
in interfaceKubernetesClient
- Returns:
- CreateOnlyResourceOperations instance for creating TokenReview object
-
customResources
public <T extends CustomResource> MixedOperation<T,io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,Resource<T>> customResources(Class<T> resourceType)
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.Note: your CustomResource POJO (T in this context) must implement
Namespaced
if it is a namespace-scoped resource.- Specified by:
customResources
in interfaceKubernetesClient
- Type Parameters:
T
- T type represents CustomResource type. If it's a namespaced resource, it must implementNamespaced
- Parameters:
resourceType
- Class for CustomResource- Returns:
- returns a MixedOperation object with which you can do basic CustomResource operations
-
customResources
public <T extends CustomResource,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> MixedOperation<T,L,Resource<T>> customResources(Class<T> resourceType, Class<L> listClass)
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.Note: your CustomResource POJO (T in this context) must implement
Namespaced
if it is a namespace-scoped resource.- Specified by:
customResources
in interfaceKubernetesClient
- Type Parameters:
T
- T type represents CustomResource type. If it's a namespace-scoped resource, it must implementNamespaced
L
- L type represents CustomResourceList type- Parameters:
resourceType
- Class for CustomResourcelistClass
- Class for list object for CustomResource- 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>> MixedOperation<T,L,Resource<T>> customResources(CustomResourceDefinitionContext crdContext, Class<T> resourceType, Class<L> listClass)
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.Note: your CustomResource POJO (T in this context) must implement io.fabric8.kubernetes.api.model.Namespaced if it is a Namespaced scoped resource.
- Specified by:
customResources
in interfaceKubernetesClient
- Type Parameters:
T
- T type represents CustomResource type. If it's Namespaced resource, it must implement io.fabric8.kubernetes.api.model.NamespacedL
- L type represents CustomResourceList type- Parameters:
crdContext
- CustomResourceDefinitionContext describes the core fields used to search for CustomResourcesresourceType
- Class for CustomResourcelistClass
- Class for list object for CustomResource- Returns:
- returns a MixedOperation object with which you can do basic CustomResource operations
-
discovery
public DiscoveryAPIGroupDSL discovery()
Description copied from interface:KubernetesClient
Discovery API entrypoint for APIGroup discovery.k8s.io- Specified by:
discovery
in interfaceKubernetesClient
- Returns:
DiscoveryAPIGroupDSL
with which you can access Discovery API resource objects
-
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.
-
informers
public SharedInformerFactory 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
public SharedInformerFactory informers(ExecutorService executorService)
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
public LeaderElectorBuilder<NamespacedKubernetesClient> leaderElector()
Description copied from interface:KubernetesClient
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,Resource<io.fabric8.kubernetes.api.model.coordination.v1.Lease>> leases()
Description copied from interface:KubernetesClient
API entrypoint forLease
related operations. Lease (coordination.k8s.io/v1)- Specified by:
leases
in interfaceKubernetesClient
- Returns:
- MixedOperation object for Lease related operations.
-
getApiVersion
public String getApiVersion()
- Specified by:
getApiVersion
in interfaceClient
- Overrides:
getApiVersion
in classBaseClient
-
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interfaceClient
- Overrides:
getNamespace
in classBaseClient
-
getMasterUrl
public URL getMasterUrl()
- Specified by:
getMasterUrl
in interfaceClient
- Overrides:
getMasterUrl
in classBaseClient
-
adapt
public <C> C adapt(Class<C> type)
- Specified by:
adapt
in interfaceClient
- Overrides:
adapt
in classBaseClient
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceClient
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classBaseClient
-
getConfiguration
public Config getConfiguration()
- Specified by:
getConfiguration
in interfaceConfigAware
- Overrides:
getConfiguration
in classBaseClient
-
bindResourceHandler
public void bindResourceHandler(ResourceHandler resourceHandler)
-
unbindResourceHandler
public void unbindResourceHandler(ResourceHandler resourceHandler)
-
bindExtensionAdapter
public void bindExtensionAdapter(ExtensionAdapter adapter)
-
unbindExtensionAdapter
public void unbindExtensionAdapter(ExtensionAdapter adapter)
-
bindOAuthTokenProvider
public void bindOAuthTokenProvider(OAuthTokenProvider provider)
-
unbindOAuthTokenProvider
public void unbindOAuthTokenProvider(OAuthTokenProvider provider)
-
inAnyNamespace
public NamespacedKubernetesClient inAnyNamespace()
- Specified by:
inAnyNamespace
in interfaceAnyNamespaceable<NamespacedKubernetesClient>
-
inNamespace
public NamespacedKubernetesClient inNamespace(String name)
- Specified by:
inNamespace
in interfaceNamespaceable<NamespacedKubernetesClient>
-
withRequestConfig
public FunctionCallable<NamespacedKubernetesClient> withRequestConfig(RequestConfig requestConfig)
- Specified by:
withRequestConfig
in interfaceRequestConfigurable<NamespacedKubernetesClient>
-
run
public RunOperations run()
Description copied from interface:KubernetesClient
Run a Pod (core/v1)- Specified by:
run
in interfaceKubernetesClient
- Returns:
- returns
RunOperations
that allows you to run a pod based on few parameters(e.g. name, image etc)
-
runtimeClasses
public NonNamespaceOperation<io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClass,io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClassList,Resource<io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClass>> runtimeClasses()
Description copied from interface:KubernetesClient
API entrypoint for RuntimeClass (node.k8s.io/v1beta1)- Specified by:
runtimeClasses
in interfaceKubernetesClient
- Returns:
NonNamespaceOperation
for RuntimeClass
-
-