diff --git a/api/deployments/component_handler.go b/api/deployments/component_handler.go index 0e1d36c3..172eefae 100644 --- a/api/deployments/component_handler.go +++ b/api/deployments/component_handler.go @@ -42,7 +42,7 @@ func (deploy *deployHandler) GetComponentsForDeployment(ctx context.Context, app if err != nil { return nil, err } - secretList, err := kubequery.GetSecretsForEnvironment(ctx, deploy.accounts.UserAccount.Client, appName, envName, *noJobPayloadReq) + secretList, err := kubequery.GetSecretsForEnvironment(ctx, deploy.accounts.ServiceAccount.Client, appName, envName, *noJobPayloadReq) if err != nil { return nil, err }