chore: get rid of k8s.io/kubernetes dep

This dependency is problematic because of the many replaces it brings
with it. This makes it hard to import external-snapshotter in 3rd
party projects without having a lot of `replace` directives in those
projects as well.

The only usage of that import was to get two very simple utility
functions so I copied them over to this repo.
This commit is contained in:
Max Jonas Werner
2020-07-21 18:19:15 +02:00
parent 96234531f4
commit 1f13709413
10 changed files with 53 additions and 798 deletions

2
vendor/modules.txt vendored
View File

@@ -534,8 +534,6 @@ k8s.io/kube-openapi/pkg/generators
k8s.io/kube-openapi/pkg/generators/rules
k8s.io/kube-openapi/pkg/util/proto
k8s.io/kube-openapi/pkg/util/sets
# k8s.io/kubernetes v1.18.0
k8s.io/kubernetes/pkg/util/slice
# k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89
k8s.io/utils/buffer
k8s.io/utils/integer