Skip to content

Commit

Permalink
add error when trust-bundle is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ReToCode committed Dec 18, 2023
1 parent 2a72a55 commit 7ea03f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/generator/ingress_translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ func (translator *IngressTranslator) translateIngress(ctx context.Context, ingre
if err != nil {
return nil, err
}
if trustChain == nil {
return nil, fmt.Errorf("failed to build trust-chain, as no valid CA certificate was provided. Please make sure to provide a valid trust-bundle before enabling `system-internal-tls`")
}
}

for i, rule := range ingress.Spec.Rules {
Expand Down

0 comments on commit 7ea03f4

Please sign in to comment.