@@ -27,7 +27,6 @@ import (
27
27
28
28
"github.com/devtron-labs/devtron/api/bean"
29
29
util2 "github.com/devtron-labs/devtron/util"
30
- "github.com/devtron-labs/devtron/util/argo"
31
30
"github.com/go-pg/pg"
32
31
"go.uber.org/zap"
33
32
"sigs.k8s.io/yaml"
@@ -233,7 +232,7 @@ func (impl SSOLoginServiceImpl) updateDexConfig(request *bean.SSOLoginDto) (bool
233
232
retryCount := 0
234
233
for ! updateSuccess && retryCount < 3 {
235
234
retryCount = retryCount + 1
236
- secret , err := impl .K8sUtil .GetSecret (argo . DEVTRONCD_NAMESPACE , impl .devtronSecretConfig .DevtronSecretName , k8sClient )
235
+ secret , err := impl .K8sUtil .GetSecret (impl . devtronSecretConfig . DevtronDexSecretNamespace , impl .devtronSecretConfig .DevtronSecretName , k8sClient )
237
236
if err != nil {
238
237
impl .logger .Errorw ("exception in fetching configmap" , "error" , err )
239
238
return flag , err
@@ -250,7 +249,7 @@ func (impl SSOLoginServiceImpl) updateDexConfig(request *bean.SSOLoginDto) (bool
250
249
data ["dex.config" ] = []byte (updatedData ["dex.config" ])
251
250
data ["url" ] = []byte (request .Url )
252
251
secret .Data = data
253
- _ , err = impl .K8sUtil .UpdateSecret (argo . DEVTRONCD_NAMESPACE , secret , k8sClient )
252
+ _ , err = impl .K8sUtil .UpdateSecret (impl . devtronSecretConfig . DevtronDexSecretNamespace , secret , k8sClient )
254
253
if err != nil {
255
254
impl .logger .Warnw ("config map update failed for sso config" , "err" , err )
256
255
continue
0 commit comments