-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cluster claim update workflow in config-worker
- Loading branch information
1 parent
e789abc
commit de4c84f
Showing
4 changed files
with
45 additions
and
39 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
capten/config-worker/internal/crossplane/argocd_app_values.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package crossplane | ||
|
||
type Source struct { | ||
RepoURL string `json:"repoURL,omitempty"` | ||
TargetRevision string `json:"targetRevision,omitempty"` | ||
} | ||
|
||
type Dest struct { | ||
Server string `json:"server,omitempty"` | ||
Namespace string `json:"namespace,omitempty"` | ||
} | ||
|
||
type GlobalValues struct { | ||
ClusterConfigPath string `json:"clusterConfigPath,omitempty"` | ||
} | ||
|
||
type DefaultApps struct { | ||
Name string `json:"name,omitempty"` | ||
ValuesPath string `json:"valuesPath,omitempty"` | ||
RepoURL string `json:"repoURL,omitempty"` | ||
Namespace string `json:"namespace,omitempty"` | ||
Chart string `json:"chart,omitempty"` | ||
TargetRevision string `json:"targetRevision,omitempty"` | ||
} | ||
|
||
type Cluster struct { | ||
Name string `json:"name,omitempty"` | ||
Server string `json:"server,omitempty"` | ||
DefApps []DefaultApps `json:"defaultApps,omitempty"` | ||
} | ||
|
||
type ArgoCDAppValue struct { | ||
Project string `json:"project,omitempty"` | ||
Global GlobalValues `json:"global,omitempty"` | ||
Src Source `json:"source,omitempty"` | ||
Destination Dest `json:"destination,omitempty"` | ||
SyncPolicy interface{} `json:"syncPolicy,omitempty"` | ||
Compositions interface{} `json:"compositions,omitempty"` | ||
Clusters *[]Cluster `json:"clusters,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters