Package io.fabric8.kubernetes.client
Class AutoAdaptableKubernetesClient
- java.lang.Object
-
- io.fabric8.kubernetes.client.BaseClient
-
- io.fabric8.kubernetes.client.DefaultKubernetesClient
-
- io.fabric8.kubernetes.client.AutoAdaptableKubernetesClient
-
- All Implemented Interfaces:
Client
,ConfigAware
,AnyNamespaceable<NamespacedKubernetesClient>
,Namespaceable<NamespacedKubernetesClient>
,RequestConfigurable<NamespacedKubernetesClient>
,GenericKubernetesClient<NamespacedKubernetesClient>
,HttpClientAware
,KubernetesClient
,NamespacedKubernetesClient
,Closeable
,AutoCloseable
public class AutoAdaptableKubernetesClient extends DefaultKubernetesClient
-
-
Field Summary
-
Fields inherited from class io.fabric8.kubernetes.client.BaseClient
httpClient
-
-
Constructor Summary
Constructors Constructor Description AutoAdaptableKubernetesClient()
AutoAdaptableKubernetesClient(Config config)
AutoAdaptableKubernetesClient(String masterUrl)
AutoAdaptableKubernetesClient(okhttp3.OkHttpClient httpClient, Config config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KubernetesClient
adapt(KubernetesClient initial)
<C> C
adapt(Class<C> type)
AdmissionRegistrationAPIGroupDSL
admissionRegistration()
API entrypoint for kubernetes resources with APIGroup admissionregistration.k8s.io/v1beta1AppsAPIGroupDSL
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
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.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()
NamespacedKubernetesClient
inNamespace(String namespace)
<C> Boolean
isAdaptable(Class<C> type)
Checks if the client can be adapted to an other client type.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.KubernetesResourceList is)
KubernetesResourceList operationsParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata>
resourceList(String s)
Load a Kubernetes list objectMixedOperation<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)MixedOperation<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/v1-
Methods inherited from class io.fabric8.kubernetes.client.DefaultKubernetesClient
apiextensions, apiServices, bindings, certificates, certificateSigningRequests, customResource, customResources, customResources, customResources, fromConfig, fromConfig, getVersion, informers, informers, leaderElector, leases, resourceList, resourceList, runtimeClasses, scheduling, tokenReviews, top, v1, withRequestConfig
-
Methods inherited from class io.fabric8.kubernetes.client.BaseClient
getHttpClient, 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
supportsApiPath
-
-
-
-
Constructor Detail
-
AutoAdaptableKubernetesClient
public AutoAdaptableKubernetesClient()
-
AutoAdaptableKubernetesClient
public AutoAdaptableKubernetesClient(okhttp3.OkHttpClient httpClient, Config config)
-
AutoAdaptableKubernetesClient
public AutoAdaptableKubernetesClient(Config config)
-
AutoAdaptableKubernetesClient
public AutoAdaptableKubernetesClient(String masterUrl)
-
-
Method Detail
-
adapt
public static KubernetesClient adapt(KubernetesClient initial)
-
inNamespace
public NamespacedKubernetesClient inNamespace(String namespace)
Description copied from class:DefaultKubernetesClient
- Specified by:
inNamespace
in interfaceNamespaceable<NamespacedKubernetesClient>
- Overrides:
inNamespace
in classDefaultKubernetesClient
-
inAnyNamespace
public NamespacedKubernetesClient inAnyNamespace()
Description copied from class:DefaultKubernetesClient
- Specified by:
inAnyNamespace
in interfaceAnyNamespaceable<NamespacedKubernetesClient>
- Overrides:
inAnyNamespace
in classDefaultKubernetesClient
-
extensions
public ExtensionsAPIGroupDSL extensions()
Description copied from class:DefaultKubernetesClient
Extensions API entrypoint for APIGroup extensions/v1beta1- Specified by:
extensions
in interfaceKubernetesClient
- Overrides:
extensions
in classDefaultKubernetesClient
- Returns:
- ExtensionsAPIGroupDSL with which you can access entrypoints for extension objects
-
getVersion
public VersionInfo getVersion()
Description copied from class:DefaultKubernetesClient
Get Kubernetes API server version- Specified by:
getVersion
in interfaceKubernetesClient
- Overrides:
getVersion
in classDefaultKubernetesClient
- Returns:
- VersionInfo object containing versioning information
-
admissionRegistration
public AdmissionRegistrationAPIGroupDSL admissionRegistration()
Description copied from class:DefaultKubernetesClient
API entrypoint for kubernetes resources with APIGroup admissionregistration.k8s.io/v1beta1- Specified by:
admissionRegistration
in interfaceKubernetesClient
- Overrides:
admissionRegistration
in classDefaultKubernetesClient
- Returns:
- AdmissionRegistrationAPIGroupDSL which offers entrypoints to specific resources in this API group
-
apps
public AppsAPIGroupDSL apps()
Description copied from class:DefaultKubernetesClient
API entrypoint for kubernetes resources with APIGroup apps/v1- Specified by:
apps
in interfaceKubernetesClient
- Overrides:
apps
in classDefaultKubernetesClient
- Returns:
- AppsAPIGroupDSL which offers entrypoints to specific resources in this API group
-
autoscaling
public AutoscalingAPIGroupDSL autoscaling()
Description copied from class:DefaultKubernetesClient
API entrypoint for kubernetes resources with APIGroup autoscaling/v2beta1- Specified by:
autoscaling
in interfaceKubernetesClient
- Overrides:
autoscaling
in classDefaultKubernetesClient
- Returns:
- AutoScalingAPIGroupDSL which offers entrypoints to specific resources in this API group
-
authorization
public AuthorizationAPIGroupDSL authorization()
Description copied from class:DefaultKubernetesClient
Authorization operations. (authorization.k8s.io/v1 and authorization.k8s.io/v1beta1)- Specified by:
authorization
in interfaceKubernetesClient
- Overrides:
authorization
in classDefaultKubernetesClient
- Returns:
- AuthorizationAPIGroupDSL object for dealing with Authorization objects
-
discovery
public DiscoveryAPIGroupDSL discovery()
Description copied from interface:KubernetesClient
Discovery API entrypoint for APIGroup discovery.k8s.io- Specified by:
discovery
in interfaceKubernetesClient
- Overrides:
discovery
in classDefaultKubernetesClient
- Returns:
DiscoveryAPIGroupDSL
with which you can access Discovery API resource objects
-
network
public NetworkAPIGroupDSL network()
Description copied from class:DefaultKubernetesClient
API entrypoint for kubernetes resources with APIGroup networking/v1- Specified by:
network
in interfaceKubernetesClient
- Overrides:
network
in classDefaultKubernetesClient
- Returns:
- NetworkAPIGroupDSL which offers entrypoints to specific resources in this APIGroup
-
storage
public StorageAPIGroupDSL storage()
Description copied from class:DefaultKubernetesClient
API entrypoint for kubernetes resources with APIGroup storage/v1- Specified by:
storage
in interfaceKubernetesClient
- Overrides:
storage
in classDefaultKubernetesClient
- Returns:
- StorageAPIGroupDSL which offers entrypoints to specific resources in this APIGroup
-
batch
public BatchAPIGroupDSL batch()
Description copied from class:DefaultKubernetesClient
API entrypoint for kubernetes resources with APIGroup batch/v1beta1- Specified by:
batch
in interfaceKubernetesClient
- Overrides:
batch
in classDefaultKubernetesClient
- Returns:
- BatchAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
-
policy
public PolicyAPIGroupDSL policy()
Description copied from class:DefaultKubernetesClient
API entrypoint for kubernetes resources with APIGroup policy/v1beta1- Specified by:
policy
in interfaceKubernetesClient
- Overrides:
policy
in classDefaultKubernetesClient
- Returns:
- PolicyAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
-
rbac
public RbacAPIGroupDSL rbac()
Description copied from class:DefaultKubernetesClient
API entrypoint for kubernetes resources with APIGroup rbac/v1- Specified by:
rbac
in interfaceKubernetesClient
- Overrides:
rbac
in classDefaultKubernetesClient
- Returns:
- RbacAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
-
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 class:DefaultKubernetesClient
API entrypoint for dealing with core/v1/ComponentStatus- Specified by:
componentstatuses
in interfaceKubernetesClient
- Overrides:
componentstatuses
in classDefaultKubernetesClient
- 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 class:DefaultKubernetesClient
Load a Kubernetes resource object from file InputStream- Specified by:
load
in interfaceKubernetesClient
- Overrides:
load
in classDefaultKubernetesClient
- 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 class:DefaultKubernetesClient
KubernetesResourceList operations- Specified by:
resourceList
in interfaceKubernetesClient
- Overrides:
resourceList
in classDefaultKubernetesClient
- Parameters:
is
- KubernetesResourceList object containing kubernetes resource items- Returns:
- operations object for KubernetesResourceList
-
resourceList
public ParameterNamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<io.fabric8.kubernetes.api.model.HasMetadata> resourceList(String s)
Description copied from class:DefaultKubernetesClient
Load a Kubernetes list object- Specified by:
resourceList
in interfaceKubernetesClient
- Overrides:
resourceList
in classDefaultKubernetesClient
- 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 class:DefaultKubernetesClient
KubernetesResource operations. You can pass any Kubernetes resource as a HasMetadata object and do all operations- Specified by:
resource
in interfaceKubernetesClient
- Overrides:
resource
in classDefaultKubernetesClient
- 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 class:DefaultKubernetesClient
KubernetesResource operations. You can pass any Kubernetes resource as string object and do all operations- Specified by:
resource
in interfaceKubernetesClient
- Overrides:
resource
in classDefaultKubernetesClient
- 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 class:DefaultKubernetesClient
API entrypoint for Endpoints with APIGroup core/v1- Specified by:
endpoints
in interfaceKubernetesClient
- Overrides:
endpoints
in classDefaultKubernetesClient
- Returns:
- MixedOperation object for doing operations for Endpoints
-
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 class:DefaultKubernetesClient
API entrypoint for namespace related operations in Kubernetes. Namespace (core/v1)- Specified by:
namespaces
in interfaceKubernetesClient
- Overrides:
namespaces
in classDefaultKubernetesClient
- Returns:
- NonNamespaceOperation object for Namespace 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 class:DefaultKubernetesClient
API entrypoint for node related operations in Kubernetes. Node (core/v1)- Specified by:
nodes
in interfaceKubernetesClient
- Overrides:
nodes
in classDefaultKubernetesClient
- Returns:
- NonNamespaceOperation object for Node 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 class:DefaultKubernetesClient
API entrypoint for PersistentVolume related operations. PersistentVolume (core/v1)- Specified by:
persistentVolumes
in interfaceKubernetesClient
- Overrides:
persistentVolumes
in classDefaultKubernetesClient
- Returns:
- NonNamespaceOperation object for PersistentVolume 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 class:DefaultKubernetesClient
API entrypoint for PersistentVolumeClaim related operations. PersistentVolumeClaim (core/v1)- Specified by:
persistentVolumeClaims
in interfaceKubernetesClient
- Overrides:
persistentVolumeClaims
in classDefaultKubernetesClient
- Returns:
- MixedOperation object for PersistentVolumeClaim related operations.
-
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 class:DefaultKubernetesClient
API entrypoint for Pod related operations. Pod (core/v1)- Specified by:
pods
in interfaceKubernetesClient
- Overrides:
pods
in classDefaultKubernetesClient
- Returns:
- MixedOperation object for Pod 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 class:DefaultKubernetesClient
API entrypoint for ReplicationController related operations. ReplicationController (core/v1)- Specified by:
replicationControllers
in interfaceKubernetesClient
- Overrides:
replicationControllers
in classDefaultKubernetesClient
- Returns:
- MixedOperation object for ReplicationController 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 class:DefaultKubernetesClient
API entrypoint for ResourceQuota related operations. ResourceQuota (core/v1)- Specified by:
resourceQuotas
in interfaceKubernetesClient
- Overrides:
resourceQuotas
in classDefaultKubernetesClient
- Returns:
- MixedOperation object for ResourceQuota 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
- Overrides:
secrets
in classDefaultKubernetesClient
- Returns:
- MixedOperation object for Secret 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 class:DefaultKubernetesClient
API entrypoint for Service related operations. Service (core/v1)- Specified by:
services
in interfaceKubernetesClient
- Overrides:
services
in classDefaultKubernetesClient
- Returns:
- MixedOperation object for Service 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 class:DefaultKubernetesClient
API entrypoint for ServiceAccount related operations. ServiceAccount (core/v1)- Specified by:
serviceAccounts
in interfaceKubernetesClient
- Overrides:
serviceAccounts
in classDefaultKubernetesClient
- Returns:
- MixedOperation object for ServiceAccount related operations.
-
lists
public KubernetesListMixedOperation lists()
Description copied from class:DefaultKubernetesClient
List related operations.- Specified by:
lists
in interfaceKubernetesClient
- Overrides:
lists
in classDefaultKubernetesClient
- 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 class:DefaultKubernetesClient
API entrypoint for ConfigMap related operations. ConfigMap (core/v1)- Specified by:
configMaps
in interfaceKubernetesClient
- Overrides:
configMaps
in classDefaultKubernetesClient
- 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 class:DefaultKubernetesClient
API entrypoint for LimitRange related operations. LimitRange (core/v1)- Specified by:
limitRanges
in interfaceKubernetesClient
- Overrides:
limitRanges
in classDefaultKubernetesClient
- Returns:
- MixedOperation object for LimitRange related operations.
-
run
public RunOperations run()
Description copied from class:DefaultKubernetesClient
Run a Pod (core/v1)- Specified by:
run
in interfaceKubernetesClient
- Overrides:
run
in classDefaultKubernetesClient
- Returns:
- returns
RunOperations
that allows you to run a pod based on few parameters(e.g. name, image etc)
-
isAdaptable
public <C> Boolean isAdaptable(Class<C> type)
Description copied from interface:Client
Checks if the client can be adapted to an other client type.- Specified by:
isAdaptable
in interfaceClient
- Overrides:
isAdaptable
in classBaseClient
- Type Parameters:
C
- The target client type.- Parameters:
type
- The target client class.- Returns:
- Returns true if a working
ExtensionAdapter
is found.
-
adapt
public <C> C adapt(Class<C> type)
- Specified by:
adapt
in interfaceClient
- Overrides:
adapt
in classBaseClient
-
getMasterUrl
public URL getMasterUrl()
- Specified by:
getMasterUrl
in interfaceClient
- Overrides:
getMasterUrl
in classBaseClient
-
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
-
rootPaths
public io.fabric8.kubernetes.api.model.RootPaths rootPaths()
- Specified by:
rootPaths
in interfaceClient
- Overrides:
rootPaths
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
-
-