Skip to content

Commit

Permalink
Support multiple tls certs in ingress
Browse files Browse the repository at this point in the history
Support multiple tls secrets and multiple preshared certs specified by comma-separated string
Modified hash algorithm to sha256
  • Loading branch information
prameshj authored and rramkumar1 committed Apr 6, 2018
1 parent 1dc9b18 commit acbecb5
Show file tree
Hide file tree
Showing 6 changed files with 282 additions and 155 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func (lbc *LoadBalancerController) toRuntimeInfo(ing *extensions.Ingress) (*load
return nil, fmt.Errorf("cannot get key for Ingress %v/%v: %v", ing.Namespace, ing.Name, err)
}

var tls *loadbalancers.TLSCerts
var tls []*loadbalancers.TLSCerts

annotations := annotations.FromIngress(ing)
// Load the TLS cert from the API Spec if it is not specified in the annotation.
Expand Down
1 change: 1 addition & 0 deletions pkg/loadbalancers/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type LoadBalancers interface {

// SslCertificates
GetSslCertificate(name string) (*compute.SslCertificate, error)
ListSslCertificates() ([]*compute.SslCertificate, error)
CreateSslCertificate(certs *compute.SslCertificate) (*compute.SslCertificate, error)
DeleteSslCertificate(name string) error

Expand Down
Loading

0 comments on commit acbecb5

Please sign in to comment.