Skip to content

Commit 45939e9

Browse files
Fix context location in tilt-prepare
Signed-off-by: killianmuldoon <[email protected]>
1 parent e70fef8 commit 45939e9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

hack/tools/tilt-prepare/main.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,12 @@ type tiltSettings struct {
8282
}
8383

8484
type providerSettings struct {
85-
Name string `json:"name,omitempty"`
86-
Context *string `json:"context"`
85+
Name string `json:"name,omitempty"`
86+
Config *providerConfig `json:"config,omitempty"`
87+
}
88+
89+
type providerConfig struct {
90+
Context *string `json:"context,omitempty"`
8791
}
8892

8993
type debugConfig struct {
@@ -309,8 +313,8 @@ func loadProviders(r string) (map[string]string, error) {
309313

310314
providerContexts := map[string]string{}
311315
for _, p := range providerData {
312-
if p.Context != nil {
313-
contextPath = r + "/" + *p.Context
316+
if p.Config != nil && p.Config.Context != nil {
317+
contextPath = r + "/" + *p.Config.Context
314318
} else {
315319
contextPath = r
316320
}

0 commit comments

Comments
 (0)