Skip to content

Commit 66fb2f7

Browse files
local-pv-provisioner: enhance documents
1 parent ad523c2 commit 66fb2f7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

local-pv-provisioner/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ IMAGE_VERSION = `cat ./TAG`
55
IMAGE_TAG = ghcr.io/cybozu/local-pv-provisioner:$(IMAGE_VERSION)
66
IMAGE_TAG_LATEST = ghcr.io/cybozu/local-pv-provisioner:latest
77

8+
# https://github.com/kubernetes-sigs/controller-tools/releases
89
CONTROLLER_TOOLS_VERSION = 0.19.0
910
ENVTEST_K8S_VERSION = 1.34.0
1011
export ENVTEST_K8S_VERSION

maintenance.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,15 @@ Hubble image is no longer built by the upstream. If failing to build the image,
774774
![CSA Update](./csa_update.svg)
775775

776776
1. Update version variables in `Makefile` and `e2etest/Makefile`.
777+
- `Makefile`: `CONTROLLER_TOOLS_VERSION` and `ENVTEST_K8S_VERSION`
778+
- `e2etest/Makefile`: `KUBERNETES_VERSION` and `MINIKUBE_VERSION`
777779
2. Upgrade direct dependencies listed in `go.mod`. Use `go get` or your editor's function.
780+
1. `go get -u`
781+
1. `VERSION=0.x.y go get k8s.io/api@v${VERSION} k8s.io/apimachinery@v${VERSION} k8s.io/client-go@v${VERSION}`
782+
1. `VERSION=0.x.y go get github.com/prometheus/client_golang@v${VERSION}`
783+
- Use the same version as Kubernetes's go.mod (`https://github.com/kubernetes/kubernetes/blob/<upgrading Kubernetes release version>/go.mod`).
784+
1. `VERSION=1.x.y go mod tidy -go=${VERSION}`
785+
- Use the same version as Kubernetes's go.mod (`https://github.com/kubernetes/kubernetes/blob/<upgrading Kubernetes release version>/go.mod`).
778786
3. Generate code and manifests.
779787

780788
```bash

0 commit comments

Comments
 (0)