mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #92824 from andyzhangx/fix-license-issue
fix: license issue in blob disk feature
This commit is contained in:
commit
c9c5c23634
2
go.mod
2
go.mod
@ -379,7 +379,7 @@ replace (
|
|||||||
github.com/robfig/cron => github.com/robfig/cron v1.1.0
|
github.com/robfig/cron => github.com/robfig/cron v1.1.0
|
||||||
github.com/rogpeppe/fastuuid => github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af
|
github.com/rogpeppe/fastuuid => github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af
|
||||||
github.com/rogpeppe/go-internal => github.com/rogpeppe/go-internal v1.3.0
|
github.com/rogpeppe/go-internal => github.com/rogpeppe/go-internal v1.3.0
|
||||||
github.com/rubiojr/go-vhd => github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c
|
github.com/rubiojr/go-vhd => github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021
|
||||||
github.com/russross/blackfriday => github.com/russross/blackfriday v1.5.2
|
github.com/russross/blackfriday => github.com/russross/blackfriday v1.5.2
|
||||||
github.com/russross/blackfriday/v2 => github.com/russross/blackfriday/v2 v2.0.1
|
github.com/russross/blackfriday/v2 => github.com/russross/blackfriday/v2 v2.0.1
|
||||||
github.com/satori/go.uuid => github.com/satori/go.uuid v1.2.0
|
github.com/satori/go.uuid => github.com/satori/go.uuid v1.2.0
|
||||||
|
4
go.sum
4
go.sum
@ -401,8 +401,8 @@ github.com/robfig/cron v1.1.0 h1:jk4/Hud3TTdcrJgUOBgsqrZBarcxl6ADIjSC2iniwLY=
|
|||||||
github.com/robfig/cron v1.1.0/go.mod h1:JGuDeoQd7Z6yL4zQhZ3OPEVHB7fL6Ka6skscFHfmt2k=
|
github.com/robfig/cron v1.1.0/go.mod h1:JGuDeoQd7Z6yL4zQhZ3OPEVHB7fL6Ka6skscFHfmt2k=
|
||||||
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
|
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
|
||||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||||
github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c h1:ht7N4d/B7Ezf58nvMNVF3OlvDlz9pp+WHVcRNS0nink=
|
github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021 h1:if3/24+h9Sq6eDx8UUz1SO9cT9tizyIsATfB7b4D3tc=
|
||||||
github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto=
|
github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto=
|
||||||
github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=
|
github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=
|
||||||
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
|
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
|
||||||
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
|
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
|
||||||
|
@ -19,7 +19,7 @@ require (
|
|||||||
github.com/google/go-cmp v0.4.0
|
github.com/google/go-cmp v0.4.0
|
||||||
github.com/gophercloud/gophercloud v0.1.0
|
github.com/gophercloud/gophercloud v0.1.0
|
||||||
github.com/mitchellh/mapstructure v1.1.2
|
github.com/mitchellh/mapstructure v1.1.2
|
||||||
github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c
|
github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021
|
||||||
github.com/satori/go.uuid v1.2.0 // indirect
|
github.com/satori/go.uuid v1.2.0 // indirect
|
||||||
github.com/stretchr/testify v1.4.0
|
github.com/stretchr/testify v1.4.0
|
||||||
github.com/vmware/govmomi v0.20.3
|
github.com/vmware/govmomi v0.20.3
|
||||||
|
4
staging/src/k8s.io/legacy-cloud-providers/go.sum
generated
4
staging/src/k8s.io/legacy-cloud-providers/go.sum
generated
@ -275,8 +275,8 @@ github.com/prometheus/procfs v0.0.11 h1:DhHlBtkHWPYi8O2y31JkK0TF+DGM+51OopZjH/Ia
|
|||||||
github.com/prometheus/procfs v0.0.11/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
|
github.com/prometheus/procfs v0.0.11/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
|
||||||
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
|
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
|
||||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||||
github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c h1:ht7N4d/B7Ezf58nvMNVF3OlvDlz9pp+WHVcRNS0nink=
|
github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021 h1:if3/24+h9Sq6eDx8UUz1SO9cT9tizyIsATfB7b4D3tc=
|
||||||
github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto=
|
github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto=
|
||||||
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
|
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
|
||||||
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
|
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
|
||||||
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
|
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
|
||||||
|
4
vendor/github.com/rubiojr/go-vhd/vhd/BUILD
generated
vendored
4
vendor/github.com/rubiojr/go-vhd/vhd/BUILD
generated
vendored
@ -9,6 +9,10 @@ go_library(
|
|||||||
importmap = "k8s.io/kubernetes/vendor/github.com/rubiojr/go-vhd/vhd",
|
importmap = "k8s.io/kubernetes/vendor/github.com/rubiojr/go-vhd/vhd",
|
||||||
importpath = "github.com/rubiojr/go-vhd/vhd",
|
importpath = "github.com/rubiojr/go-vhd/vhd",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
|
deps = [
|
||||||
|
"//vendor/golang.org/x/text/encoding/unicode:go_default_library",
|
||||||
|
"//vendor/golang.org/x/text/transform:go_default_library",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
|
19
vendor/github.com/rubiojr/go-vhd/vhd/util.go
generated
vendored
19
vendor/github.com/rubiojr/go-vhd/vhd/util.go
generated
vendored
@ -1,13 +1,10 @@
|
|||||||
package vhd
|
package vhd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"unicode/utf16"
|
|
||||||
"unicode/utf8"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://groups.google.com/forum/#!msg/golang-nuts/d0nF_k4dSx4/rPGgfXv6QCoJ
|
// https://groups.google.com/forum/#!msg/golang-nuts/d0nF_k4dSx4/rPGgfXv6QCoJ
|
||||||
@ -55,19 +52,3 @@ func uuidToBytes(uuid string) []byte {
|
|||||||
|
|
||||||
return h
|
return h
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
utf16BytesToString converts UTF-16 encoded bytes, in big or
|
|
||||||
little endian byte order, to a UTF-8 encoded string.
|
|
||||||
http://stackoverflow.com/a/15794113
|
|
||||||
*/
|
|
||||||
func utf16BytesToString(b []byte, o binary.ByteOrder) string {
|
|
||||||
utf := make([]uint16, (len(b)+(2-1))/2)
|
|
||||||
for i := 0; i+(2-1) < len(b); i += 2 {
|
|
||||||
utf[i/2] = o.Uint16(b[i:])
|
|
||||||
}
|
|
||||||
if len(b)/2 < len(utf) {
|
|
||||||
utf[len(utf)-1] = utf8.RuneError
|
|
||||||
}
|
|
||||||
return string(utf16.Decode(utf))
|
|
||||||
}
|
|
||||||
|
13
vendor/github.com/rubiojr/go-vhd/vhd/vhd.go
generated
vendored
13
vendor/github.com/rubiojr/go-vhd/vhd/vhd.go
generated
vendored
@ -11,6 +11,9 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"golang.org/x/text/encoding/unicode"
|
||||||
|
"golang.org/x/text/transform"
|
||||||
)
|
)
|
||||||
|
|
||||||
const VHD_COOKIE = "636f6e6563746978" // conectix
|
const VHD_COOKIE = "636f6e6563746978" // conectix
|
||||||
@ -324,8 +327,14 @@ func (vhd *VHD) PrintExtraHeader() {
|
|||||||
fmtField("Parent timestamp", fmt.Sprintf("%s", t))
|
fmtField("Parent timestamp", fmt.Sprintf("%s", t))
|
||||||
|
|
||||||
fmtField("Reserved", hexs(header.Reserved[:]))
|
fmtField("Reserved", hexs(header.Reserved[:]))
|
||||||
parentName := utf16BytesToString(header.ParentUnicodeName[:],
|
parentNameBytes, _, err := transform.Bytes(
|
||||||
binary.BigEndian)
|
unicode.UTF16(unicode.BigEndian, unicode.IgnoreBOM).NewDecoder(),
|
||||||
|
header.ParentUnicodeName[:],
|
||||||
|
)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
parentName := string(parentNameBytes)
|
||||||
fmtField("Parent Name", parentName)
|
fmtField("Parent Name", parentName)
|
||||||
// Parent locator entries ignored since it's a dynamic disk
|
// Parent locator entries ignored since it's a dynamic disk
|
||||||
sum := 0
|
sum := 0
|
||||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -634,7 +634,7 @@ github.com/prometheus/procfs/internal/util
|
|||||||
github.com/quobyte/api
|
github.com/quobyte/api
|
||||||
# github.com/robfig/cron v1.1.0 => github.com/robfig/cron v1.1.0
|
# github.com/robfig/cron v1.1.0 => github.com/robfig/cron v1.1.0
|
||||||
github.com/robfig/cron
|
github.com/robfig/cron
|
||||||
# github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c => github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c
|
# github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021 => github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021
|
||||||
github.com/rubiojr/go-vhd/vhd
|
github.com/rubiojr/go-vhd/vhd
|
||||||
# github.com/russross/blackfriday v1.5.2 => github.com/russross/blackfriday v1.5.2
|
# github.com/russross/blackfriday v1.5.2 => github.com/russross/blackfriday v1.5.2
|
||||||
github.com/russross/blackfriday
|
github.com/russross/blackfriday
|
||||||
|
Loading…
Reference in New Issue
Block a user