remove commented code, revert driver.go
parent
f549634f59
commit
f4ace95f5b
|
@ -159,14 +159,10 @@ func EnableOrDisableAddon(cc *config.ClusterConfig, name, val string) error {
|
||||||
|
|
||||||
// check addon status before enabling/disabling it
|
// check addon status before enabling/disabling it
|
||||||
if isAddonAlreadySet(cc, addon, enable) {
|
if isAddonAlreadySet(cc, addon, enable) {
|
||||||
// if addon.Name() == "gcp-auth" {
|
|
||||||
// return nil
|
|
||||||
// }
|
|
||||||
switch addon.Name() {
|
switch addon.Name() {
|
||||||
case "gcp-auth", "storage-provisioner", "default-storageclass":
|
case "gcp-auth", "storage-provisioner", "default-storageclass":
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
// klog.Warningf("addon %s should already be in state %s", name, val)
|
|
||||||
out.WarningT("addon {{.name}} is already set to {{.val}}", out.V{"name": name, "val": val})
|
out.WarningT("addon {{.name}} is already set to {{.val}}", out.V{"name": name, "val": val})
|
||||||
if !enable {
|
if !enable {
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -207,10 +207,7 @@ func (d *Driver) createHost() (*hyperkit.HyperKit, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: handle the rest of our settings.
|
// TODO: handle the rest of our settings.
|
||||||
|
h.Kernel = d.ResolveStorePath("bzimage")
|
||||||
fmt.Printf("abc xyz")
|
|
||||||
// h.Kernel = d.ResolveStorePath("bzimage")
|
|
||||||
h.Kernel = d.ResolveStorePath("vmlinuz")
|
|
||||||
h.Initrd = d.ResolveStorePath("initrd")
|
h.Initrd = d.ResolveStorePath("initrd")
|
||||||
h.VMNet = true
|
h.VMNet = true
|
||||||
h.ISOImages = []string{d.ResolveStorePath(isoFilename)}
|
h.ISOImages = []string{d.ResolveStorePath(isoFilename)}
|
||||||
|
@ -423,14 +420,11 @@ func (d *Driver) Stop() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Driver) extractKernel(isoPath string) error {
|
func (d *Driver) extractKernel(isoPath string) error {
|
||||||
log.Infof("abc123a")
|
|
||||||
fmt.Print("abc333")
|
|
||||||
for _, f := range []struct {
|
for _, f := range []struct {
|
||||||
pathInIso string
|
pathInIso string
|
||||||
destPath string
|
destPath string
|
||||||
}{
|
}{
|
||||||
// {"/boot/bzimage", "bzimage"},
|
{"/boot/bzimage", "bzimage"},
|
||||||
{"/boot/vmlinuz", "bzimage"},
|
|
||||||
{"/boot/initrd", "initrd"},
|
{"/boot/initrd", "initrd"},
|
||||||
} {
|
} {
|
||||||
fullDestPath := d.ResolveStorePath(f.destPath)
|
fullDestPath := d.ResolveStorePath(f.destPath)
|
||||||
|
|
Loading…
Reference in New Issue