diff --git a/glide.lock b/glide.lock index 32260160a68e..8b844df4b594 100644 --- a/glide.lock +++ b/glide.lock @@ -1,5 +1,5 @@ -hash: fbd25b5deb27fc4a1a6983f6a4d763cdf5153fceffe72c16b9bc90e6e4e8dd -updated: 2019-07-21T11:15:49.781134265+02:00 +hash: 09d39ff0f4b05d9abeade5e9636d3a33eba4227e618e282deb39768a7dcdda80 +updated: 2019-08-21T21:50:57.809793995-04:00 imports: - name: bitbucket.org/ww/goautoneg version: 75cd24fc2f2c2a2088577d12123ddee5f54e0675 @@ -21,6 +21,7 @@ imports: - negotiate - name: github.com/apcera/gssapi version: 5fb4217df13b8e6878046fe1e5c10e560e1b86dc + repo: https://github.com/openshift/gssapi.git - name: github.com/armon/circbuf version: bbbad097214e2918d8543d5201d12bfd7bca254d - name: github.com/asaskevich/govalidator @@ -67,7 +68,7 @@ imports: - name: github.com/Azure/azure-sdk-for-go version: 8c6dfb65cae4368cc3242549023a616e42fcb702 subpackages: - - services/compute/mgmt/2017-12-01/compute + - services/compute/mgmt/2019-03-01/compute - services/containerregistry/mgmt/2017-10-01/containerregistry - services/network/mgmt/2017-09-01/network - services/storage/mgmt/2017-10-01/storage @@ -512,7 +513,7 @@ imports: subpackages: - mat64 - name: github.com/google/btree - version: bfb38958ad2298964492841280eea188b9c23e7b + version: 20236160a414454a9c64b6c8829381c6f4bddcaa - name: github.com/google/cadvisor version: e7bafcb870aceaff6ae15189520febdede52b50f repo: https://github.com/openshift/google-cadvisor.git @@ -973,7 +974,7 @@ imports: - user/informers/externalversions/user/v1 - user/listers/user/v1 - name: github.com/openshift/imagebuilder - version: c0887bd82bb30c80ad4a0fd19a22b2520a8223c6 + version: 88ea7f56be8b37593900daf982db5cde64f62221 subpackages: - dockerclient - imageprogress @@ -1438,7 +1439,7 @@ imports: - pkg/registry/customresourcedefinition - test/integration/testserver - name: k8s.io/apimachinery - version: 5f1ab6ad9104144e43c7e477938fd278ade27eb2 + version: 5c0e7e0ce91a8083e170765a544def530b8ee4f0 repo: https://github.com/openshift/kubernetes-apimachinery.git subpackages: - pkg/api/equality @@ -1506,7 +1507,7 @@ imports: - third_party/forked/golang/netutil - third_party/forked/golang/reflect - name: k8s.io/apiserver - version: 996cefeb14170756dc1626dde64fcfb63c8edb24 + version: 6eafd6a7ccfb33517f1d852155d8862d8b5d3e93 repo: https://github.com/openshift/kubernetes-apiserver.git subpackages: - pkg/admission @@ -1619,7 +1620,7 @@ imports: - plugin/pkg/authenticator/token/webhook - plugin/pkg/authorizer/webhook - name: k8s.io/client-go - version: 7eaf7133bcfa11e19ebbbc76ff53e2cb32524683 + version: 9feea9d4142fd23f46451ef4292787b85e2e0a52 repo: https://github.com/openshift/kubernetes-client-go.git subpackages: - discovery @@ -1861,7 +1862,7 @@ imports: - pkg/util/proto/testing - pkg/util/proto/validation - name: k8s.io/kubernetes - version: d8b46d72a413981e6ea99605dcef3b8ca3f2223f + version: 58be19a7e8bc2e29eef4936c8f6dedbcaa0d0388 repo: https://github.com/openshift/kubernetes.git subpackages: - cmd/controller-manager/app diff --git a/glide.yaml b/glide.yaml index ce4226dae2a3..565e95d1a5da 100644 --- a/glide.yaml +++ b/glide.yaml @@ -161,6 +161,7 @@ import: # auth (for oc kerberos on linux + mac) - package: github.com/apcera/gssapi version: release-2.6.3 + repo: https://github.com/openshift/gssapi.git # auth (for oc kerberos on windows) - package: github.com/alexbrainman/sspi version: e580b900e9f5657daa5473021296289be6da2661 diff --git a/vendor/github.com/evanphx/json-patch/patch_test.go b/vendor/github.com/evanphx/json-patch/patch_test.go index 9de5a089be25..96bcef494217 100644 --- a/vendor/github.com/evanphx/json-patch/patch_test.go +++ b/vendor/github.com/evanphx/json-patch/patch_test.go @@ -126,11 +126,6 @@ var Cases = []Case{ `[ { "op": "move", "from": "/foo/1", "path": "/foo/2" } ]`, `{ "foo": [ "all", "cows", "grass", "eat" ] }`, }, - { - `{ "foo": [ "a", "b", "c", "d", "e" ] }`, - `[ { "op": "move", "from": "/foo/1", "path": "/foo/2" } ]`, - `{ "foo": [ "a", "c", "b", "d", "e" ] }`, - }, { `{ "foo": "bar" }`, `[ { "op": "add", "path": "/child", "value": { "grandchild": { } } } ]`, diff --git a/vendor/github.com/google/btree/go.mod b/vendor/github.com/google/btree/go.mod index 0646b390ff26..fe4d5ca17b37 100644 --- a/vendor/github.com/google/btree/go.mod +++ b/vendor/github.com/google/btree/go.mod @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + module github.com/google/btree go 1.12 diff --git a/vendor/github.com/openshift/imagebuilder/OWNERS b/vendor/github.com/openshift/imagebuilder/OWNERS new file mode 100644 index 000000000000..db859b7bdfb7 --- /dev/null +++ b/vendor/github.com/openshift/imagebuilder/OWNERS @@ -0,0 +1,6 @@ +approvers: +- TomSweeneyRedHat +- mrunalp +- nalind +- rhatdan +- smarterclayton diff --git a/vendor/github.com/openshift/imagebuilder/dockerclient/archive.go b/vendor/github.com/openshift/imagebuilder/dockerclient/archive.go index c8c0f68bc92f..bc9559d326b9 100644 --- a/vendor/github.com/openshift/imagebuilder/dockerclient/archive.go +++ b/vendor/github.com/openshift/imagebuilder/dockerclient/archive.go @@ -357,6 +357,9 @@ func newArchiveMapper(src, dst string, excludes []string, resetOwners bool, chec prefix = path.Base(archiveRoot) } } + if !strings.HasSuffix(archiveRoot, "/") { + archiveRoot += "/" + } mapperFn := archivePathMapper(srcPattern, dst, isDestDir) diff --git a/vendor/github.com/openshift/imagebuilder/dockerclient/archive_test.go b/vendor/github.com/openshift/imagebuilder/dockerclient/archive_test.go index 978c8564bfd3..a5a0cb5f044b 100644 --- a/vendor/github.com/openshift/imagebuilder/dockerclient/archive_test.go +++ b/vendor/github.com/openshift/imagebuilder/dockerclient/archive_test.go @@ -6,6 +6,7 @@ import ( "io" "io/ioutil" "os" + "path/filepath" "reflect" "sort" "testing" @@ -449,8 +450,8 @@ func Test_archiveFromContainer(t *testing.T) { if err != nil { t.Fatal(err) } - if path != testCase.path { - t.Errorf("unexpected path: %s", path) + if filepath.Clean(path) != testCase.path { + t.Errorf("unexpected path: %s != %s", filepath.Clean(path), testCase.path) } tr := tar.NewReader(r) var found []string diff --git a/vendor/github.com/openshift/imagebuilder/dockerclient/conformance_test.go b/vendor/github.com/openshift/imagebuilder/dockerclient/conformance_test.go index 911083ada297..d531fe9f2caa 100644 --- a/vendor/github.com/openshift/imagebuilder/dockerclient/conformance_test.go +++ b/vendor/github.com/openshift/imagebuilder/dockerclient/conformance_test.go @@ -111,6 +111,8 @@ func TestCopyFrom(t *testing.T) { {name: "copy file to deeper directory with explicit slash", create: "mkdir -p /a && touch /a/1", copy: "/a/1 /a/b/c/", expect: "ls -al /a/b/c/1 && ! ls -al /a/b/1"}, {name: "copy file to deeper directory without explicit slash", create: "mkdir -p /a && touch /a/1", copy: "/a/1 /a/b/c", expect: "ls -al /a/b/c && ! ls -al /a/b/1"}, {name: "copy directory to deeper directory without explicit slash", create: "mkdir -p /a && touch /a/1", copy: "/a /a/b/c", expect: "ls -al /a/b/c/1 && ! ls -al /a/b/1"}, + {name: "copy item from directory that is a symbolic link", create: "mkdir -p /a && touch /a/1 && ln -s /a /b", copy: "b/1 /a/b/c", expect: "ls -al /a/b/c && ! ls -al /a/b/1"}, + {name: "copy item from directory that is a symbolic link", create: "mkdir -p /a && touch /a/1 && ln -s a /c", copy: "/c/1 /a/b/c", expect: "ls -al /a/b/c && ! ls -al /a/b/1"}, {name: "copy directory to root without explicit slash", create: "mkdir -p /a && touch /a/1", copy: "a /a", expect: "ls -al /a/1 && ! ls -al /a/a"}, {name: "copy directory trailing to root without explicit slash", create: "mkdir -p /a && touch /a/1", copy: "a/. /a", expect: "ls -al /a/1 && ! ls -al /a/a"}, } diff --git a/vendor/github.com/openshift/imagebuilder/dockerclient/testdata/Dockerfile.copyfrom_11 b/vendor/github.com/openshift/imagebuilder/dockerclient/testdata/Dockerfile.copyfrom_11 new file mode 100644 index 000000000000..bfc81014aee2 --- /dev/null +++ b/vendor/github.com/openshift/imagebuilder/dockerclient/testdata/Dockerfile.copyfrom_11 @@ -0,0 +1,6 @@ +FROM busybox as base +RUN mkdir -p /a && touch /a/1 +RUN ln -s /a /b +FROM busybox +COPY --from=base /b/1 /a/b/c +RUN ls -al /a/b/c && ! ls -al /a/b/1 diff --git a/vendor/github.com/openshift/imagebuilder/dockerclient/testdata/Dockerfile.copyfrom_12 b/vendor/github.com/openshift/imagebuilder/dockerclient/testdata/Dockerfile.copyfrom_12 new file mode 100644 index 000000000000..af0672237581 --- /dev/null +++ b/vendor/github.com/openshift/imagebuilder/dockerclient/testdata/Dockerfile.copyfrom_12 @@ -0,0 +1,6 @@ +FROM busybox as base +RUN mkdir -p /a && touch /a/1 +RUN ln -s a /c +FROM busybox +COPY --from=base /c/1 /a/b/c +RUN ls -al /a/b/c && ! ls -al /a/b/1 diff --git a/vendor/github.com/vmware/photon-controller-go-sdk/photon/client.go b/vendor/github.com/vmware/photon-controller-go-sdk/photon/client.go index fb48c59820b9..5e0faac7bd6c 100644 --- a/vendor/github.com/vmware/photon-controller-go-sdk/photon/client.go +++ b/vendor/github.com/vmware/photon-controller-go-sdk/photon/client.go @@ -142,8 +142,8 @@ func NewClient(endpoint string, options *ClientOptions, logger *log.Logger) (c * } restClient := &restClient{ - httpClient: &http.Client{Transport: tr}, - logger: logger, + httpClient: &http.Client{Transport: tr}, + logger: logger, UpdateAccessTokenCallback: tokenCallback, } diff --git a/vendor/github.com/vmware/photon-controller-go-sdk/photon/deployments_test.go b/vendor/github.com/vmware/photon-controller-go-sdk/photon/deployments_test.go index cbbd5f681089..dbfc8f85da86 100644 --- a/vendor/github.com/vmware/photon-controller-go-sdk/photon/deployments_test.go +++ b/vendor/github.com/vmware/photon-controller-go-sdk/photon/deployments_test.go @@ -32,7 +32,7 @@ var _ = Describe("Deployment", func() { deploymentSpec = &DeploymentCreateSpec{ ImageDatastores: []string{randomString(10, "go-sdk-deployment-")}, UseImageDatastoreForVms: true, - Auth: &AuthInfo{}, + Auth: &AuthInfo{}, } }) @@ -59,8 +59,8 @@ var _ = Describe("Deployment", func() { mockDeployment := Deployment{ ImageDatastores: deploymentSpec.ImageDatastores, UseImageDatastoreForVms: deploymentSpec.UseImageDatastoreForVms, - Auth: &AuthInfo{}, - NetworkConfiguration: &NetworkConfiguration{Enabled: false}, + Auth: &AuthInfo{}, + NetworkConfiguration: &NetworkConfiguration{Enabled: false}, } server.SetResponseJson(200, mockDeployment) deployment, err := client.Deployments.Get(task.Entity.ID) diff --git a/vendor/github.com/vmware/photon-controller-go-sdk/photon/lightwave/oidcclient_test.go b/vendor/github.com/vmware/photon-controller-go-sdk/photon/lightwave/oidcclient_test.go index 68bc89ad608f..976f6c7afb03 100644 --- a/vendor/github.com/vmware/photon-controller-go-sdk/photon/lightwave/oidcclient_test.go +++ b/vendor/github.com/vmware/photon-controller-go-sdk/photon/lightwave/oidcclient_test.go @@ -66,7 +66,7 @@ var _ = Describe("OIDCClient", func() { Context("when server responds with valid certificate", func() { BeforeEach(func() { template := &x509.Certificate{ - IsCA: true, + IsCA: true, BasicConstraintsValid: true, SubjectKeyId: []byte{1, 2, 3}, SerialNumber: big.NewInt(1234),