From 5076fbfef9bc9e1c43fe5f797ca5d30e638cd4ff Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Wed, 23 Aug 2023 14:24:14 +0800 Subject: [PATCH] Release 0.4 --- pkg/consts/consts.go | 4 ++-- pkg/utils/version/vars_test.go | 8 +++----- site/content/en/docs/generated/kwokctl_create_cluster.md | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/pkg/consts/consts.go b/pkg/consts/consts.go index 9a52aba2b..17b084837 100644 --- a/pkg/consts/consts.go +++ b/pkg/consts/consts.go @@ -24,13 +24,13 @@ var ( // Version is the version of the project. // It will be overwritten during the `make build` process. - Version = "0.3.0" + Version = "0.4.0" BinaryPrefix = "https://github.com/kubernetes-sigs/kwok/releases/download" ImagePrefix = "registry.k8s.io/kwok" // PreRelease is the pre-release version of the project. // It will be overwritten during the `make build` process. - PreRelease = "alpha" + PreRelease = "GA" // KubeVersion is the version of Kubernetes. // It will be overwritten during the `make build` process. diff --git a/pkg/utils/version/vars_test.go b/pkg/utils/version/vars_test.go index 73e85cf9f..76c7727e8 100644 --- a/pkg/utils/version/vars_test.go +++ b/pkg/utils/version/vars_test.go @@ -18,8 +18,6 @@ package version import ( "testing" - - "sigs.k8s.io/kwok/pkg/consts" ) func TestVersionInfo(t *testing.T) { @@ -36,7 +34,7 @@ func TestVersionInfo(t *testing.T) { name: "versionInfo to alpha", args: args{ version: "v1.2.3", - preRelease: consts.PreRelease, + preRelease: "alpha", }, want: "1.2.3-alpha", }, @@ -44,7 +42,7 @@ func TestVersionInfo(t *testing.T) { name: "versionInfo to alpha but version is not v", args: args{ version: "1.2.3", - preRelease: consts.PreRelease, + preRelease: "alpha", }, want: "1.2.3-alpha", }, @@ -52,7 +50,7 @@ func TestVersionInfo(t *testing.T) { name: "versionInfo to alpha but version is empty", args: args{ version: "", - preRelease: consts.PreRelease, + preRelease: "alpha", }, want: "", }, diff --git a/site/content/en/docs/generated/kwokctl_create_cluster.md b/site/content/en/docs/generated/kwokctl_create_cluster.md index 6a08747fb..fe02f8994 100644 --- a/site/content/en/docs/generated/kwokctl_create_cluster.md +++ b/site/content/en/docs/generated/kwokctl_create_cluster.md @@ -63,10 +63,10 @@ kwokctl create cluster [flags] --kube-scheduler-port uint32 Port of kube-scheduler given to the host, only for binary and docker/podman/nerdctl runtime --kubeconfig string The path to the kubeconfig file will be added to the newly created cluster and set to current-context (default "~/.kube/config") --kwok-controller-binary string Binary of kwok-controller, only for binary runtime - (default "https://github.com/kubernetes-sigs/kwok/releases/download/v0.3.0/kwok-linux-amd64") + (default "https://github.com/kubernetes-sigs/kwok/releases/download/v0.4.0/kwok-linux-amd64") --kwok-controller-image string Image of kwok-controller, only for docker/podman/nerdctl/kind/kind-podman runtime '${KWOK_IMAGE_PREFIX}/kwok:${KWOK_VERSION}' - (default "registry.k8s.io/kwok/kwok:v0.3.0") + (default "registry.k8s.io/kwok/kwok:v0.4.0") --prometheus-binary string Binary of Prometheus, only for binary runtime --prometheus-binary-tar string Tar of Prometheus, if --prometheus-binary is set, this is ignored, only for binary runtime (default "https://github.com/prometheus/prometheus/releases/download/v2.44.0/prometheus-2.44.0.linux-amd64.tar.gz")