Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anil-sarodh committed Jan 21, 2024
1 parent ebf13c5 commit 774d9bf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions capten/common-pkg/plugins/argocd/applications.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package argocd
import (
"context"
"encoding/json"
"fmt"

"github.com/argoproj/argo-cd/v2/pkg/apiclient/application"
"github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
Expand Down Expand Up @@ -106,8 +105,6 @@ func (a *ArgoCDClient) List(req *model.ListRequestPayload) (json.RawMessage, err
func (a *ArgoCDClient) TriggerAppSync(ctx context.Context, namespace, name string) (*v1alpha1.Application, error) {
conn, app, err := a.client.NewApplicationClient()
if err != nil {
fmt.Println("conn")
fmt.Println(err.Error())
return nil, err
}

Expand All @@ -122,8 +119,6 @@ func (a *ArgoCDClient) TriggerAppSync(ctx context.Context, namespace, name strin
Limit: 3,
}})
if err != nil {
fmt.Println("Sync")
fmt.Println(err.Error())
return nil, err
}

Expand Down
6 changes: 0 additions & 6 deletions capten/common-pkg/plugins/argocd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,11 @@ func NewClient(logger logging.Logger) (*ArgoCDClient, error) {

k8sClient, err := k8s.NewK8SClient(logger)
if err != nil {
fmt.Println("k8sClient")
fmt.Println(err)
return nil, err
}

res, err := k8sClient.GetSecretData("argo-cd", "argocd-initial-admin-secret")
if err != nil {
fmt.Println("res")
fmt.Println(err)
return nil, err
}

Expand All @@ -49,8 +45,6 @@ func NewClient(logger logging.Logger) (*ArgoCDClient, error) {

client, err := getNewAPIClient(cfg)
if err != nil {
fmt.Println("getNewAPIClient")
fmt.Println(err)
return nil, err
}

Expand Down
2 changes: 0 additions & 2 deletions capten/config-worker/internal/app_config/app_git_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ func (ca *AppGitConfigHelper) SyncArgoCDApp(ctx context.Context, ns, resName str

_, err = client.TriggerAppSync(ctx, ns, resName)
if err != nil {
fmt.Println("TriggerAppSync")
fmt.Println(err.Error())
return err
}

Expand Down

0 comments on commit 774d9bf

Please sign in to comment.