Upgrade SDK to use Kubernetes 1.26.2#6352
Conversation
rashmigottipati
left a comment
There was a problem hiding this comment.
Todo for myself: Add changelog :)
everettraven
left a comment
There was a problem hiding this comment.
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.
| COPY api/ api/ | ||
| COPY controllers/ controllers/ | ||
| COPY internal/controller/ internal/controller/ | ||
| COPY monitoring/ monitoring/ |
There was a problem hiding this comment.
We would have to look into if we can rip of certain parts of monitoring/ and put it with internal/controller/. I assume the most of the registration of metrics would be done in the controller. This investigation is just for follow up not this PR.
everettraven
left a comment
There was a problem hiding this comment.
Overall looks good to me. Just some nits but I don't think they should block this PR from merging
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
…d YAML formatting issues Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com>
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
everettraven
left a comment
There was a problem hiding this comment.
Everything looks good to me - just noticed a tiny typo. Great work @rashmigottipati !
/lgtm
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
varshaprasad96
left a comment
There was a problem hiding this comment.
@rashmigottipati the changes look good, but we are missing migration guide entries especially for go/v4alpha. It is necessary because any user who has scaffolded gov4alpha plugin with SDK 1.26.1 should be able to follow the changes in migration guide and migrate their project to 1.27 (upcoming release). Also since the description in changeling fragment is an array, it would be helpful to have a separate entry for each, so that it appears like this in the website.
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
varshaprasad96
left a comment
There was a problem hiding this comment.
Just two changes, rest looks good! Thanks for working on this @rashmigottipati :)
/lgtm
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
| 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 |
There was a problem hiding this comment.
@rashmigottipati This isn't rendering as expected in the docs https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.28.0/#upgrade-k8s-versions-to-use-126

Description of the change:
go.modandgo.sumresulted from bumping versions to support k8s 1.26.2sets.Stringis used, which has been deprecatedMotivation for the change:
Support for k8s 1.26
Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments(seechangelog/fragments/00-template.yaml)website/content/en/docs