Merge 555c5eb04d
into de1a4c463c
This commit is contained in:
commit
22e338123e
1 changed files with 18 additions and 17 deletions
|
@ -17,6 +17,7 @@ limitations under the License.
|
|||
package proxyssl
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"sort"
|
||||
|
@ -190,10 +191,9 @@ func (p proxySSL) Parse(ing *networking.Ingress) (interface{}, error) {
|
|||
config := &Config{}
|
||||
|
||||
proxysslsecret, err := parser.GetStringAnnotation(proxySSLSecretAnnotation, ing, p.annotationConfig.Annotations)
|
||||
if err != nil {
|
||||
if err != nil && !errors.Is(err, ing_errors.ErrMissingAnnotations) {
|
||||
return &Config{}, err
|
||||
}
|
||||
|
||||
} else if err == nil {
|
||||
ns, _, err := k8s.ParseNameNS(proxysslsecret)
|
||||
if err != nil {
|
||||
return &Config{}, ing_errors.NewLocationDenied(err.Error())
|
||||
|
@ -211,6 +211,7 @@ func (p proxySSL) Parse(ing *networking.Ingress) (interface{}, error) {
|
|||
return &Config{}, ing_errors.LocationDeniedError{Reason: e}
|
||||
}
|
||||
config.AuthSSLCert = *proxyCert
|
||||
}
|
||||
|
||||
config.Ciphers, err = parser.GetStringAnnotation(proxySSLCiphersAnnotation, ing, p.annotationConfig.Annotations)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue