Skip to content

Commit

Permalink
Merge pull request #6512 from tstromberg/gvisor-fixes
Browse files Browse the repository at this point in the history
gvisor fixes for v1.7.0
  • Loading branch information
tstromberg authored Feb 5, 2020
2 parents 4e9e37b + 77f74d8 commit 950fc79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/addons/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions pkg/minikube/cluster/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ var (
vmpath.GuestCertsDir,
path.Join(vmpath.GuestPersistentDir, "images"),
path.Join(vmpath.GuestPersistentDir, "binaries"),
"/tmp/gvisor",
}
)

Expand Down

0 comments on commit 950fc79

Please sign in to comment.