Skip to content

Commit

Permalink
removed events.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
ATGardner committed Jan 14, 2025
1 parent 0cffffc commit c5c4847
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3,631 deletions.
11 changes: 0 additions & 11 deletions event_reporter/utils/app_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,11 @@ package utils
import (
"encoding/json"

"github.com/argoproj/argo-cd/v2/pkg/apiclient/events"
"github.com/argoproj/argo-cd/v2/pkg/sources_server_client"
"github.com/argoproj/argo-cd/v2/reposerver/apiclient"
log "github.com/sirupsen/logrus"
)

func RepoAppVersionsToEvent(applicationVersions *apiclient.ApplicationVersions) (*events.ApplicationVersions, error) {
applicationVersionsEvents := &events.ApplicationVersions{}
applicationVersionsData, _ := json.Marshal(applicationVersions)
err := json.Unmarshal(applicationVersionsData, applicationVersionsEvents)
if err != nil {
return nil, err
}
return applicationVersionsEvents, nil
}

func SourcesAppVersionsToRepo(logCtx *log.Logger, applicationVersions *sources_server_client.AppVersionResult) *apiclient.ApplicationVersions {
if applicationVersions == nil {
return nil
Expand Down
Loading

0 comments on commit c5c4847

Please sign in to comment.