k8sgpt-ai / k8sgpt-operator

Automatic SRE Superpowers within your Kubernetes cluster
https://k8sgpt.ai
Apache License 2.0
276 stars 73 forks source link

[Feature]: Upgrade kubebuilder project from go.kubebuilder.io/v3 to v4 #421

Open arbreezy opened 2 months ago

arbreezy commented 2 months ago

Checklist

Is this feature request related to a problem?

None

Problem Description

It might cause issues with future K8s versions as we can't upgrade controller-runtime

Solution Description

Upgrade to kubebuilder v4, effectively requires spinning up a new project and migrate old files and api specs to the new one

see here for more details, https://book.kubebuilder.io/migration/migration_guide_gov3_to_gov4

Benefits

Use the latest features of kubebuilder and being able to to upgrade controller-runtime

Potential Drawbacks

No response

Additional Information

related GH issues from operator-sdk which leverages kubebuilder https://github.com/operator-framework/operator-sdk/issues/6554 https://github.com/operator-framework/operator-sdk/issues/6651