Search in sources :

Example 6 with RbacAPIGroupDSL

use of io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL in project strimzi-kafka-operator by strimzi.

the class RoleOperatorTest method mocker.

@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
    RbacAPIGroupDSL mockRbac = mock(RbacAPIGroupDSL.class);
    when(mockClient.rbac()).thenReturn(mockRbac);
    when(mockClient.rbac().roles()).thenReturn(op);
}
Also used : RbacAPIGroupDSL(io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL)

Example 7 with RbacAPIGroupDSL

use of io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL in project strimzi by strimzi.

the class RoleBindingOperatorTest method mocker.

@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
    RbacAPIGroupDSL mockRbac = mock(RbacAPIGroupDSL.class);
    when(mockClient.rbac()).thenReturn(mockRbac);
    when(mockClient.rbac().roleBindings()).thenReturn(op);
}
Also used : RbacAPIGroupDSL(io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL)

Example 8 with RbacAPIGroupDSL

use of io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL in project strimzi by strimzi.

the class ClusterRoleOperatorTest method mocker.

@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
    RbacAPIGroupDSL mockRbac = mock(RbacAPIGroupDSL.class);
    when(mockClient.rbac()).thenReturn(mockRbac);
    when(mockRbac.clusterRoles()).thenReturn(op);
}
Also used : RbacAPIGroupDSL(io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL)

Example 9 with RbacAPIGroupDSL

use of io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL in project strimzi-kafka-operator by strimzi.

the class ClusterRoleBindingOperatorTest method mocker.

@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
    RbacAPIGroupDSL mockRbac = mock(RbacAPIGroupDSL.class);
    when(mockClient.rbac()).thenReturn(mockRbac);
    when(mockRbac.clusterRoleBindings()).thenReturn(op);
}
Also used : RbacAPIGroupDSL(io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL)

Example 10 with RbacAPIGroupDSL

use of io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL in project strimzi-kafka-operator by strimzi.

the class ClusterRoleOperatorTest method mocker.

@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
    RbacAPIGroupDSL mockRbac = mock(RbacAPIGroupDSL.class);
    when(mockClient.rbac()).thenReturn(mockRbac);
    when(mockRbac.clusterRoles()).thenReturn(op);
}
Also used : RbacAPIGroupDSL(io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL)

Aggregations

RbacAPIGroupDSL (io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL)10 SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)2 KubernetesResource (io.fabric8.kubernetes.api.model.KubernetesResource)2 PersistentVolumeClaim (io.fabric8.kubernetes.api.model.PersistentVolumeClaim)2 PersistentVolumeClaimList (io.fabric8.kubernetes.api.model.PersistentVolumeClaimList)2 Pod (io.fabric8.kubernetes.api.model.Pod)2 PodList (io.fabric8.kubernetes.api.model.PodList)2 CustomResourceDefinition (io.fabric8.kubernetes.api.model.apiextensions.v1.CustomResourceDefinition)2 CustomResourceDefinitionList (io.fabric8.kubernetes.api.model.apiextensions.v1.CustomResourceDefinitionList)2 StatefulSet (io.fabric8.kubernetes.api.model.apps.StatefulSet)2 StatefulSetList (io.fabric8.kubernetes.api.model.apps.StatefulSetList)2 CustomResource (io.fabric8.kubernetes.client.CustomResource)2 KubernetesClient (io.fabric8.kubernetes.client.KubernetesClient)2 V1ApiextensionAPIGroupDSL (io.fabric8.kubernetes.client.V1ApiextensionAPIGroupDSL)2 V1NetworkAPIGroupDSL (io.fabric8.kubernetes.client.V1NetworkAPIGroupDSL)2 V1beta1NetworkAPIGroupDSL (io.fabric8.kubernetes.client.V1beta1NetworkAPIGroupDSL)2 ApiextensionsAPIGroupDSL (io.fabric8.kubernetes.client.dsl.ApiextensionsAPIGroupDSL)2 AppsAPIGroupDSL (io.fabric8.kubernetes.client.dsl.AppsAPIGroupDSL)2 CreateOrReplaceable (io.fabric8.kubernetes.client.dsl.CreateOrReplaceable)2 NetworkAPIGroupDSL (io.fabric8.kubernetes.client.dsl.NetworkAPIGroupDSL)2