Closed mh013370 closed 4 months ago
Before taking an in-depth look and testing it, I think that the version of Operator SDK is mentionned in the documention (not sure for Kubebuilder itself), so it must be updated accordingly.
Yeah, so basically upgrading to operador-sdk v1.33.0 is just migrating to kubebuilder go/v4:
https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.33.0/
Before taking an in-depth look and testing it, I think that the version of Operator SDK is mentionned in the documention (not sure for Kubebuilder itself), so it must be updated accordingly.
Yeah, so basically upgrading to operador-sdk v1.33.0 is just migrating to kubebuilder go/v4:
https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.33.0/
I was thinking of NiFiKop documentation 😄
ng of NiFiKop document
Before taking an in-depth look and testing it, I think that the version of Operator SDK is mentionned in the documention (not sure for Kubebuilder itself), so it must be updated accordingly.
Yeah, so basically upgrading to operador-sdk v1.33.0 is just migrating to kubebuilder go/v4: https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.33.0/
I was thinking of NiFiKop documentation 😄
You're right it is. Updated :)
What's in this PR?
Migrates the operator to KubeBuilder go/v4 and operator-sdk v1.33.0, applying all appropriate migrations in the process. The migration process required re-scaffolding the entire API and all controllers in order to regenerate the
PROJECT
configuration, but the actual specs & controller code was copied forward. Regardless, care should be taken in reviewing this to ensure that i did not incidentally leave something out.I updated the
Makefile
and all generated Kustomize configuration to match the latest in KubeBuilder. From this point, only minor updates should be required.Primary changes:
main.go
moved tocmd/main.go
controllers/
moved tointernal/controller/
config/
generated yaml was updatedNote Merging this will necessitate updating your locally installed
operator-sdk
to v1.33.0.Why?
KubeBuilder go/v4 is now stable and go/v3 will be end-of-lifed and removed.
Checklist