new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
private static void initializeGenericKubernetesApiClients() {
    // Invocation parameters aren't changing so create them as statics
    configMapClient =
            new GenericKubernetesApi<>(
                    V1ConfigMap.class,  // the api type class
                    V1ConfigMapList.class, // the api list type class
                    "", // the api group
                    "v1", // the api version
                    "configmaps", // the resource plural
                    apiClient //the api client
            );

    crdClient =
            new GenericKubernetesApi<>(
                    Domain.class,  // the api type class
                    DomainList.class, // the api list type class
                    DOMAIN_GROUP, // the api group
                    DOMAIN_VERSION, // the api version
                    DOMAIN_PLURAL, // the resource plural
                    apiClient //the api client
            );

    deploymentClient =
            new GenericKubernetesApi<>(
                    V1Deployment.class,  // the api type class
                    V1DeploymentList.class, // the api list type class
                    "", // the api group
                    "v1", // the api version
                    "deployments", // the resource plural
                    apiClient //the api client
            );

    jobClient =
            new GenericKubernetesApi<>(
                    V1Job.class,  // the api type class
                    V1JobList.class, // the api list type class
                    "batch", // the api group
                    "v1", // the api version
                    "jobs", // the resource plural
                    apiClient //the api client
            );

    namespaceClient =
            new GenericKubernetesApi<>(
                    V1Namespace.class, // the api type class
                    V1NamespaceList.class, // the api list type class
                    "", // the api group
                    "v1", // the api version
                    "namespaces", // the resource plural
                    apiClient //the api client
            );

    podClient =
            new GenericKubernetesApi<>(
                    V1Pod.class,  // the api type class
                    V1PodList.class, // the api list type class
                    "", // the api group
                    "v1", // the api version
                    "pods", // the resource plural
                    apiClient //the api client
            );

    pvClient =
            new GenericKubernetesApi<>(
                    V1PersistentVolume.class,  // the api type class
                    V1PersistentVolumeList.class, // the api list type class
                    "", // the api group
                    "v1", // the api version
                    "persistentvolumes", // the resource plural
                    apiClient //the api client
            );

    pvcClient =
            new GenericKubernetesApi<>(
                    V1PersistentVolumeClaim.class,  // the api type class
                    V1PersistentVolumeClaimList.class, // the api list type class
                    "", // the api group
                    "v1", // the api version
                    "persistentvolumeclaims", // the resource plural
                    apiClient //the api client
            );

    rsClient =
            new GenericKubernetesApi<>(
                    V1ReplicaSet.class, // the api type class
                    V1ReplicaSetList.class, // the api list type class
                    "", // the api group
                    "v1", // the api version
                    "replicasets", // the resource plural
                    apiClient //the api client
            );

    roleBindingClient =
            new GenericKubernetesApi<>(
                    V1ClusterRoleBinding.class, // the api type class
                    V1ClusterRoleBindingList.class, // the api list type class
                    "rbac.authorization.k8s.io", // the api group
                    "v1", // the api version
                    "clusterrolebindings", // the resource plural
                    apiClient //the api client
            );

    secretClient =
            new GenericKubernetesApi<>(
                    V1Secret.class,  // the api type class
                    V1SecretList.class, // the api list type class
                    "", // the api group
                    "v1", // the api version
                    "secrets", // the resource plural
                    apiClient //the api client
            );

    serviceClient =
            new GenericKubernetesApi<>(
                    V1Service.class,  // the api type class
                    V1ServiceList.class, // the api list type class
                    "", // the api group
                    "v1", // the api version
                    "services", // the resource plural
                    apiClient //the api client
            );

    serviceAccountClient =
            new GenericKubernetesApi<>(
                    V1ServiceAccount.class,  // the api type class
                    V1ServiceAccountList.class, // the api list type class
                    "", // the api group
                    "v1", // the api version
                    "serviceaccounts", // the resource plural
                    apiClient //the api client
            );
    deleteOptions = new DeleteOptions();
    deleteOptions.setGracePeriodSeconds(0L);
    deleteOptions.setPropagationPolicy(FOREGROUND);
  }
/**
   * Create static instances of GenericKubernetesApi clients.
   */
Create static instances of GenericKubernetesApi clients.
Create static instances of GenericKubernetesApi clients .
private static void initializeGenericKubernetesApiClients() {
    configMapClient =
            new GenericKubernetesApi<>(
                    V1ConfigMap.class,  
                    V1ConfigMapList.class, 
                    "", 
                    "v1", 
                    "configmaps", 
                    apiClient 
            );
    crdClient =
            new GenericKubernetesApi<>(
                    Domain.class,  
                    DomainList.class, 
                    DOMAIN_GROUP, 
                    DOMAIN_VERSION, 
                    DOMAIN_PLURAL, 
                    apiClient 
            );
    deploymentClient =
            new GenericKubernetesApi<>(
                    V1Deployment.class,  
                    V1DeploymentList.class, 
                    "", 
                    "v1", 
                    "deployments", 
                    apiClient 
            );
    jobClient =
            new GenericKubernetesApi<>(
                    V1Job.class,  
                    V1JobList.class, 
                    "batch", 
                    "v1", 
                    "jobs", 
                    apiClient 
            );
    namespaceClient =
            new GenericKubernetesApi<>(
                    V1Namespace.class, 
                    V1NamespaceList.class, 
                    "", 
                    "v1", 
                    "namespaces", 
                    apiClient 
            );
    podClient =
            new GenericKubernetesApi<>(
                    V1Pod.class,  
                    V1PodList.class, 
                    "", 
                    "v1", 
                    "pods", 
                    apiClient 
            );
    pvClient =
            new GenericKubernetesApi<>(
                    V1PersistentVolume.class,  
                    V1PersistentVolumeList.class, 
                    "", 
                    "v1", 
                    "persistentvolumes", 
                    apiClient 
            );
    pvcClient =
            new GenericKubernetesApi<>(
                    V1PersistentVolumeClaim.class,  
                    V1PersistentVolumeClaimList.class, 
                    "", 
                    "v1", 
                    "persistentvolumeclaims", 
                    apiClient 
            );
    rsClient =
            new GenericKubernetesApi<>(
                    V1ReplicaSet.class, 
                    V1ReplicaSetList.class, 
                    "", 
                    "v1", 
                    "replicasets", 
                    apiClient 
            );
    roleBindingClient =
            new GenericKubernetesApi<>(
                    V1ClusterRoleBinding.class, 
                    V1ClusterRoleBindingList.class, 
                    "rbac.authorization.k8s.io", 
                    "v1", 
                    "clusterrolebindings", 
                    apiClient 
            );
    secretClient =
            new GenericKubernetesApi<>(
                    V1Secret.class,  
                    V1SecretList.class, 
                    "", 
                    "v1", 
                    "secrets", 
                    apiClient 
            );
    serviceClient =
            new GenericKubernetesApi<>(
                    V1Service.class,  
                    V1ServiceList.class, 
                    "", 
                    "v1", 
                    "services", 
                    apiClient 
            );
    serviceAccountClient =
            new GenericKubernetesApi<>(
                    V1ServiceAccount.class,  
                    V1ServiceAccountList.class, 
                    "", 
                    "v1", 
                    "serviceaccounts", 
                    apiClient 
            );
    deleteOptions = new DeleteOptions();
    deleteOptions.setGracePeriodSeconds(0L);
    deleteOptions.setPropagationPolicy(FOREGROUND);
  }
private static void initializeGenericKubernetesApiClients ( ) { configMapClient = new GenericKubernetesApi < > ( V1ConfigMap . class , V1ConfigMapList . class , "" , "v1" , "configmaps" , apiClient ) ; crdClient = new GenericKubernetesApi < > ( Domain . class , DomainList . class , DOMAIN_GROUP , DOMAIN_VERSION , DOMAIN_PLURAL , apiClient ) ; deploymentClient = new GenericKubernetesApi < > ( V1Deployment . class , V1DeploymentList . class , "" , "v1" , "deployments" , apiClient ) ; jobClient = new GenericKubernetesApi < > ( V1Job . class , V1JobList . class , "batch" , "v1" , "jobs" , apiClient ) ; namespaceClient = new GenericKubernetesApi < > ( V1Namespace . class , V1NamespaceList . class , "" , "v1" , "namespaces" , apiClient ) ; podClient = new GenericKubernetesApi < > ( V1Pod . class , V1PodList . class , "" , "v1" , "pods" , apiClient ) ; pvClient = new GenericKubernetesApi < > ( V1PersistentVolume . class , V1PersistentVolumeList . class , "" , "v1" , "persistentvolumes" , apiClient ) ; pvcClient = new GenericKubernetesApi < > ( V1PersistentVolumeClaim . class , V1PersistentVolumeClaimList . class , "" , "v1" , "persistentvolumeclaims" , apiClient ) ; rsClient = new GenericKubernetesApi < > ( V1ReplicaSet . class , V1ReplicaSetList . class , "" , "v1" , "replicasets" , apiClient ) ; roleBindingClient = new GenericKubernetesApi < > ( V1ClusterRoleBinding . class , V1ClusterRoleBindingList . class , "rbac.authorization.k8s.io" , "v1" , "clusterrolebindings" , apiClient ) ; secretClient = new GenericKubernetesApi < > ( V1Secret . class , V1SecretList . class , "" , "v1" , "secrets" , apiClient ) ; serviceClient = new GenericKubernetesApi < > ( V1Service . class , V1ServiceList . class , "" , "v1" , "services" , apiClient ) ; serviceAccountClient = new GenericKubernetesApi < > ( V1ServiceAccount . class , V1ServiceAccountList . class , "" , "v1" , "serviceaccounts" , apiClient ) ; deleteOptions = new DeleteOptions ( ) ; deleteOptions . setGracePeriodSeconds ( 0L ) ; deleteOptions . setPropagationPolicy ( FOREGROUND ) ; }
Create static instances of GenericKubernetesApi clients.
Create static instances of GenericKubernetesApi clients .
// Invocation parameters aren't changing so create them as statics // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client // the api type class // the api list type class // the api group // the api version // the resource plural //the api client