-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump kubebuilder 3.6.0, upgrade kustomize and add support to Apple Si…
…licon
- Loading branch information
Camila Macedo
committed
Aug 5, 2022
1 parent
0a7bfd8
commit d49f112
Showing
119 changed files
with
2,857 additions
and
1,489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
changelog/fragments/bump-kubebuilder-add-kustomize.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# entries is a list of entries to include in | ||
# release notes and/or the migration guide | ||
entries: | ||
- description: Add a plugin (deploy-image/v1-alpha) for Golang projects which scaffolds the code Deploy and Manage an Operand(image). You can test it out by running `operator-sdk --group=example.com --version=v1alpha1 --kind=Memcached --image=memcached:1.6.15-alpine --image-container-command="memcached,-m=64,modern,-v" --image-container-port="11211" --run-as-user="1001" --plugins="deploy-image/v1-alpha"` [More info](https://master.book.kubebuilder.io/plugins/deploy-image-plugin-v1-alpha.html) | ||
kind: "addition" | ||
breaking: false | ||
- description: Add a plugin (grafana/v1-alpha) valid for all languages to help you generate Grafana dashboards. You can test it out by running `operator-sdk edit --plugins=grafana.kubebuilder.io/v1-alpha` [More info](https://master.book.kubebuilder.io/plugins/grafana-v1-alpha.html) | ||
kind: "addition" | ||
breaking: false | ||
- description: Add new golang plugin `go/v4-alpha` which adds support for Apple Silicon(`darwin/arm64`) | ||
kind: "addition" | ||
breaking: false | ||
- description: Fix Makefile targets to not download binaries when they are found already | ||
kind: "bugfix" | ||
breaking: false | ||
migration: | ||
header: (go/v3) Fix Makefile targets to not download binaries when they are found already | ||
body: | | ||
Update the Makefile targets by adding `test -s $(LOCALBIN)/<binary-name> ||` before the instruction to download them, see: | ||
```sh | ||
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | ||
.PHONY: kustomize | ||
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary. | ||
$(KUSTOMIZE): $(LOCALBIN) | ||
test -s $(LOCALBIN)/kustomize || { curl -s $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN); } | ||
.PHONY: controller-gen | ||
controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary. | ||
$(CONTROLLER_GEN): $(LOCALBIN) | ||
test -s $(LOCALBIN)/controller-gen || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION) | ||
.PHONY: envtest | ||
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary. | ||
$(ENVTEST): $(LOCALBIN) | ||
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | ||
``` | ||
- description: Remove the option to call `kustomize/v1` plugin alone. If you are looking to use this project as a base for you to generate other plugins, please use [Kubebuilder](https://github.com/kubernetes-sigs/kubebuilder) instead | ||
kind: "bugfix" | ||
breaking: false | ||
- description: (go/v3) Update `controller-tools` from `0.9.0` to `0.9.2`. [More info](https://github.com/kubernetes-sigs/controller-tools/releases/tag/v0.9.2) | ||
kind: "change" | ||
breaking: false | ||
migration: | ||
header: (go/v3) Update `controller-tools` from `0.9.0` to `0.9.2`. | ||
body: | | ||
In the `Makefile` file, replace `CONTROLLER_TOOLS_VERSION ?= v0.9.0` with `CONTROLLER_TOOLS_VERSION ?= v0.9.2` | ||
- description: (go/v3) Update `controller-runtime` from `v0.12.1` to `v0.12.2` and Kubernetes dependencies from `v0.24.0` to `v0.24.2`. [More info](https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.12.2) | ||
kind: "change" | ||
breaking: false | ||
migration: | ||
header: go/v3) Update `controller-runtime` from `v0.12.1` to `v0.12.2` and Kubernetes dependencies from `v0.24.0` to `v0.24.2`. | ||
body: | | ||
In the `go.mod` file, ensure the following dependencies versions and run `go mod tidy`: | ||
```go | ||
k8s.io/api v0.24.2 | ||
k8s.io/apimachinery v0.24.2 | ||
k8s.io/client-go v0.24.2 | ||
sigs.k8s.io/controller-runtime v0.12.2 | ||
``` | ||
- description: (go/v3,ansible/v1,helm/v1) Update `gcr.io/kubebuilder/kube-rbac-proxy` from `0.12.0` to `0.13.0`. [More info](https://github.com/brancz/kube-rbac-proxy/releases/tag/v0.13.0) | ||
kind: "change" | ||
breaking: false | ||
migration: | ||
header: Update `gcr.io/kubebuilder/kube-rbac-proxy` from `0.12.0` to `0.13.0` | ||
body: | | ||
In the `config/default/manager_auth_proxy_patch.yaml` file, replace `gcr.io/kubebuilder/kube-rbac-proxy:0.12.0` with `gcr.io/kubebuilder/kube-rbac-proxy:0.13.0` | ||
- description: > | ||
(ansible/v1,helm/v1) Add supports for Apple Silicon(`darwin/arm64`) and upgrade kustomize version from `v3.8.7` to `v4.5.5`. [Release Notes](https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv4.0.0) | ||
kind: "change" | ||
breaking: yes | ||
- description: > | ||
(ansible/v1,helm/v1) Add supports for Apple Silicon(`darwin/arm64`) and upgrade kustomize version from `v3.8.7` to `v4.5.5`. [Release Notes](https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv4.0.0) | ||
kind: "change" | ||
# Is this a breaking change? | ||
breaking: yes | ||
migration: | ||
header: | ||
body: | | ||
Upgrade kustomize versions from `v3.8.7` to `v4.5.5` | ||
**WARNING** If your project has customizations using kustomize you might be impacted on them. See its [Release Notes](https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv4.0.0). (Note all changes are covered by its docs) | ||
- Update the kustomize version in your Makefile: ensure that the value used for KUSTOMIZE_VERSION is `v4.5.5` | ||
- In the `config/default/kustomization.yaml` file: | ||
a) Replace: | ||
```yaml | ||
#commonLabels: | ||
# someName: someValue | ||
``` | ||
With: | ||
```yaml | ||
#labels: | ||
#- includeSelectors: true | ||
# pairs: | ||
# someName: someValue | ||
``` | ||
b) Replace: `bases:` With: `resources:` | ||
**(Valid Only for Ansible Projects)** | ||
- In the molecule/default, replace `--load_restrictor none .` with `--load-restrictor LoadRestrictionsNone` | ||
- description: > | ||
(hybrid/v1-alpha) Add supports for Apple Silicon(`darwin/arm64`) and upgrade kustomize version from `v3.8.7` to `v4.5.5`. [Release Notes](https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv4.0.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.