Skip to content

Commit

Permalink
Merge pull request #193 from bowei/vendor
Browse files Browse the repository at this point in the history
Update vendor/ to support multiple TLS certificates interface
  • Loading branch information
nicksardo authored Apr 6, 2018
2 parents a3b57ba + 4923f07 commit 1dc9b18
Show file tree
Hide file tree
Showing 942 changed files with 189,482 additions and 134,291 deletions.
555 changes: 479 additions & 76 deletions Gopkg.lock

Large diffs are not rendered by default.

27 changes: 19 additions & 8 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ ignored = ["k8s.io/kubernetes/pkg/api"]

[[constraint]]
name = "k8s.io/api"
# We are currently vendoring a non-released k8s version. This should go away
# once the symbol has been released.
revision = "02509811a0e5c1e5bb0656e31ec861da05cd801c"
revision = "release-1.10"

[[constraint]]
name = "k8s.io/apiserver"
revision = "release-1.10"

[[constraint]]
name = "k8s.io/apimachinery"
Expand All @@ -38,14 +40,23 @@ ignored = ["k8s.io/kubernetes/pkg/api"]

[[constraint]]
name = "k8s.io/kubernetes"
revision = "7652c252d4ce2aea1563853bef0438769c5781fd"

[[constraint]]
revision = "9c40f5b5a622c61c2e37efd37bf136d174d6799a"

# This needs to be an override as it is a non-direct dependency and will not be
# considered by `dep` as a constraint.
#
# Kubernetes is currently vendoring a non-released version. One of the
# symbols needed is no longer there in the released tag.
[[override]]
name = "github.com/docker/distribution"
# Kubernetes is currently vendoring a non-released version. One of the
# symbols needed is not longer there in the released tag.
revision = "edc3ab29cdff8694dd6feb85cfeb4b5f1b38ed9c"

# This needs to be an override as it is a non-direct dependency and will not be
# considered by `dep` as a constraint.
[[override]]
name = "google.golang.org/api"
revision = "7f657476956314fee258816aaf81c0ff65cf8bee"

[[constraint]]
name = "github.com/opencontainers/go-digest"
version = "1.0.0-rc1"
7 changes: 6 additions & 1 deletion pkg/loadbalancers/fakes.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,12 @@ func (f *FakeLoadBalancers) SetUrlMapForTargetHttpsProxy(proxy *compute.TargetHt
}

// SetSslCertificateForTargetHttpsProxy fakes out setting certificates.
func (f *FakeLoadBalancers) SetSslCertificateForTargetHttpsProxy(proxy *compute.TargetHttpsProxy, SSLCert *compute.SslCertificate) error {
func (f *FakeLoadBalancers) SetSslCertificateForTargetHttpsProxy(proxy *compute.TargetHttpsProxy, certs []*compute.SslCertificate) error {
if len(certs) != 1 {
return fmt.Errorf("can only take one cert, got %v", certs)
}
SSLCert := certs[0]

f.calls = append(f.calls, "SetSslCertificateForTargetHttpsProxy")
found := false
for i := range f.Tps {
Expand Down
2 changes: 1 addition & 1 deletion pkg/loadbalancers/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type LoadBalancers interface {
CreateTargetHttpsProxy(proxy *compute.TargetHttpsProxy) error
DeleteTargetHttpsProxy(name string) error
SetUrlMapForTargetHttpsProxy(proxy *compute.TargetHttpsProxy, urlMap *compute.UrlMap) error
SetSslCertificateForTargetHttpsProxy(proxy *compute.TargetHttpsProxy, SSLCerts *compute.SslCertificate) error
SetSslCertificateForTargetHttpsProxy(proxy *compute.TargetHttpsProxy, SSLCerts []*compute.SslCertificate) error

// SslCertificates
GetSslCertificate(name string) (*compute.SslCertificate, error)
Expand Down
2 changes: 1 addition & 1 deletion pkg/loadbalancers/l7.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func (l *L7) checkHttpsProxy() (err error) {
if !utils.CompareLinks(cert, l.sslCert.SelfLink) {
glog.Infof("Https proxy %v has the wrong ssl certs, setting %v overwriting %v",
proxy.Name, l.sslCert.SelfLink, cert)
if err := l.cloud.SetSslCertificateForTargetHttpsProxy(proxy, l.sslCert); err != nil {
if err := l.cloud.SetSslCertificateForTargetHttpsProxy(proxy, []*compute.SslCertificate{l.sslCert}); err != nil {
return err
}
}
Expand Down
1 change: 1 addition & 0 deletions vendor/cloud.google.com/go/CONTRIBUTORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/cloud.google.com/go/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

168 changes: 118 additions & 50 deletions vendor/cloud.google.com/go/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 25 additions & 5 deletions vendor/cloud.google.com/go/cloud.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions vendor/cloud.google.com/go/issue_template.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1dc9b18

Please sign in to comment.