Skip to content

Commit

Permalink
Do not load secret from Ingress spec if provided name is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rramkumar1 committed Apr 30, 2019
1 parent d84515a commit 66fd3b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/tls/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ func (t *TLSCertsFromSecretsLoader) Load(ing *extensions.Ingress) ([]*loadbalanc
var certs []*loadbalancers.TLSCerts

for _, tlsSecret := range ing.Spec.TLS {
if tlsSecret.SecretName == "" {
continue
}
// TODO: Replace this for a secret watcher.
glog.V(3).Infof("Retrieving secret for ing %v with name %v", ing.Name, tlsSecret.SecretName)
secret, err := t.Client.Core().Secrets(ing.Namespace).Get(tlsSecret.SecretName, meta_v1.GetOptions{})
Expand Down

0 comments on commit 66fd3b6

Please sign in to comment.