Skip to content

Commit 67c666d

Browse files
committed
Remove duplicate import
Signed-off-by: Katyanna Moura <[email protected]>
1 parent b5606dd commit 67c666d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/e2e/authorization.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1818
kubelabels "k8s.io/apimachinery/pkg/labels"
1919
"k8s.io/client-go/kubernetes"
20-
clientset "k8s.io/client-go/kubernetes"
2120
"k8s.io/client-go/rest"
2221
"k8s.io/kubernetes/test/e2e/framework"
2322
testutil "k8s.io/kubernetes/test/utils"
@@ -932,7 +931,7 @@ func newClientWithRole(cluster *types.Cluster, assumeRole string) (*kubernetes.C
932931
if err != nil {
933932
return nil, err
934933
}
935-
clientset, err := kubernetes.NewForConfig(
934+
kubernetes, err := kubernetes.NewForConfig(
936935
&rest.Config{
937936
Host: aws.ToString(cluster.Endpoint),
938937
BearerToken: tok.Token,
@@ -944,7 +943,7 @@ func newClientWithRole(cluster *types.Cluster, assumeRole string) (*kubernetes.C
944943
if err != nil {
945944
return nil, err
946945
}
947-
return clientset, nil
946+
return kubernetes, nil
948947
}
949948

950949
// getEKSCluster returns the EKS cluster where its Endpoint matches the given config's Host.
@@ -989,7 +988,7 @@ func examplePod(namespace string, labels map[string]string) *corev1.Pod {
989988
}
990989

991990
// createPod starts a Pod in the specified namespace and with the specific labels.
992-
func createPod(ctx context.Context, client clientset.Interface, namespace string, labels map[string]string) (*corev1.Pod, error) {
991+
func createPod(ctx context.Context, client kubernetes.Interface, namespace string, labels map[string]string) (*corev1.Pod, error) {
993992
pod, err := client.CoreV1().Pods(namespace).Create(ctx, examplePod(namespace, labels), metav1.CreateOptions{})
994993
if err != nil {
995994
return nil, err
@@ -1003,7 +1002,7 @@ func createPod(ctx context.Context, client clientset.Interface, namespace string
10031002
}
10041003

10051004
// createClusterRole creates a ClusterRole with the specified labels.
1006-
func createClusterRole(ctx context.Context, client clientset.Interface, labels map[string]string) (*rbacv1.ClusterRole, error) {
1005+
func createClusterRole(ctx context.Context, client kubernetes.Interface, labels map[string]string) (*rbacv1.ClusterRole, error) {
10071006
clusterRole := &rbacv1.ClusterRole{
10081007
ObjectMeta: metav1.ObjectMeta{
10091008
GenerateName: "test-cluster-role-",

0 commit comments

Comments
 (0)