Skip to content

Commit

Permalink
Bump to minikube 1.28.0, K8S 1.24.8, helm 3.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe VILA committed Nov 22, 2022
1 parent 9dda3d9 commit 5c3d17a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 21 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# GoKube Release Notes

## Version 1.28.0 - 11/16/2022
* Bump to minikube v1.28.0, K8S v1.24.8, helm v3.10.2

Please note v1.27.1 is not mounting Windows user directory inside minikube VM (because of a minikube [issue](https://github.com/kubernetes/minikube/issues/14465))

## Version 1.27.1 - 10/17/2022
**NOTE: Starting from this version, gokube is only compatible with helm 3.7+ (major change is chart push plugin command name is now 'cm-push' to not clash with new helm 3.7+ OCI 'push' command)**

Expand Down
40 changes: 24 additions & 16 deletions cmd/gokube/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,28 +111,28 @@ func resetVBLease(hostOnlyCIDR string) error {
}
}

func configureHelmRepositories(localRepoIp string) error {
err := helm.RepoAdd("chartmuseum", "https://chartmuseum.github.io/charts")
if err != nil {
return fmt.Errorf("cannot add chartmuseum repo: %w", err)
}
err = helm.RepoAdd("miniapps", miniappsRepo)
func setupMiniappsHelmRepository() error {
err := helm.RepoAdd("miniapps", miniappsRepo)
if err != nil {
return fmt.Errorf("cannot add miniapps repo: %w", err)
}
err = helm.RepoAdd("minikube", "http://"+localRepoIp+":32767")
if err != nil {
fmt.Printf("Warning: cannot add minikube repo: %s\n", err)
}
err = helm.RepoUpdate()
if err != nil {
return fmt.Errorf("cannot update helm repositories: %w", err)
}
return nil
}

func installChartMuseum() error {
err := helm.Upgrade("chartmuseum/chartmuseum", "", "chartmuseum", "kube-system", "env.open.DISABLE_API=false,env.open.ALLOW_OVERWRITE=true,service.type=NodePort,service.nodePort=32767", "")
func installChartMuseum(localRepoIp string) error {
err := helm.RepoAdd("chartmuseum", "https://chartmuseum.github.io/charts")
if err != nil {
return fmt.Errorf("cannot add chartmuseum repo: %w", err)
}
err = helm.RepoUpdate()
if err != nil {
return fmt.Errorf("cannot update helm repositories: %w", err)
}
err = helm.Upgrade("chartmuseum/chartmuseum", "", "chartmuseum", "kube-system", "env.open.DISABLE_API=false,env.open.ALLOW_OVERWRITE=true,service.type=NodePort,service.nodePort=32767", "")
if err != nil {
return fmt.Errorf("cannot install chartmuseum: %w", err)
}
Expand Down Expand Up @@ -164,6 +164,14 @@ func installChartMuseum() error {
}
}
}
err = helm.RepoAdd("minikube", "http://"+localRepoIp+":32767")
if err != nil {
fmt.Printf("Warning: cannot add minikube repo: %s\n", err)
}
err = helm.RepoUpdate()
if err != nil {
return fmt.Errorf("cannot update helm repositories: %w", err)
}
return nil
}

Expand Down Expand Up @@ -300,14 +308,14 @@ func initRun(cmd *cobra.Command, args []string) error {
return fmt.Errorf("cannot switch K8S context to minikube: %w", err)
}

fmt.Println("Configuring helm repositories...")
err = configureHelmRepositories(minikubeIP)
fmt.Println("Installing ChartMuseum...")
err = installChartMuseum(minikubeIP)
if err != nil {
return err
}

fmt.Println("Installing ChartMuseum...")
err = installChartMuseum()
fmt.Println("Configuring miniapps repository...")
err = setupMiniappsHelmRepository()
if err != nil {
return err
}
Expand Down
8 changes: 4 additions & 4 deletions cmd/gokube/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ import (
)

const (
DEFAULT_KUBERNETES_VERSION = "v1.22.15"
DEFAULT_KUBECTL_VERSION = "v1.22.15"
DEFAULT_MINIKUBE_VERSION = "v1.27.1"
DEFAULT_KUBERNETES_VERSION = "v1.24.8"
DEFAULT_KUBECTL_VERSION = "v1.24.8"
DEFAULT_MINIKUBE_VERSION = "v1.28.0"
DEFAULT_MINIKUBE_MEMORY = 8192
DEFAULT_MINIKUBE_CPUS = 4
DEFAULT_MINIKUBE_DISK = "20g"
DEFAULT_MINIKUBE_DNS_DOMAIN = "cluster.local"
DEFAULT_DOCKER_VERSION = "20.10.14"
DEFAULT_HELM_VERSION = "v3.10.1"
DEFAULT_HELM_VERSION = "v3.10.2"
DEFAULT_HELM_SPRAY_VERSION = "v4.0.10"
DEFAULT_HELM_IMAGE_VERSION = "v1.0.7"
DEFAULT_HELM_PUSH_VERSION = "0.10.3"
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.27.1"
GOKUBE_VERSION = "1.28.0"
)

var gokubeVersion string
Expand Down

0 comments on commit 5c3d17a

Please sign in to comment.