From bf1df8d54c3f6fd642d48bb218f6d98f2020ce5f Mon Sep 17 00:00:00 2001 From: lgtm <1gtm@users.noreply.github.com> Date: Thu, 8 Oct 2020 01:50:08 -0700 Subject: [PATCH] Update Kubernetes v1.18.9 dependencies (#1220) /cherry-pick Signed-off-by: 1gtm <1gtm@appscode.com> --- go.mod | 2 +- go.sum | 2 ++ .../apis/appcatalog/v1alpha1/appbinding_helpers.go | 8 ++------ vendor/modules.txt | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 2f6574db2..a57234bcc 100644 --- a/go.mod +++ b/go.mod @@ -42,7 +42,7 @@ require ( k8s.io/kubernetes v1.18.9 kmodules.xyz/client-go v0.0.0-20201007024140-3223988adf40 kmodules.xyz/constants v0.0.0-20200506032633-a21e58ceec72 - kmodules.xyz/custom-resources v0.0.0-20200922210108-70f2815a43bb + kmodules.xyz/custom-resources v0.0.0-20201008012351-6d8090f759d4 kmodules.xyz/objectstore-api v0.0.0-20200922210707-59bab27e5d41 kmodules.xyz/offshoot-api v0.0.0-20200922211229-36acc531abab kmodules.xyz/openshift v0.0.0-20200922211657-1ece16d36c18 diff --git a/go.sum b/go.sum index 294bf5d46..a75c6ca93 100644 --- a/go.sum +++ b/go.sum @@ -998,6 +998,8 @@ kmodules.xyz/constants v0.0.0-20200506032633-a21e58ceec72/go.mod h1:DbiFk1bJ1KEO kmodules.xyz/crd-schema-fuzz v0.0.0-20200922204806-c1426cd7fcf4/go.mod h1:WrO3fryNyFCgqqyWnwI89lnzWA7kN072Ehya7ELGfzE= kmodules.xyz/custom-resources v0.0.0-20200922210108-70f2815a43bb h1:SwMPMh6A196yoe8kAH+guTNS8rsTfB2dRbFNh6g0Znk= kmodules.xyz/custom-resources v0.0.0-20200922210108-70f2815a43bb/go.mod h1:+YU32jSWaGGE4etTr/iCF88tLAeDNq1lhptVymjUbjg= +kmodules.xyz/custom-resources v0.0.0-20201008012351-6d8090f759d4 h1:eftT0CrrAYK1uniwsVhheYao4mwGk+eFT9eftRX9BMo= +kmodules.xyz/custom-resources v0.0.0-20201008012351-6d8090f759d4/go.mod h1:+YU32jSWaGGE4etTr/iCF88tLAeDNq1lhptVymjUbjg= kmodules.xyz/objectstore-api v0.0.0-20200922210707-59bab27e5d41 h1:BsCSSPoY0uRGylfPTUzzQ28h2axuXremPGPzwpmxvYI= kmodules.xyz/objectstore-api v0.0.0-20200922210707-59bab27e5d41/go.mod h1:XAWxC/b1ICoufU6XDV0AOHNQY+y+4/B3Z5uyLnW1B6s= kmodules.xyz/offshoot-api v0.0.0-20200922211229-36acc531abab h1:d/4AFAN0TfKgwhjbQYzwXXHT/5/vTP7SAAvS4uJX+wQ= diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_helpers.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_helpers.go index b6dbf848d..bc26ee570 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_helpers.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_helpers.go @@ -27,6 +27,7 @@ import ( "kmodules.xyz/client-go/apiextensions" "kmodules.xyz/custom-resources/crds" + core "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" ) @@ -51,17 +52,12 @@ func (a AppBinding) URL() (string, error) { return "", errors.New("connection url is missing") } -const ( - KeyUsername = "username" - KeyPassword = "password" -) - func (a AppBinding) URLTemplate() (string, error) { rawurl, err := a.URL() if err != nil { return "", err } - auth := fmt.Sprintf("{{%s}}:{{%s}}@", KeyUsername, KeyPassword) + auth := fmt.Sprintf("{{%s}}:{{%s}}@", core.BasicAuthUsernameKey, core.BasicAuthPasswordKey) i := strings.Index(rawurl, "://") if i < 0 { diff --git a/vendor/modules.txt b/vendor/modules.txt index 0156d900a..8138c43be 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1141,7 +1141,7 @@ kmodules.xyz/constants/aws kmodules.xyz/constants/azure kmodules.xyz/constants/google kmodules.xyz/constants/openstack -# kmodules.xyz/custom-resources v0.0.0-20200922210108-70f2815a43bb +# kmodules.xyz/custom-resources v0.0.0-20201008012351-6d8090f759d4 kmodules.xyz/custom-resources/apis/appcatalog kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1 kmodules.xyz/custom-resources/client/clientset/versioned