From c7497ebcd423e74ed14a580def8df19f956544b1 Mon Sep 17 00:00:00 2001 From: lgtm <1gtm@users.noreply.github.com> Date: Thu, 8 Oct 2020 20:50:35 -0700 Subject: [PATCH] Update Kubernetes v1.18.9 dependencies (#1222) /cherry-pick Signed-off-by: 1gtm <1gtm@appscode.com> --- go.mod | 2 +- go.sum | 4 ++-- vendor/kmodules.xyz/client-go/meta/annotations.go | 13 +++++++++++++ vendor/modules.txt | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index a57234bcc..bd776b7f6 100644 --- a/go.mod +++ b/go.mod @@ -40,7 +40,7 @@ require ( k8s.io/client-go v0.18.9 k8s.io/kube-aggregator v0.18.9 k8s.io/kubernetes v1.18.9 - kmodules.xyz/client-go v0.0.0-20201007024140-3223988adf40 + kmodules.xyz/client-go v0.0.0-20201008164401-74d81f261ec5 kmodules.xyz/constants v0.0.0-20200506032633-a21e58ceec72 kmodules.xyz/custom-resources v0.0.0-20201008012351-6d8090f759d4 kmodules.xyz/objectstore-api v0.0.0-20200922210707-59bab27e5d41 diff --git a/go.sum b/go.sum index a75c6ca93..da9c7d617 100644 --- a/go.sum +++ b/go.sum @@ -991,8 +991,8 @@ kmodules.xyz/client-go v0.0.0-20200922200830-63d86b6e5b63 h1:luKlEul8LMhyyftoZN3 kmodules.xyz/client-go v0.0.0-20200922200830-63d86b6e5b63/go.mod h1:JZN34jqk6ZlR+QOnBPpnUVBab4rmfamqxfSvLaulBMY= kmodules.xyz/client-go v0.0.0-20200929030759-cce6a3c623c1 h1:wig8NVgxE5ynY6dsGduWpkF8utYHU1RjepncNbaStNw= kmodules.xyz/client-go v0.0.0-20200929030759-cce6a3c623c1/go.mod h1:pnRh7gtJ6ErPJQBkQeRlpD95KRtxhD4eGrYagZEU8RM= -kmodules.xyz/client-go v0.0.0-20201007024140-3223988adf40 h1:XQLn2whq+TYbGxVloiyopxSM9jsqjqvWQjltXFKd+aA= -kmodules.xyz/client-go v0.0.0-20201007024140-3223988adf40/go.mod h1:pnRh7gtJ6ErPJQBkQeRlpD95KRtxhD4eGrYagZEU8RM= +kmodules.xyz/client-go v0.0.0-20201008164401-74d81f261ec5 h1:mGySTT2dC8u2FQDUFbDLcOt7GM+IkXqlH2xzATyddKg= +kmodules.xyz/client-go v0.0.0-20201008164401-74d81f261ec5/go.mod h1:pnRh7gtJ6ErPJQBkQeRlpD95KRtxhD4eGrYagZEU8RM= kmodules.xyz/constants v0.0.0-20200506032633-a21e58ceec72 h1:0sM6nE7aJon/PSdqZTj0bKJlPyzobXkG0wVYKpjcJJE= kmodules.xyz/constants v0.0.0-20200506032633-a21e58ceec72/go.mod h1:DbiFk1bJ1KEO94t1SlAn7tzc+Zz95rSXgyUKa2nzPmY= kmodules.xyz/crd-schema-fuzz v0.0.0-20200922204806-c1426cd7fcf4/go.mod h1:WrO3fryNyFCgqqyWnwI89lnzWA7kN072Ehya7ELGfzE= diff --git a/vendor/kmodules.xyz/client-go/meta/annotations.go b/vendor/kmodules.xyz/client-go/meta/annotations.go index dc5c372ea..3fd4822ee 100644 --- a/vendor/kmodules.xyz/client-go/meta/annotations.go +++ b/vendor/kmodules.xyz/client-go/meta/annotations.go @@ -187,3 +187,16 @@ func GetStringValueForKeys(m map[string]string, key string, alts ...string) (str } return "", kutil.ErrNotFound } + +func GetBytesForKeys(m map[string][]byte, key string, alts ...string) ([]byte, error) { + if m == nil { + return nil, kutil.ErrNotFound + } + keys := append([]string{key}, alts...) + for _, k := range keys { + if v, ok := m[k]; ok { + return v, nil + } + } + return nil, kutil.ErrNotFound +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 8138c43be..7ae7988a9 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1111,7 +1111,7 @@ k8s.io/utils/net k8s.io/utils/path k8s.io/utils/pointer k8s.io/utils/trace -# kmodules.xyz/client-go v0.0.0-20201007024140-3223988adf40 +# kmodules.xyz/client-go v0.0.0-20201008164401-74d81f261ec5 kmodules.xyz/client-go kmodules.xyz/client-go/admissionregistration/v1beta1 kmodules.xyz/client-go/api/v1