Repository navigation
Upgrade to Go 1.26 and Operator SDK v1.39.1 - #116
michael-valdron wants to merge 2 commits into
Conversation
Update the UBI9 builder, CI tools, and controller generator for Go 1.26. Regenerate CRDs and RBAC and refresh development documentation. Assisted-by: GPT-6 Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Adopt the go/v4 layout, Kubernetes 1.31 dependencies, and versioned build tools. Replace kube-rbac-proxy with authenticated manager metrics, add optional network policies, and regenerate the bundle and scorecard configuration. Validated local tests, metrics authorization, manifest rendering, bundle validation, and the container build. Assisted-by: GPT-6 Signed-off-by: Michael Valdron <mvaldron@redhat.com>
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: michael-valdron The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
These changes seem to resolve devfile/api#1797 as well. |
Description of Changes
Upgrade the registry operator to Go 1.26 and Operator SDK v1.39.1 with the go/v4 layout and Kubernetes 1.31 dependencies.
cmd/and controllers tointernal/controller/, updating build and test paths.gcr.io/kubebuilder/kube-rbac-proxysidecar with controller-runtime's authenticated HTTPS metrics endpoint.Related Issue(s)
Acceptance Criteria
Tests
Documentation
SDK_MIGRATION.mdwith migration details and compatibility notes.Tests Performed
make testwith Kubernetes 1.31.0 envtest assets: 16 webhook specs, 6 controller specs, package tests, and metrics authorization tests passed.go vet,make all, and module tidiness checks.operator-sdk bundle validate ./bundle, preserving all three CR examples.Live-cluster integration tests, scorecard execution, and OpenShift deployment were not run as part of this change.
How To Test
Using Go 1.26 and Operator SDK v1.39.1:
For cluster testing, deploy the built image and verify registry reconciliation and admission webhooks. Check that HTTPS metrics on port 8443 reject anonymous requests and authenticated callers without
/metricspermission, and allow an authorized monitoring service account.The NetworkPolicies are opt-in. Before enabling them, configure the webhook policy for the cluster's API-server source network and label monitoring namespaces
metrics=enabled.Running Unit Tests
Running Integration Tests
Notes To Reviewer
*Listexamples during bundle regeneration. They are restored in the checked-in bundle; the workaround is documented inSDK_MIGRATION.md.