Skip to content

Commit

Permalink
fix: 'argocd-server-tls' Secret should be loaded from informer (#14522)…
Browse files Browse the repository at this point in the history
… (#14547)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
  • Loading branch information
gcp-cherry-pick-bot[bot] and alexmt authored Jul 17, 2023
1 parent 490fb79 commit 687323f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/settings/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ func (mgr *SettingsManager) updateSettingsFromSecret(settings *ArgoCDSettings, a
// return values are nil, no external secret has been configured.
func (mgr *SettingsManager) externalServerTLSCertificate() (*tls.Certificate, error) {
var cert tls.Certificate
secret, err := mgr.clientset.CoreV1().Secrets(mgr.namespace).Get(mgr.ctx, externalServerTLSSecretName, metav1.GetOptions{})
secret, err := mgr.secrets.Secrets(mgr.namespace).Get(externalServerTLSSecretName)
if err != nil {
if apierr.IsNotFound(err) {
return nil, nil
Expand Down

0 comments on commit 687323f

Please sign in to comment.