Skip to content

Commit

Permalink
Remove old method for App update and debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
Oded-B committed Jul 2, 2024
1 parent 1e28e50 commit eb33944
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions internal/pkg/argocd/argocd.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,20 +271,6 @@ func SetArgoCDAppRevision(ctx context.Context, componentPath string, revision st
return nil
}

log.Debugf("=== %v ===", foundApp.Spec.Destination)

// foundApp.Spec.Source.TargetRevision = revision
// _, err = appClient.UpdateSpec(ctx, &application.ApplicationUpdateSpecRequest{
// Name: &foundApp.Name,
// Spec: &foundApp.Spec,
// AppNamespace: &foundApp.Namespace,
// })

// _, err = appClient.Update(ctx, &application.ApplicationUpdateRequest{
// Application: foundApp,
// Project: &foundApp.Spec.Project,
// })

patchType := "merge"
patch := fmt.Sprintf(`{"spec": {"source": {"targetRevision": "%s"}}}`, revision)
_, err = appClient.Patch(ctx, &application.ApplicationPatchRequest{
Expand Down

0 comments on commit eb33944

Please sign in to comment.