Skip to content

Commit

Permalink
Update code to use k8s libs version 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pdecat committed May 7, 2018
1 parent f6a3eb6 commit cad0bd5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion kubernetes/resource_kubernetes_network_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/resource_kubernetes_network_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/structure_network_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions kubernetes/structure_network_policy_test.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit cad0bd5

Please sign in to comment.