Skip to content

Commit

Permalink
Add nil check before IsMissingAnnotations
Browse files Browse the repository at this point in the history
  • Loading branch information
vjacynycz committed Apr 4, 2024
1 parent 378dcca commit db451a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ingress/annotations/authtls/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (a authTLS) Parse(ing *networking.Ingress) (interface{}, error) {
config := &Config{}

tlsauthsecret, err := parser.GetStringAnnotation("auth-tls-vault", ing)
if !errors.IsMissingAnnotations(err) {
if err != nil && !errors.IsMissingAnnotations(err) {
return config, err
}
// If there is no secret in vault check for K8s secret
Expand Down

0 comments on commit db451a7

Please sign in to comment.