mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2026-02-03 08:05:12 +01:00
refact(deps): bump k8s and client-go deps to version v0.20.2 (#294)
Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
This commit is contained in:
parent
533e17a9aa
commit
b1aa6ab51a
2196 changed files with 306727 additions and 251810 deletions
8
vendor/k8s.io/code-generator/pkg/util/build.go
generated
vendored
8
vendor/k8s.io/code-generator/pkg/util/build.go
generated
vendored
|
|
@ -59,3 +59,11 @@ func hasSubdir(root, dir string) (rel string, ok bool) {
|
|||
func BoilerplatePath() string {
|
||||
return path.Join(reflect.TypeOf(empty{}).PkgPath(), "/../../hack/boilerplate.go.txt")
|
||||
}
|
||||
|
||||
// Vendorless trims vendor prefix from a package path to make it canonical
|
||||
func Vendorless(p string) string {
|
||||
if pos := strings.LastIndex(p, "/vendor/"); pos != -1 {
|
||||
return p[pos+len("/vendor/"):]
|
||||
}
|
||||
return p
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue