Skip to content

Commit

Permalink
Use 1.12 k8s dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wongma7 committed Oct 19, 2018
1 parent 5cc6f1a commit cdaf8fa
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
10 changes: 7 additions & 3 deletions .Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,21 @@
name = "golang.org/x/time"

[[constraint]]
branch = "master"
branch = "release-1.12"
name = "k8s.io/api"

[[constraint]]
branch = "master"
branch = "release-1.12"
name = "k8s.io/apimachinery"

[[constraint]]
branch = "master"
branch = "release-9.0"
name = "k8s.io/client-go"

[[constraint]]
branch = "release-1.12"
name = "k8s.io/kubernetes"

[prune]
go-tests = true
unused-packages = true
2 changes: 1 addition & 1 deletion controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/uuid"
utilversion "k8s.io/apimachinery/pkg/util/version"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/informers"
"k8s.io/client-go/kubernetes"
Expand All @@ -53,6 +52,7 @@ import (
"k8s.io/client-go/tools/record"
ref "k8s.io/client-go/tools/reference"
"k8s.io/client-go/util/workqueue"
utilversion "k8s.io/kubernetes/pkg/util/version"
)

// annClass annotation represents the storage class associated with a resource:
Expand Down
2 changes: 1 addition & 1 deletion controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
utilversion "k8s.io/apimachinery/pkg/util/version"
"k8s.io/client-go/informers"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/kubernetes/scheme"
testclient "k8s.io/client-go/testing"
"k8s.io/client-go/tools/cache"
ref "k8s.io/client-go/tools/reference"
utilversion "k8s.io/kubernetes/pkg/util/version"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions examples/hostpath-provisioner/Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
name = "github.com/golang/glog"

[[constraint]]
branch = "master"
branch = "release-1.12"
name = "github.com/kubernetes-sigs/sig-storage-lib-external-provisioner"

[[constraint]]
branch = "master"
branch = "release-1.12"
name = "k8s.io/api"

[[constraint]]
branch = "master"
branch = "release-1.12"
name = "k8s.io/apimachinery"

[[constraint]]
branch = "master"
branch = "release-9.0"
name = "k8s.io/client-go"

[prune]
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
set -x
PS4='+\t '

curl -L https://dl.k8s.io/v1.13.0-alpha.1/kubernetes-server-linux-amd64.tar.gz | tar xz
curl -L https://dl.k8s.io/v1.12.0/kubernetes-server-linux-amd64.tar.gz | tar xz
tar xz -f kubernetes/kubernetes-src.tar.gz -C kubernetes

kubernetes/hack/install-etcd.sh
Expand Down

0 comments on commit cdaf8fa

Please sign in to comment.