Skip to content

Commit a34b8c4

Browse files
authored
fix(plugins): add missed repoURL in ArgoCD plugin (#8712)
1 parent b51a197 commit a34b8c4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

backend/plugins/argocd/api/remote_api.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ func listArgocdRemoteScopes(
6363
} `json:"metadata"`
6464
Spec struct {
6565
Project string `json:"project"`
66+
Source struct {
67+
RepoURL string `json:"repoURL"`
68+
} `json:"source"`
6669
} `json:"spec"`
6770
} `json:"items"`
6871
}
@@ -107,6 +110,9 @@ func listArgocdRemoteScopes(
107110
} `json:"metadata"`
108111
Spec struct {
109112
Project string `json:"project"`
113+
Source struct {
114+
RepoURL string `json:"repoURL"`
115+
} `json:"source"`
110116
} `json:"spec"`
111117
} `json:"items"`
112118
}
@@ -126,6 +132,7 @@ func listArgocdRemoteScopes(
126132
Name: item.Metadata.Name,
127133
Namespace: item.Metadata.Namespace,
128134
Project: item.Spec.Project,
135+
RepoURL: item.Spec.Source.RepoURL,
129136
}
130137
app.ConnectionId = connection.ID
131138

backend/plugins/argocd/models/application.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type ArgocdApplication struct {
3131
Name string `gorm:"type:varchar(255);primaryKey" json:"name" mapstructure:"name" validate:"required"`
3232
Namespace string `gorm:"type:varchar(255)" json:"namespace" mapstructure:"namespace"`
3333
Project string `gorm:"type:varchar(255)" json:"project" mapstructure:"project"`
34-
RepoURL string `gorm:"type:varchar(500)" json:"repoUrl" mapstructure:"repoUrl"`
34+
RepoURL string `gorm:"type:varchar(500)" json:"repoURL" mapstructure:"repoURL"`
3535
Path string `gorm:"type:varchar(255)" json:"path" mapstructure:"path"`
3636
TargetRevision string `gorm:"type:varchar(255)" json:"targetRevision" mapstructure:"targetRevision"`
3737
DestServer string `gorm:"type:varchar(255)" json:"destServer" mapstructure:"destServer"`

0 commit comments

Comments
 (0)