Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vendor: update to k8s.io 1.14, avoid glog #262

Merged
merged 1 commit into from
Apr 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@
name = "github.com/kubernetes-csi/external-snapshotter"
branch = "master"

# We need a version which does not use glog, because pulling in glog clashes
# with klog.Init. Anything >= 1.12 is fine, but we can't specify that
# because of the lack of semantic versioning in Kubernetes. Therefore we
# have to pick a certain release, otherwise we (more or less randomly) end
# up with something older or master.
[[constraint]]
name = "k8s.io/apiserver"
version = "kubernetes-1.14.0"

[[constraint]]
name = "k8s.io/component-base"
version = "kubernetes-1.14.0"

[prune]
non-go = true
go-tests = true
Expand Down
4 changes: 2 additions & 2 deletions cmd/csi-provisioner/csi-provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
"k8s.io/klog"

utilfeature "k8s.io/apiserver/pkg/util/feature"
utilflag "k8s.io/apiserver/pkg/util/flag"
utilflag "k8s.io/component-base/cli/flag"
csitranslationlib "k8s.io/csi-translation-lib"
)

Expand Down Expand Up @@ -76,7 +76,7 @@ func init() {
flag.Set("logtostderr", "true")
flag.Parse()

if err := utilfeature.DefaultFeatureGate.SetFromMap(featureGates); err != nil {
if err := utilfeature.DefaultMutableFeatureGate.SetFromMap(featureGates); err != nil {
klog.Fatal(err)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/features/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const (
)

func init() {
utilfeature.DefaultFeatureGate.Add(defaultKubernetesFeatureGates)
utilfeature.DefaultMutableFeatureGate.Add(defaultKubernetesFeatureGates)
}

// defaultKubernetesFeatureGates consists of all known feature keys specific to external-provisioner.
Expand Down
191 changes: 0 additions & 191 deletions vendor/github.com/golang/glog/LICENSE

This file was deleted.

Loading