Skip to content

Commit 33675ce

Browse files
✨ Upgrade controller-runtime from v0.20.2 to v0.20.3 (#4604)
Upgrade controller-runtime from v0.20.2 to v0.20.3
1 parent 2c88af0 commit 33675ce

File tree

41 files changed

+50
-50
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+50
-50
lines changed

docs/book/src/cronjob-tutorial/testdata/project/cmd/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func main() {
155155

156156
// Metrics endpoint is enabled in 'config/default/kustomization.yaml'. The Metrics options configure the server.
157157
// More info:
158-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/metrics/server
158+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/metrics/server
159159
// - https://book.kubebuilder.io/reference/metrics.html
160160
metricsServerOptions := metricsserver.Options{
161161
BindAddress: metricsAddr,
@@ -167,7 +167,7 @@ func main() {
167167
// FilterProvider is used to protect the metrics endpoint with authn/authz.
168168
// These configurations ensure that only authorized users and service accounts
169169
// can access the metrics endpoint. The RBAC are configured in 'config/rbac/kustomization.yaml'. More info:
170-
// https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/metrics/filters#WithAuthenticationAndAuthorization
170+
// https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/metrics/filters#WithAuthenticationAndAuthorization
171171
metricsServerOptions.FilterProvider = filters.WithAuthenticationAndAuthorization
172172
}
173173

docs/book/src/cronjob-tutorial/testdata/project/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
k8s.io/api v0.32.1
1212
k8s.io/apimachinery v0.32.1
1313
k8s.io/client-go v0.32.1
14-
sigs.k8s.io/controller-runtime v0.20.2
14+
sigs.k8s.io/controller-runtime v0.20.3
1515
)
1616

1717
require (

docs/book/src/cronjob-tutorial/testdata/project/go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6J
239239
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
240240
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 h1:CPT0ExVicCzcpeN4baWEV2ko2Z/AsiZgEdwgcfwLgMo=
241241
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw=
242-
sigs.k8s.io/controller-runtime v0.20.2 h1:/439OZVxoEc02psi1h4QO3bHzTgu49bb347Xp4gW1pc=
243-
sigs.k8s.io/controller-runtime v0.20.2/go.mod h1:xg2XB0K5ShQzAgsoujxuKN4LNXR2LfwwHsPj7Iaw+XY=
242+
sigs.k8s.io/controller-runtime v0.20.3 h1:I6Ln8JfQjHH7JbtCD2HCYHoIzajoRxPNuvhvcDbZgkI=
243+
sigs.k8s.io/controller-runtime v0.20.3/go.mod h1:xg2XB0K5ShQzAgsoujxuKN4LNXR2LfwwHsPj7Iaw+XY=
244244
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8=
245245
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo=
246246
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 h1:MdmvkGuXi/8io6ixD5wud3vOLwc1rj0aNqRlpuvjmwA=

docs/book/src/cronjob-tutorial/testdata/project/internal/controller/cronjob_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ var (
9595
// the user.
9696
//
9797
// For more details, check Reconcile and its Result here:
98-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
98+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
9999
// nolint:gocyclo
100100
func (r *CronJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
101101
log := log.FromContext(ctx)

docs/book/src/getting-started/testdata/project/cmd/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func main() {
135135

136136
// Metrics endpoint is enabled in 'config/default/kustomization.yaml'. The Metrics options configure the server.
137137
// More info:
138-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/metrics/server
138+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/metrics/server
139139
// - https://book.kubebuilder.io/reference/metrics.html
140140
metricsServerOptions := metricsserver.Options{
141141
BindAddress: metricsAddr,
@@ -147,7 +147,7 @@ func main() {
147147
// FilterProvider is used to protect the metrics endpoint with authn/authz.
148148
// These configurations ensure that only authorized users and service accounts
149149
// can access the metrics endpoint. The RBAC are configured in 'config/rbac/kustomization.yaml'. More info:
150-
// https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/metrics/filters#WithAuthenticationAndAuthorization
150+
// https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/metrics/filters#WithAuthenticationAndAuthorization
151151
metricsServerOptions.FilterProvider = filters.WithAuthenticationAndAuthorization
152152
}
153153

docs/book/src/getting-started/testdata/project/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
k8s.io/apimachinery v0.32.1
1212
k8s.io/client-go v0.32.1
1313
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738
14-
sigs.k8s.io/controller-runtime v0.20.2
14+
sigs.k8s.io/controller-runtime v0.20.3
1515
)
1616

1717
require (

docs/book/src/getting-started/testdata/project/go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6J
237237
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
238238
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 h1:CPT0ExVicCzcpeN4baWEV2ko2Z/AsiZgEdwgcfwLgMo=
239239
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw=
240-
sigs.k8s.io/controller-runtime v0.20.2 h1:/439OZVxoEc02psi1h4QO3bHzTgu49bb347Xp4gW1pc=
241-
sigs.k8s.io/controller-runtime v0.20.2/go.mod h1:xg2XB0K5ShQzAgsoujxuKN4LNXR2LfwwHsPj7Iaw+XY=
240+
sigs.k8s.io/controller-runtime v0.20.3 h1:I6Ln8JfQjHH7JbtCD2HCYHoIzajoRxPNuvhvcDbZgkI=
241+
sigs.k8s.io/controller-runtime v0.20.3/go.mod h1:xg2XB0K5ShQzAgsoujxuKN4LNXR2LfwwHsPj7Iaw+XY=
242242
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8=
243243
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo=
244244
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 h1:MdmvkGuXi/8io6ixD5wud3vOLwc1rj0aNqRlpuvjmwA=

docs/book/src/getting-started/testdata/project/internal/controller/memcached_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ type MemcachedReconciler struct {
6969
// - About Controllers: https://kubernetes.io/docs/concepts/architecture/controller/
7070
//
7171
// For more details, check Reconcile and its Result here:
72-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
72+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
7373
func (r *MemcachedReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
7474
log := log.FromContext(ctx)
7575

docs/book/src/multiversion-tutorial/testdata/project/cmd/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func main() {
154154

155155
// Metrics endpoint is enabled in 'config/default/kustomization.yaml'. The Metrics options configure the server.
156156
// More info:
157-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/metrics/server
157+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/metrics/server
158158
// - https://book.kubebuilder.io/reference/metrics.html
159159
metricsServerOptions := metricsserver.Options{
160160
BindAddress: metricsAddr,
@@ -166,7 +166,7 @@ func main() {
166166
// FilterProvider is used to protect the metrics endpoint with authn/authz.
167167
// These configurations ensure that only authorized users and service accounts
168168
// can access the metrics endpoint. The RBAC are configured in 'config/rbac/kustomization.yaml'. More info:
169-
// https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/metrics/filters#WithAuthenticationAndAuthorization
169+
// https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/metrics/filters#WithAuthenticationAndAuthorization
170170
metricsServerOptions.FilterProvider = filters.WithAuthenticationAndAuthorization
171171
}
172172

docs/book/src/multiversion-tutorial/testdata/project/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
k8s.io/api v0.32.1
1212
k8s.io/apimachinery v0.32.1
1313
k8s.io/client-go v0.32.1
14-
sigs.k8s.io/controller-runtime v0.20.2
14+
sigs.k8s.io/controller-runtime v0.20.3
1515
)
1616

1717
require (

docs/book/src/multiversion-tutorial/testdata/project/go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6J
239239
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
240240
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 h1:CPT0ExVicCzcpeN4baWEV2ko2Z/AsiZgEdwgcfwLgMo=
241241
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw=
242-
sigs.k8s.io/controller-runtime v0.20.2 h1:/439OZVxoEc02psi1h4QO3bHzTgu49bb347Xp4gW1pc=
243-
sigs.k8s.io/controller-runtime v0.20.2/go.mod h1:xg2XB0K5ShQzAgsoujxuKN4LNXR2LfwwHsPj7Iaw+XY=
242+
sigs.k8s.io/controller-runtime v0.20.3 h1:I6Ln8JfQjHH7JbtCD2HCYHoIzajoRxPNuvhvcDbZgkI=
243+
sigs.k8s.io/controller-runtime v0.20.3/go.mod h1:xg2XB0K5ShQzAgsoujxuKN4LNXR2LfwwHsPj7Iaw+XY=
244244
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8=
245245
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo=
246246
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 h1:MdmvkGuXi/8io6ixD5wud3vOLwc1rj0aNqRlpuvjmwA=

docs/book/src/multiversion-tutorial/testdata/project/internal/controller/cronjob_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ var (
9595
// the user.
9696
//
9797
// For more details, check Reconcile and its Result here:
98-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
98+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
9999
// nolint:gocyclo
100100
func (r *CronJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
101101
log := log.FromContext(ctx)

hack/docs/internal/cronjob-tutorial/generate_cronjob.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func (sp *Sample) updateController() {
288288

289289
err = pluginutil.InsertCode(
290290
filepath.Join(sp.ctx.Dir, "internal/controller/cronjob_controller.go"),
291-
`// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile`, skipGoCycloLint)
291+
`// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile`, skipGoCycloLint)
292292
hackutils.CheckError("fixing cronjob_controller.go", err)
293293

294294
err = pluginutil.ReplaceInFile(

pkg/plugins/golang/v4/scaffolds/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const (
4040
// GolangciLintVersion is the golangci-lint version to be used in the project
4141
GolangciLintVersion = "v1.63.4"
4242
// ControllerRuntimeVersion is the kubernetes-sigs/controller-runtime version to be used in the project
43-
ControllerRuntimeVersion = "v0.20.2"
43+
ControllerRuntimeVersion = "v0.20.3"
4444
// ControllerToolsVersion is the kubernetes-sigs/controller-tools version to be used in the project
4545
ControllerToolsVersion = "v0.17.2"
4646

testdata/project-v4-multigroup/cmd/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func main() {
176176

177177
// Metrics endpoint is enabled in 'config/default/kustomization.yaml'. The Metrics options configure the server.
178178
// More info:
179-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/metrics/server
179+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/metrics/server
180180
// - https://book.kubebuilder.io/reference/metrics.html
181181
metricsServerOptions := metricsserver.Options{
182182
BindAddress: metricsAddr,
@@ -188,7 +188,7 @@ func main() {
188188
// FilterProvider is used to protect the metrics endpoint with authn/authz.
189189
// These configurations ensure that only authorized users and service accounts
190190
// can access the metrics endpoint. The RBAC are configured in 'config/rbac/kustomization.yaml'. More info:
191-
// https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/metrics/filters#WithAuthenticationAndAuthorization
191+
// https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/metrics/filters#WithAuthenticationAndAuthorization
192192
metricsServerOptions.FilterProvider = filters.WithAuthenticationAndAuthorization
193193
}
194194

testdata/project-v4-multigroup/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
k8s.io/apimachinery v0.32.1
1313
k8s.io/client-go v0.32.1
1414
k8s.io/utils v0.0.0-20241210054802-24370beab758
15-
sigs.k8s.io/controller-runtime v0.20.2
15+
sigs.k8s.io/controller-runtime v0.20.3
1616
)
1717

1818
require (

testdata/project-v4-multigroup/internal/controller/apps/deployment_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type DeploymentReconciler struct {
4444
// the user.
4545
//
4646
// For more details, check Reconcile and its Result here:
47-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
47+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4848
func (r *DeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
4949
_ = log.FromContext(ctx)
5050

testdata/project-v4-multigroup/internal/controller/cert-manager/certificate_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type CertificateReconciler struct {
4444
// the user.
4545
//
4646
// For more details, check Reconcile and its Result here:
47-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
47+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4848
func (r *CertificateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
4949
_ = log.FromContext(ctx)
5050

testdata/project-v4-multigroup/internal/controller/crew/captain_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type CaptainReconciler struct {
4545
// the user.
4646
//
4747
// For more details, check Reconcile and its Result here:
48-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
48+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4949
func (r *CaptainReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5050
_ = log.FromContext(ctx)
5151

testdata/project-v4-multigroup/internal/controller/example.com/busybox_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type BusyboxReconciler struct {
7878
// For further info:
7979
// - About Operator Pattern: https://kubernetes.io/docs/concepts/extend-kubernetes/operator/
8080
// - About Controllers: https://kubernetes.io/docs/concepts/architecture/controller/
81-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
81+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
8282
func (r *BusyboxReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
8383
log := log.FromContext(ctx)
8484

testdata/project-v4-multigroup/internal/controller/example.com/memcached_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type MemcachedReconciler struct {
7878
// For further info:
7979
// - About Operator Pattern: https://kubernetes.io/docs/concepts/extend-kubernetes/operator/
8080
// - About Controllers: https://kubernetes.io/docs/concepts/architecture/controller/
81-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
81+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
8282
func (r *MemcachedReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
8383
log := log.FromContext(ctx)
8484

testdata/project-v4-multigroup/internal/controller/example.com/wordpress_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type WordpressReconciler struct {
4545
// the user.
4646
//
4747
// For more details, check Reconcile and its Result here:
48-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
48+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4949
func (r *WordpressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5050
_ = log.FromContext(ctx)
5151

testdata/project-v4-multigroup/internal/controller/fiz/bar_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type BarReconciler struct {
4545
// the user.
4646
//
4747
// For more details, check Reconcile and its Result here:
48-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
48+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4949
func (r *BarReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5050
_ = log.FromContext(ctx)
5151

testdata/project-v4-multigroup/internal/controller/foo.policy/healthcheckpolicy_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type HealthCheckPolicyReconciler struct {
4545
// the user.
4646
//
4747
// For more details, check Reconcile and its Result here:
48-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
48+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4949
func (r *HealthCheckPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5050
_ = log.FromContext(ctx)
5151

testdata/project-v4-multigroup/internal/controller/foo/bar_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type BarReconciler struct {
4545
// the user.
4646
//
4747
// For more details, check Reconcile and its Result here:
48-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
48+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4949
func (r *BarReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5050
_ = log.FromContext(ctx)
5151

testdata/project-v4-multigroup/internal/controller/sea-creatures/kraken_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type KrakenReconciler struct {
4545
// the user.
4646
//
4747
// For more details, check Reconcile and its Result here:
48-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
48+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4949
func (r *KrakenReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5050
_ = log.FromContext(ctx)
5151

testdata/project-v4-multigroup/internal/controller/sea-creatures/leviathan_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type LeviathanReconciler struct {
4545
// the user.
4646
//
4747
// For more details, check Reconcile and its Result here:
48-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
48+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4949
func (r *LeviathanReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5050
_ = log.FromContext(ctx)
5151

testdata/project-v4-multigroup/internal/controller/ship/cruiser_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type CruiserReconciler struct {
4545
// the user.
4646
//
4747
// For more details, check Reconcile and its Result here:
48-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
48+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4949
func (r *CruiserReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5050
_ = log.FromContext(ctx)
5151

testdata/project-v4-multigroup/internal/controller/ship/destroyer_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type DestroyerReconciler struct {
4545
// the user.
4646
//
4747
// For more details, check Reconcile and its Result here:
48-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
48+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4949
func (r *DestroyerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5050
_ = log.FromContext(ctx)
5151

testdata/project-v4-multigroup/internal/controller/ship/frigate_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type FrigateReconciler struct {
4545
// the user.
4646
//
4747
// For more details, check Reconcile and its Result here:
48-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
48+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4949
func (r *FrigateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5050
_ = log.FromContext(ctx)
5151

testdata/project-v4-with-plugins/cmd/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func main() {
141141

142142
// Metrics endpoint is enabled in 'config/default/kustomization.yaml'. The Metrics options configure the server.
143143
// More info:
144-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/metrics/server
144+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/metrics/server
145145
// - https://book.kubebuilder.io/reference/metrics.html
146146
metricsServerOptions := metricsserver.Options{
147147
BindAddress: metricsAddr,
@@ -153,7 +153,7 @@ func main() {
153153
// FilterProvider is used to protect the metrics endpoint with authn/authz.
154154
// These configurations ensure that only authorized users and service accounts
155155
// can access the metrics endpoint. The RBAC are configured in 'config/rbac/kustomization.yaml'. More info:
156-
// https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/metrics/filters#WithAuthenticationAndAuthorization
156+
// https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/metrics/filters#WithAuthenticationAndAuthorization
157157
metricsServerOptions.FilterProvider = filters.WithAuthenticationAndAuthorization
158158
}
159159

testdata/project-v4-with-plugins/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
k8s.io/apimachinery v0.32.1
1212
k8s.io/client-go v0.32.1
1313
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738
14-
sigs.k8s.io/controller-runtime v0.20.2
14+
sigs.k8s.io/controller-runtime v0.20.3
1515
)
1616

1717
require (

testdata/project-v4-with-plugins/internal/controller/busybox_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type BusyboxReconciler struct {
7878
// For further info:
7979
// - About Operator Pattern: https://kubernetes.io/docs/concepts/extend-kubernetes/operator/
8080
// - About Controllers: https://kubernetes.io/docs/concepts/architecture/controller/
81-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
81+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
8282
func (r *BusyboxReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
8383
log := log.FromContext(ctx)
8484

testdata/project-v4-with-plugins/internal/controller/memcached_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type MemcachedReconciler struct {
7878
// For further info:
7979
// - About Operator Pattern: https://kubernetes.io/docs/concepts/extend-kubernetes/operator/
8080
// - About Controllers: https://kubernetes.io/docs/concepts/architecture/controller/
81-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
81+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
8282
func (r *MemcachedReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
8383
log := log.FromContext(ctx)
8484

testdata/project-v4-with-plugins/internal/controller/wordpress_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type WordpressReconciler struct {
4545
// the user.
4646
//
4747
// For more details, check Reconcile and its Result here:
48-
// - https://pkg.go.dev/sigs.k8s.io/[email protected].2/pkg/reconcile
48+
// - https://pkg.go.dev/sigs.k8s.io/[email protected].3/pkg/reconcile
4949
func (r *WordpressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5050
_ = log.FromContext(ctx)
5151

0 commit comments

Comments
 (0)