Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump versions for k8s 1.24 #5843

Merged
merged 29 commits into from Jun 10, 2022
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
23ceb3c
Bump versions for k8s 1.24
asmacdo Jun 8, 2022
0cf7b68
updates to resolve test failures
everettraven Jun 9, 2022
1cf485a
update changelog
everettraven Jun 9, 2022
668b932
update sanity go version
everettraven Jun 9, 2022
b896866
update to go 1.18
everettraven Jun 9, 2022
c86b4f7
updates for golangci-lint
everettraven Jun 9, 2022
5fcb47a
update some go1.18 lint issues
everettraven Jun 9, 2022
20b71e9
commit go.mod
everettraven Jun 9, 2022
c192f3c
update more lint problems
everettraven Jun 9, 2022
0b0083c
update java plugin
everettraven Jun 9, 2022
4c9c554
Merge branch 'master' into 2142-bump-k8s124
everettraven Jun 9, 2022
cdd2ae2
update go.mod
everettraven Jun 9, 2022
b053e48
update actions to use go 1.18
everettraven Jun 9, 2022
b7b0924
update changelog
everettraven Jun 9, 2022
3be29e0
update changelog as per review
everettraven Jun 9, 2022
3692d27
update changelog
everettraven Jun 9, 2022
2ff0f7a
update changelog
everettraven Jun 9, 2022
1974fe0
update changelog
everettraven Jun 9, 2022
4ad8f19
update changelog
everettraven Jun 9, 2022
e3cca5f
update changelog
everettraven Jun 9, 2022
d7cde37
updates to changelog per reviews
everettraven Jun 9, 2022
1ccecca
more changelog
everettraven Jun 9, 2022
b30c7a8
address nits
everettraven Jun 9, 2022
d3af0c6
update opm
everettraven Jun 10, 2022
7493c7a
update Go in docker images
everettraven Jun 10, 2022
729873c
update go in docs
everettraven Jun 10, 2022
9e71934
add newline to changelog
everettraven Jun 10, 2022
9a5fbdd
add opm detailed entries
everettraven Jun 10, 2022
c7bb4f8
fix changelog failure
everettraven Jun 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: install
everettraven marked this conversation as resolved.
Show resolved Hide resolved
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18

- name: gpg init
if: github.event_name != 'pull_request'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-ansible.yml
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand All @@ -43,7 +43,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-go.yml
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
everettraven marked this conversation as resolved.
Show resolved Hide resolved
with:
go-version: 1.17
go-version: 1.18
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand All @@ -43,7 +43,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-helm.yml
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-sanity.yml
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
id: go
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -134,7 +134,7 @@ test-sanity: generate fix ## Test repo formatting, linting, etc.
./hack/check-license.sh
./hack/check-error-log-msg-format.sh
go vet ./...
$(SCRIPTS_DIR)/fetch golangci-lint 1.31.0 && $(TOOLS_DIR)/golangci-lint run
$(SCRIPTS_DIR)/fetch golangci-lint 1.46.2 && $(TOOLS_DIR)/golangci-lint run
git diff --exit-code # diff again to ensure other checks don't change repo

.PHONY: test-docs
Expand Down
144 changes: 144 additions & 0 deletions changelog/fragments/k8s-1.24-bump.yaml
@@ -0,0 +1,144 @@
# entries is a list of entries to include in
# release notes and/or the migration guide

# TODO(everettraven): update changelog
entries:
- description: >
For Go (go/v3) and Helm Hybrid (hybrid.helm/v1-alpha) language based operators: Upgrade Kubernetes dependencies from `1.23` to `1.24` and controller-gen from `v0.8.0` to `v0.9.0`

# kind is one of:
# - addition
# - change
# - deprecation
# - removal
# - bugfix
kind: "change"

# Is this a breaking change?
breaking: false

# Migration can be defined to automatically add a section to
# the migration guide. This is required for breaking changes.
migration:
header: Go (go/v3) and Helm Hybrid (hybrid.helm/v1-alpha) language based operators - Upgrade Kubernetes dependencies from `1.23` to `1.24` and controller-gen from `v0.8.0` to `v0.9.0`
body: |
To update your project to support Kubernetes 1.24:

1. In `go.mod`:

- Replace `k8s.io/api v0.23.5` with `k8s.io/api v0.24.0`
- Replace `k8s.io/apimachinery v0.23.5` with `k8s.io/apimachinery v0.24.0`
- Replace `k8s.io/client-go v0.23.5` with `k8s.io/client-go v0.24.0`
everettraven marked this conversation as resolved.
Show resolved Hide resolved
- Replace `sigs.k8s.io/controller-runtime v0.11.2` with `sigs.k8s.io/controller-runtime v0.12.1`
- Hybrid Helm (hybrid) only: Replace `github.com/operator-framework/helm-operator-plugins v0.0.11` with `github.com/operator-framework/helm-operator-plugins v0.0.12-0.20220608155702-d3967d2ae2ac`

2. Run `go mod tidy` to ensure all dependencies are upgraded

3. In `Makefile`:
- Replace `CONTROLLER_TOOLS_VERSION ?= 0.8.0` with `CONTROLLER_TOOLS_VERSION ?= 0.9.0`
everettraven marked this conversation as resolved.
Show resolved Hide resolved
- Replace `ENVTEST_K8S_VERSION = 1.23` with `ENVTEST_K8S_VERSION = 1.24`

4. Run `make` to run all make targets

- description: >
For Go (go/v3) and Hybrid Helm (hybrid.helm/v1-alpha) language based operators: Add support for Go 1.18

# kind is one of:
# - addition
# - change
# - deprecation
# - removal
# - bugfix
kind: "addition"

# Is this a breaking change?
breaking: false

# Migration can be defined to automatically add a section to
# the migration guide. This is required for breaking changes.
migration:
header: Go (go/v3) and Hybrid Helm (hybrid.helm/v1-alpha) language based operators - Add support for Go 1.18
body: |
To update your project to use Go 1.18:

1. In the `go.mod` file:

- Replace `go 1.17` with `go 1.18`

2. Run `go mod tidy` to ensure all dependencies are upgraded

- description: >
For `operator-sdk bundle validate` command and GoodPractices validator (`--select-optional name=good-practices`): fix channel naming validation [More info](https://github.com/operator-framework/api/pull/231)

# kind is one of:
# - addition
# - change
# - deprecation
# - removal
# - bugfix
kind: "bugfix"

# Is this a breaking change?
breaking: false

- description: >
For `operator-sdk bundle validate` command and GoodPractices validator (`--select-optional name=good-practices`): Add CRD description check validation [More info](https://github.com/operator-framework/api/pull/234)

# kind is one of:
# - addition
# - change
# - deprecation
# - removal
# - bugfix
kind: "addition"

# Is this a breaking change?
breaking: false

- description: >
For `operator-sdk bundle validate` command and GoodPractices validator (`--select-optional name=good-practices`): Add a new check to warn authors when permissions to create CRDs are found [More info](https://github.com/operator-framework/api/pull/241)

# kind is one of:
# - addition
# - change
# - deprecation
# - removal
# - bugfix
everettraven marked this conversation as resolved.
Show resolved Hide resolved
kind: "addition"
everettraven marked this conversation as resolved.
Show resolved Hide resolved

# Is this a breaking change?
breaking: false
everettraven marked this conversation as resolved.
Show resolved Hide resolved

- description: >
For Helm (helm/v1) and Hybrid Helm (hybrid.helm/v1-alpha) language based operators: Upgrade helm from `v3.6.2` to `v3.9.0`
breaking: false

- description: >
For Ansible (ansible/v1) and Helm (helm/v1) language based operators: change the default value for the manager.option LeaderElectionResourceLock from `comfigmaps` to `configmapsleases` to allow a safe transition to use the leases option on the future. [More info](https://github.com/kubernetes-sigs/controller-runtime/pull/1903)
breaking: false

- description: >
For Quarkus (quarkus/v1-alpha) language based operator: add bundle generation [More info](https://github.com/operator-framework/java-operator-plugins/pull/84)
breaking: false

- description: >
For Quarkus (quarkus/v1-alpha) language based operator: upgrade dependency from `v0.0.3` to `v0.5.1` [More info](https://github.com/operator-framework/java-operator-plugins/releases)
breaking: false

- description: >
For Helm Hybrid (hybrid.helm/v1-alpha) language based operator: Upgrade dependency from `v0.0.10` to `v0.0.11`. [More info](https://github.com/operator-framework/helm-operator-plugins/releases)
breaking: false

- description: >
For Go (go/v3, go/v2), Ansible (ansible/v1), Helm (helm/v1), and Helm Hybrid (hybrid.helm/v1-alpha) language based operators: Bump OPM version from `v1.19.1` to `v1.23.0`
camilamacedo86 marked this conversation as resolved.
Show resolved Hide resolved
everettraven marked this conversation as resolved.
Show resolved Hide resolved
breaking: false
migration:
header: For Go (go/v3, go/v2), Ansible (ansible/v1), Helm (helm/v1), and Helm Hybrid (hybrid.helm/v1-alpha) language based operators - Bump OPM version from `v1.19.1` to `v1.23.0`
body: |
To update your project to use OPM `v1.23.0`:

1. In the `Makefile`:

- Replace `curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.19.1/$${OS}-$${ARCH}-opm` with `curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.23.0/$${OS}-$${ARCH}-opm`

2. Run `make opm`