Skip to content

Commit

Permalink
Release 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Aug 23, 2023
1 parent d8efe2c commit 5076fbf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pkg/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 3 additions & 5 deletions pkg/utils/version/vars_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ package version

import (
"testing"

"sigs.k8s.io/kwok/pkg/consts"
)

func TestVersionInfo(t *testing.T) {
Expand All @@ -36,23 +34,23 @@ 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",
},
{
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",
},
{
name: "versionInfo to alpha but version is empty",
args: args{
version: "",
preRelease: consts.PreRelease,
preRelease: "alpha",
},
want: "",
},
Expand Down
4 changes: 2 additions & 2 deletions site/content/en/docs/generated/kwokctl_create_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5076fbf

Please sign in to comment.