diff --git a/kubernetes/resource_kubernetes_network_policy.go b/kubernetes/resource_kubernetes_network_policy.go index 3b63472c2e..0520af8e6f 100644 --- a/kubernetes/resource_kubernetes_network_policy.go +++ b/kubernetes/resource_kubernetes_network_policy.go @@ -5,11 +5,11 @@ import ( "log" "github.com/hashicorp/terraform/helper/schema" + api "k8s.io/api/networking/v1" "k8s.io/apimachinery/pkg/api/errors" meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" pkgApi "k8s.io/apimachinery/pkg/types" "k8s.io/client-go/kubernetes" - api "k8s.io/client-go/pkg/apis/networking/v1" ) // Use generated swagger docs from kubernetes' client-go to avoid copy/pasting them here diff --git a/kubernetes/resource_kubernetes_network_policy_test.go b/kubernetes/resource_kubernetes_network_policy_test.go index 24c4c4ace8..d791681ee4 100644 --- a/kubernetes/resource_kubernetes_network_policy_test.go +++ b/kubernetes/resource_kubernetes_network_policy_test.go @@ -7,9 +7,9 @@ import ( "github.com/hashicorp/terraform/helper/acctest" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" + api "k8s.io/api/networking/v1" meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubernetes "k8s.io/client-go/kubernetes" - api "k8s.io/client-go/pkg/apis/networking/v1" ) func TestAccKubernetesNetworkPolicy_basic(t *testing.T) { diff --git a/kubernetes/structure_network_policy.go b/kubernetes/structure_network_policy.go index 66b8bc6118..d6180c0889 100644 --- a/kubernetes/structure_network_policy.go +++ b/kubernetes/structure_network_policy.go @@ -2,9 +2,9 @@ package kubernetes import ( "github.com/hashicorp/terraform/helper/schema" + api "k8s.io/api/core/v1" + "k8s.io/api/networking/v1" "k8s.io/apimachinery/pkg/util/intstr" - api "k8s.io/client-go/pkg/api/v1" - "k8s.io/client-go/pkg/apis/networking/v1" "strconv" ) diff --git a/kubernetes/structure_network_policy_test.go b/kubernetes/structure_network_policy_test.go index 8a4f35df7f..6a47b8a2be 100644 --- a/kubernetes/structure_network_policy_test.go +++ b/kubernetes/structure_network_policy_test.go @@ -1,8 +1,8 @@ package kubernetes import ( - api "k8s.io/client-go/pkg/api/v1" - "k8s.io/client-go/pkg/apis/networking/v1" + api "k8s.io/api/core/v1" + "k8s.io/api/networking/v1" "k8s.io/apimachinery/pkg/util/intstr" "reflect"