Skip to content

Commit

Permalink
Add a test to verify the TLS config
Browse files Browse the repository at this point in the history
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
  • Loading branch information
chetan-rns committed May 20, 2024
1 parent 7509196 commit 0cb8db0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/v1beta1/argocd_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,9 @@ func (argocd *ArgoCD) IsDeletionFinalizerPresent() bool {
return false
}

// WantsAutoTLS returns true if the user has configured a route with reencrypt or we default to reencrypt.
// WantsAutoTLS returns true if:
// 1. user has configured a route with reencrypt.
// 2. user has not configured TLS and we default to reencrypt.
func (s *ArgoCDServerSpec) WantsAutoTLS() bool {
return s.Route.TLS == nil ||
(s.Route.TLS != nil && s.Route.TLS.Termination == routev1.TLSTerminationReencrypt)
Expand Down

0 comments on commit 0cb8db0

Please sign in to comment.