Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

Commit e3e45c7

Browse files
committed
fixup! Allow having 2 or more of kanvas.yaml, kanvas.jsonnet, kanvas.template.jsonnet
1 parent 6503ef7 commit e3e45c7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

driver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ func newDriver(id, dir string, c Component, opts Options) (*Driver, error) {
232232
dockerBuildXCheckAvailability,
233233
)
234234

235-
if c.Docker.PushToKind != nil {
235+
if c.Docker.Kind != nil {
236236
args := []interface{}{"load", "docker-image"}
237-
if c.Docker.PushToKind.ClusterName != "" {
238-
args = append(args, "--name", c.Docker.PushToKind.ClusterName)
237+
if c.Docker.Kind.ClusterName != "" {
238+
args = append(args, "--name", c.Docker.Kind.ClusterName)
239239
}
240240
args = append(args, image)
241241
kindLoadImageCmd := cmd.New(

kanvas.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ type Docker struct {
7676
ArgsFrom map[string]string `yaml:"argsFrom"`
7777
// TagsFrom is a list of tags to be added to the image, derived from the outputs of other components
7878
TagsFrom []string `yaml:"tagsFrom"`
79-
// PushToKind configures kanvas's behavior when pushing the image to a local kind cluster
79+
// Kind configures kanvas's behavior when pushing the image to a local kind cluster
8080
// An non-nil value means that the image will be pushed to a local kind cluster.
8181
// We don't auto-determine the necessity of pushing to kind, so you need to set this explicitly.
8282
// This is to give you freedom to push to a remote registry even when you are using kind.
83-
PushToKind *Kind `yaml:"pushToKind,omitempty"`
83+
Kind *Kind `yaml:"kind,omitempty"`
8484
}
8585

8686
// Kind contains settings for pushing the image to a local kind cluster

0 commit comments

Comments
 (0)