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

Upgrade SDK to use Kubernetes 1.26.2 #6352

Merged
merged 16 commits into from
Mar 14, 2023

Conversation

rashmigottipati
Copy link
Member

@rashmigottipati rashmigottipati commented Mar 8, 2023

Description of the change:

  • Changes in go.mod and go.sum resulted from bumping versions to support k8s 1.26.2
  • Changes in files due to deprecated types in apimachinery
  • Used generic set in files where sets.String is used, which has been deprecated
  • Fixed lint errors

Motivation for the change:
Support for k8s 1.26

Checklist

If the pull request includes user-facing changes, extra documentation is required:

@rashmigottipati rashmigottipati temporarily deployed to deploy March 8, 2023 18:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 8, 2023 18:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 8, 2023 18:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 8, 2023 18:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 8, 2023 18:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 8, 2023 18:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 8, 2023 18:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 8, 2023 18:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 8, 2023 18:01 — with GitHub Actions Inactive
@rashmigottipati
Copy link
Member Author

/cc @everettraven @varshaprasad96

@openshift-ci openshift-ci bot requested a review from everettraven March 8, 2023 18:01
Copy link
Member Author

@rashmigottipati rashmigottipati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo for myself: Add changelog :)

Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the changes look good to me - great work @rashmigottipati!

The only glaring thing for me is pulling in Kubebuilder 3.9.0 which has a known bug that could break the scaffolding of Go operators.

go.mod Outdated Show resolved Hide resolved
internal/plugins/ansible/v1/api.go Show resolved Hide resolved
@rashmigottipati rashmigottipati temporarily deployed to deploy March 8, 2023 18:38 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 8, 2023 18:38 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 9, 2023 03:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 9, 2023 03:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 9, 2023 03:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 9, 2023 03:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 9, 2023 03:00 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 17:17 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 17:17 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 17:17 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 17:17 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 17:17 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 17:17 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 17:17 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 17:17 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 17:17 — with GitHub Actions Inactive
Copy link
Member

@varshaprasad96 varshaprasad96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two changes, rest looks good! Thanks for working on this @rashmigottipati :)

/lgtm

changelog/fragments/bump-1.26.yaml Outdated Show resolved Hide resolved
changelog/fragments/bump-1.26.yaml Outdated Show resolved Hide resolved
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 14, 2023
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 14, 2023
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 18:22 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 18:22 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 18:22 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 18:22 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 18:22 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 18:22 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 18:22 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 18:22 — with GitHub Actions Inactive
@rashmigottipati rashmigottipati temporarily deployed to deploy March 14, 2023 18:22 — with GitHub Actions Inactive
Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 14, 2023
@rashmigottipati rashmigottipati merged commit e5a6930 into operator-framework:master Mar 14, 2023
@rashmigottipati rashmigottipati deleted the k8sbump branch March 14, 2023 18:50
@rashmigottipati rashmigottipati mentioned this pull request Mar 14, 2023
13 tasks
Comment on lines +38 to +54
Regarding the upcoming major changes in the plugin, please note that `go/v3` is being deprecated by Kubebuilder hence Operator SDK would also be migrating to `go/v4` soon.
Following are the changes to be addressed in your project structure, `Makefile` and `go.mod` files:
1) [go/v3, ansible/v1, helm/v1] Update your `go.mod` file to upgrade the dependencies and run `go mod tidy` to download them
```go
k8s.io/api v0.26.2
k8s.io/apiextensions-apiserver v0.26.2
k8s.io/apimachinery v0.26.2
k8s.io/cli-runtime v0.26.2
k8s.io/client-go v0.26.2
k8s.io/kubectl v0.26.2
sigs.k8s.io/controller-runtime v0.14.5
sigs.k8s.io/controller-tools v0.11.3
sigs.k8s.io/kubebuilder/v3 v3.9.1
```
2) [go/v3, ansible/v1, helm/v1] With the bump to Kubebuilder 3.9.1, the `go/v3` projects are now scaffolded with 0.13.1 version of kube-rbac-proxy. Modify the version of kube-rbac-proxy in the following scaffolded files:
- config/default/manager_auth_proxy_patch.yaml
- bundle/manifests/memcached-operator.clusterserviceversion.yaml
Copy link
Contributor

@simararneja simararneja Apr 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants