diff --git a/pkg/addons/addons.go b/pkg/addons/addons.go index 4c4f303ebec8..790dbcb4fd09 100644 --- a/pkg/addons/addons.go +++ b/pkg/addons/addons.go @@ -174,7 +174,8 @@ func isAddonAlreadySet(addon *assets.Addon, enable bool, profile string) (bool, } func enableOrDisableAddonInternal(addon *assets.Addon, cmd command.Runner, data interface{}, enable bool, profile string) error { - files := []string{} + deployFiles := []string{} + for _, addon := range addon.Assets { var f assets.CopyableFile var err error @@ -202,9 +203,12 @@ func enableOrDisableAddonInternal(addon *assets.Addon, cmd command.Runner, data } }() } - files = append(files, fPath) + if strings.HasSuffix(fPath, ".yaml") { + deployFiles = append(deployFiles, fPath) + } } - command, err := kubectlCommand(profile, files, enable) + + command, err := kubectlCommand(profile, deployFiles, enable) if err != nil { return err } diff --git a/pkg/minikube/cluster/start.go b/pkg/minikube/cluster/start.go index 64632c0677c9..d89ec2d757a3 100644 --- a/pkg/minikube/cluster/start.go +++ b/pkg/minikube/cluster/start.go @@ -54,6 +54,7 @@ var ( vmpath.GuestCertsDir, path.Join(vmpath.GuestPersistentDir, "images"), path.Join(vmpath.GuestPersistentDir, "binaries"), + "/tmp/gvisor", } )