Class NamespacedKubernetesClientAdapter<N extends NamespacedKubernetesClient>

    • Constructor Detail

      • NamespacedKubernetesClientAdapter

        public NamespacedKubernetesClientAdapter​(Class<N> type)
    • Method Detail

      • resources

        public <T extends io.fabric8.kubernetes.api.model.HasMetadata,​L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> MixedOperation<T,​L,​Resource<T>> resources​(Class<T> resourceType,
                                                                                                                                                                                                       Class<L> listClass)
        Description copied from interface: Client
        Typed API for managing resources. Any properly annotated POJO can be utilized as a resource.

        Note: your resource POJO (T in this context) must implement Namespaced if it is a namespace-scoped resource.

        Specified by:
        resources in interface Client
        Type Parameters:
        T - represents resource type. If it's a namespaced resource, it must implement Namespaced
        L - represents resource list type
        Parameters:
        resourceType - Class for resource
        Returns:
        returns a MixedOperation object with which you can do basic resource operations. If the class is a known type the dsl operation logic will be used.
      • 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 interface KubernetesClient
        Returns:
        NonNamespaceOperation for CertificateSigningRequest class
      • resources

        public <T extends io.fabric8.kubernetes.api.model.HasMetadata> MixedOperation<T,​io.fabric8.kubernetes.api.model.KubernetesResourceList<T>,​Resource<T>> resources​(Class<T> resourceType)
        Description copied from interface: KubernetesClient
        Typed API for managing resources. Any properly annotated POJO can be utilized as a resource.

        Note: your resource POJO (T in this context) must implement Namespaced if it is a namespace-scoped resource.

        Specified by:
        resources in interface KubernetesClient
        Type Parameters:
        T - T type represents resource type. If it's a namespaced resource, it must implement Namespaced
        Parameters:
        resourceType - Class for resource
        Returns:
        returns a MixedOperation object with which you can do basic resource operations. If the class is a known type the dsl operation logic will be used.
      • genericKubernetesResources

        public MixedOperation<io.fabric8.kubernetes.api.model.GenericKubernetesResource,​io.fabric8.kubernetes.api.model.GenericKubernetesResourceList,​Resource<io.fabric8.kubernetes.api.model.GenericKubernetesResource>> genericKubernetesResources​(ResourceDefinitionContext context)
        Description copied from interface: KubernetesClient
        Semi-Typed API for managing GenericKubernetesResources which can represent any resource.
        Specified by:
        genericKubernetesResources in interface KubernetesClient
        Parameters:
        context - ResourceDefinitionContext describes the core metadata
        Returns:
        returns a MixedOperation object with which you can do basic operations
        See Also:
        if you don't want to supply a complete
      • genericKubernetesResources

        public MixedOperation<io.fabric8.kubernetes.api.model.GenericKubernetesResource,​io.fabric8.kubernetes.api.model.GenericKubernetesResourceList,​Resource<io.fabric8.kubernetes.api.model.GenericKubernetesResource>> genericKubernetesResources​(String apiVersion,
                                                                                                                                                                                                                                                                  String kind)
        Description copied from interface: KubernetesClient
        Semi-typed API for managing resources. Will perform a look-up if needed for additional metadata about the resource.
        Specified by:
        genericKubernetesResources in interface KubernetesClient
        Parameters:
        apiVersion - the api/version
        kind - the resource kind
        Returns:
        returns a MixedOperation object with which you can do basic resource operations.
      • extensions

        public ExtensionsAPIGroupDSL extensions()
        Description copied from interface: KubernetesClient
        Extensions API entrypoint for APIGroup extensions/v1beta1
        Specified by:
        extensions in interface KubernetesClient
        Returns:
        ExtensionsAPIGroupDSL with which you can access entrypoints for extension objects
      • apps

        public AppsAPIGroupDSL apps()
        Description copied from interface: KubernetesClient
        API entrypoint for kubernetes resources with APIGroup apps/v1
        Specified by:
        apps in interface KubernetesClient
        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 interface KubernetesClient
        Returns:
        AutoScalingAPIGroupDSL which offers entrypoints to specific resources in this API group
      • network

        public NetworkAPIGroupDSL network()
        Description copied from interface: KubernetesClient
        API entrypoint for kubernetes resources with APIGroup networking/v1
        Specified by:
        network in interface KubernetesClient
        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 interface KubernetesClient
        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 interface KubernetesClient
        Returns:
        BatchAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
      • policy

        public PolicyAPIGroupDSL policy()
        Description copied from interface: KubernetesClient
        API entrypoint for kubernetes resources with APIGroup policy/v1beta1
        Specified by:
        policy in interface KubernetesClient
        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 interface KubernetesClient
        Returns:
        RbacAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
      • scheduling

        public SchedulingAPIGroupDSL scheduling()
        Description copied from interface: KubernetesClient
        API entrypoint for kubernetes resources with APIGroup scheduling/v1beta1
        Specified by:
        scheduling in interface KubernetesClient
        Returns:
        SchedulingAPIGroupDSL which offers entrypoint to specific resources in this APIGroup
      • componentstatuses

        public NonNamespaceOperation<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 interface KubernetesClient
        Returns:
        MixedOperation object with which you can do basic operations for ComponentStatus
      • resource

        public <T extends io.fabric8.kubernetes.api.model.HasMetadata> NamespaceableResource<T> resource​(T 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 interface KubernetesClient
        Type Parameters:
        T - type of Kubernetes resource
        Parameters:
        is - Kubernetes resource object
        Returns:
        operations object for Kubernetes resource
      • resource

        public NamespaceableResource<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 interface KubernetesClient
        Parameters:
        s - a Kubernetes resource object as string
        Returns:
        operations object for Kubernetes resource
      • resource

        public NamespaceableResource<io.fabric8.kubernetes.api.model.HasMetadata> resource​(InputStream is)
        Description copied from interface: KubernetesClient
        KubernetesResource operations. You can pass any Kubernetes resource as an InputStream object and perform all operations
        Specified by:
        resource in interface KubernetesClient
        Parameters:
        is - the InputStream containing a serialized Kubernetes resource.
        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>,​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 interface KubernetesClient
        Returns:
        MixedOperation object for doing operations for Binding
      • 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 interface KubernetesClient
        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 interface: KubernetesClient
        API entrypoint for namespace related operations in Kubernetes. Namespace (core/v1)
        Specified by:
        namespaces in interface KubernetesClient
        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 interface: KubernetesClient
        API entrypoint for node related operations in Kubernetes. Node (core/v1)
        Specified by:
        nodes in interface KubernetesClient
        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 interface: KubernetesClient
        API entrypoint for PersistentVolume related operations. PersistentVolume (core/v1)
        Specified by:
        persistentVolumes in interface KubernetesClient
        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 interface: KubernetesClient
        API entrypoint for PersistentVolumeClaim related operations. PersistentVolumeClaim (core/v1)
        Specified by:
        persistentVolumeClaims in interface KubernetesClient
        Returns:
        MixedOperation object for PersistentVolumeClaim related operations.
      • pods

        public MixedOperation<io.fabric8.kubernetes.api.model.Pod,​io.fabric8.kubernetes.api.model.PodList,​PodResource> pods()
        Description copied from interface: KubernetesClient
        API entrypoint for Pod related operations. Pod (core/v1)
        Specified by:
        pods in interface KubernetesClient
        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 interface: KubernetesClient
        API entrypoint for ReplicationController related operations. ReplicationController (core/v1)
        Specified by:
        replicationControllers in interface KubernetesClient
        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 interface: KubernetesClient
        API entrypoint for ResourceQuota related operations. ResourceQuota (core/v1)
        Specified by:
        resourceQuotas in interface KubernetesClient
        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 interface KubernetesClient
        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 interface: KubernetesClient
        API entrypoint for Service related operations. Service (core/v1)
        Specified by:
        services in interface KubernetesClient
        Returns:
        MixedOperation object for Service related operations.
      • serviceAccounts

        public MixedOperation<io.fabric8.kubernetes.api.model.ServiceAccount,​io.fabric8.kubernetes.api.model.ServiceAccountList,​ServiceAccountResource> serviceAccounts()
        Description copied from interface: KubernetesClient
        API entrypoint for ServiceAccount related operations. ServiceAccount (core/v1)
        Specified by:
        serviceAccounts in interface KubernetesClient
        Returns:
        MixedOperation object for ServiceAccount related operations.
      • apiServices

        public NonNamespaceOperation<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 interface KubernetesClient
        Returns:
        MixedOperation object for APIService related operations
      • 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 interface KubernetesClient
        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 interface KubernetesClient
        Returns:
        MixedOperation object for LimitRange related operations.
      • tokenReviews

        public InOutCreateable<io.fabric8.kubernetes.api.model.authentication.TokenReview,​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 interface KubernetesClient
        Returns:
        InOutCreateable instance for creating TokenReview object
      • 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.

        Each call to this method returns a new factory.

        Specified by:
        informers in interface KubernetesClient
        Returns:
        SharedInformerFactory object
      • 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 for Lease related operations. Lease (coordination.k8s.io/v1)
        Specified by:
        leases in interface KubernetesClient
        Returns:
        MixedOperation object for Lease related operations.
      • 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 interface KubernetesClient
        Returns:
        V1APIGroupDSL DSL object for core v1 resources