GeezerVison is showing github.com — fix compile issue · PastureStack/cli@e1a0099
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: cmd/catalog.go +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
9 | 9 |
|
10 | 10 | "github.com/rancher/go-rancher/catalog" |
11 | 11 | "github.com/rancher/go-rancher/v2" |
| 12 | + "github.com/rancher/rancher-compose-executor/utils" |
12 | 13 | "github.com/urfave/cli" |
13 | 14 | ) |
14 | 15 |
|
@@ -106,7 +107,7 @@ func isInCSV(value, csv string) bool { |
106 | 107 | return false |
107 | 108 | } |
108 | 109 |
|
109 | | -func isOrchestrationSupported(ctx *cli.Context, proj *client.Project, labels map[string]interface{}) bool { |
| 110 | +func isOrchestrationSupported(ctx *cli.Context, proj *client.Project, labels map[string]string) bool { |
110 | 111 | // Only check for system templates |
111 | 112 | if !ctx.Bool("system") { |
112 | 113 | return true |
@@ -287,7 +288,7 @@ func catalogInstall(ctx *cli.Context) error { |
287 | 288 | case "kubernetes": |
288 | 289 | stack, err := c.KubernetesStack.Create(&client.KubernetesStack{ |
289 | 290 | Name: stackName, |
290 | | - Templates: templateVersion.Files, |
| 291 | + Templates: utils.ToMapInterface(templateVersion.Files), |
291 | 292 | ExternalId: externalID, |
292 | 293 | Environment: answers, |
293 | 294 | System: ctx.Bool("system"), |
|