Fix go imports

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-06-30 18:58:18 -04:00
parent a2009484f7
commit 004d0c8214
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
8 changed files with 22 additions and 18 deletions

View file

@ -20,9 +20,10 @@ import (
"bytes"
"encoding/json"
"fmt"
"os"
"github.com/spf13/cobra"
"k8s.io/ingress-nginx/internal/nginx"
"os"
)
const (

View file

@ -23,7 +23,7 @@ import (
"testing"
"time"
"k8s.io/api/core/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/fake"
@ -48,7 +48,7 @@ func TestHandleSigterm(t *testing.T) {
defer deleteConfigMap(cm, ns, clientSet, t)
name := "test"
pod := v1.Pod{
pod := corev1.Pod{
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: ns,
@ -110,7 +110,7 @@ func createConfigMap(clientSet kubernetes.Interface, ns string, t *testing.T) st
t.Helper()
t.Log("Creating temporal config map")
configMap := &v1.ConfigMap{
configMap := &corev1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{
Name: "config",
SelfLink: fmt.Sprintf("/api/v1/namespaces/%s/configmaps/config", ns),