File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
client/argocdServer/connection Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -155,16 +155,11 @@ func (impl *ArgoCDConnectionManagerImpl) getConnectionWithToken(token string) *g
155
155
}
156
156
157
157
func (impl * ArgoCDConnectionManagerImpl ) GetLatestDevtronArgoCdUserToken (authConfig * bean.AcdAuthConfig ) (string , error ) {
158
- gitOpsConfigurationStatus , err := impl .gitOpsConfigReadService .IsGitOpsConfigured ()
159
- if err != nil {
160
- impl .logger .Errorw ("error while checking if gitOps is configured" , "err" , err )
161
- return "" , err
162
- }
163
- if ! gitOpsConfigurationStatus .IsGitOpsConfigured {
164
- //here acd token only required in context for argo cd calls
165
- return "" , nil
166
- }
167
- var k8sClient * v1.CoreV1Client
158
+
159
+ var (
160
+ k8sClient * v1.CoreV1Client
161
+ err error
162
+ )
168
163
if authConfig .ClusterId == bean2 .DefaultClusterId {
169
164
k8sClient , err = impl .k8sUtil .GetCoreV1ClientInCluster ()
170
165
if err != nil {
You can’t perform that action at this time.
0 commit comments