v1.17.0
(go/v3) Upgrade go and dependencies
Upgrade controller-runtime from 0.10.0
to 0.11.0
, k8s from 1.22
to 1.23
and controller-gen from v0.0.7
to v0.8.0
. Following the steps to update your project.
- Update the go.mod file with:
go 1.17
require (
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.17.0
k8s.io/api v0.23.0
k8s.io/apimachinery v0.23.0
k8s.io/client-go v0.23.0
sigs.k8s.io/controller-runtime v0.11.0
)
- Run
go mod tidy
Now, let’s update the Makefile targets accordingly:
- Replace
ENVTEST_K8S_VERSION = 1.22
withENVTEST_K8S_VERSION = 1.23
- Replace
sigs.k8s.io/controller-tools/cmd/controller-gen@v0.7.0
withsigs.k8s.io/controller-tools/cmd/controller-gen@v0.8.0
- Run
make manifests
andmake generate
to ensure that you will update your manifests with the new versions - You might want to run
make all
to ensure that all updates were done accordinly and succeffully
See #5505 for more details.
Reduce debug log level for the sidecar container kube-rbac-proxy from 10 to 0
Update the file config/default/manager_auth_proxy_patch.yaml
by replacing "--v=10"
with "--v=0"
See #5505 for more details.
Add resource requests and limits to kube-rbac-proxy
Update the file config/default/manager_auth_proxy_patch.yaml
by adding:
...
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 5m
memory: 64Mi
See #5505 for more details.
Last modified February 3, 2022: Release v1.17.0 (#5541) (704b02a9)
当前内容版权归 operatorframework.io 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 operatorframework.io .