Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Anand Kumar Singh <[email protected]>
  • Loading branch information
anandrkskd committed Oct 30, 2024
1 parent f676362 commit 9158bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/argocd/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ func (r *ReconcileArgoCD) overrideRouteTLS(tls *routev1.TLSConfig, route *routev
if tls.Key != "" || tls.Certificate != "" {
// Emit event for each instance providing users with deprecation notice for `.spec.SSO` subfields if not emitted already
if currentInstanceEventEmissionStatus, ok := DeprecationEventEmissionTracker[cr.Namespace]; !ok || !currentInstanceEventEmissionStatus.TLSInsecureWarningEmitted {
err := argoutil.CreateEvent(r.Client, "Warning", "Insecure field Used", "WARNING: .tls.key and .tls.certificate are insecure in ArgoCD CR and not recommended. Use .tls.externalCertificate to reference a TLS secret instead.", "InsecureFields", cr.ObjectMeta, cr.TypeMeta)
err := argoutil.CreateEvent(r.Client, "Warning", "Insecure field Used", "Warning: .tls.key and .tls.certificate are insecure in ArgoCD CR and not recommended. Use .tls.externalCertificate to reference a TLS secret instead.", "InsecureFields", cr.ObjectMeta, cr.TypeMeta)
if err != nil {
return err
}
Expand Down

0 comments on commit 9158bd4

Please sign in to comment.