Skip to content

Commit

Permalink
Prepare 1.33.0 - minikube/k8s/helm upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
rfrancom committed Jun 4, 2024
1 parent f4740b1 commit b59ca70
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# GoKube Release Notes

## Version 1.33.0 - 06/03/2024
* Bump to minikube v1.33.1, K8S v1.30.0, helm v3.15.1
* Fixed issue when adding swap memory and disk already exists, skip the creation.

## Version 1.32.0 - 04/05/2024
* Bump to minikube v1.32.0, K8S v1.28.3, helm v3.14.3
* Added swap memory option MINIKUBE_SWAP. Disabled by default (0).
Expand Down
12 changes: 6 additions & 6 deletions cmd/gokube/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ import (
)

const (
DEFAULT_KUBERNETES_VERSION = "v1.28.3"
DEFAULT_KUBECTL_VERSION = "v1.28.3"
DEFAULT_MINIKUBE_VERSION = "v1.32.0"
DEFAULT_KUBERNETES_VERSION = "v1.30.0"
DEFAULT_KUBECTL_VERSION = "v1.30.0"
DEFAULT_MINIKUBE_VERSION = "v1.33.1"
DEFAULT_MINIKUBE_MEMORY = 12288
DEFAULT_MINIKUBE_CPUS = 6
DEFAULT_MINIKUBE_SWAP = 0
DEFAULT_MINIKUBE_DISK = "20g"
DEFAULT_MINIKUBE_DNS_DOMAIN = "cluster.local"
DEFAULT_MINIKUBE_CONTAINER_RUNTIME = "docker"
DEFAULT_DOCKER_VERSION = "20.10.14"
DEFAULT_HELM_VERSION = "v3.14.3"
DEFAULT_HELM_VERSION = "v3.15.1"
DEFAULT_HELM_SPRAY_VERSION = "v4.0.10"
DEFAULT_HELM_IMAGE_VERSION = "v1.0.7"
DEFAULT_HELM_IMAGE_VERSION = "v1.0.9"
DEFAULT_HELM_PUSH_VERSION = "0.10.4"
DEFAULT_STERN_VERSION = "1.28.0"
DEFAULT_STERN_VERSION = "1.30.0"
DEFAULT_MINIAPPS_REPO = "https://thalesgroup.github.io/miniapps"
DEFAULT_GOKUBE_CHECK_IP = "192.168.99.100"
DEFAULT_GOKUBE_CIDR = "192.168.99.1/24"
Expand Down
2 changes: 1 addition & 1 deletion cmd/gokube/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
)

const (
GOKUBE_VERSION = "1.32.0"
GOKUBE_VERSION = "1.33.0"
)

var gokubeVersion string
Expand Down
9 changes: 9 additions & 0 deletions pkg/virtualbox/vbm.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ func NewVBoxManager() *VBoxCmdManager {

// CreateDisk create a disk in VBox to be used as swap
func (v *VBoxCmdManager) CreateDisk(sizeInMB int16, filePath string) error {
// Check if the disk already exists
if _, err := os.Stat(filePath); err == nil {
// Disk already exists, skip the creation
return nil
} else if !os.IsNotExist(err) {
// Some other error occurred while trying to get the file info
return err
}

size := fmt.Sprintf("--size=%d", sizeInMB)
command := []string{"createmedium", "disk", "--filename", filePath, size, "--format", "VDI"}
return v.vbm(command...)
Expand Down

0 comments on commit b59ca70

Please sign in to comment.