-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump controller-runtime to v0.14.x #420
Changes from 18 commits
346aa7c
abb26e7
efc2149
259f109
d30fb5b
217be75
6c12ab8
0b68506
519ccfb
4933c7d
25c0574
f8a7c6e
98c3ab6
ed8989d
d61cf67
291bb61
06b9cc8
f386abf
4dcfdf2
ade07ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
changelog: | ||
- type: BREAKING_CHANGE | ||
description: Update Status API signature to comply with controller-runtime v0.14.x API breakage | ||
issueLink: https://github.com/solo-io/skv2/issues/419 | ||
- type: DEPENDENCY_BUMP | ||
dependencyOwner: sigs.k8s.io | ||
dependencyRepo: controller-runtime | ||
dependencyTag: v0.14.4 | ||
description: Contains breaking API changes from controller-runtile v0.13 | ||
- type: DEPENDENCY_BUMP | ||
dependencyOwner: k8s.io | ||
dependencyRepo: api | ||
dependencyTag: v0.26.4 | ||
description: pulled in by sigs.k8s.io/sontroller-runtime | ||
- type: DEPENDENCY_BUMP | ||
dependencyOwner: k8s.io | ||
dependencyRepo: apiextensions-apiserver | ||
dependencyTag: v0.26.4 | ||
description: pulled in by sigs.k8s.io/sontroller-runtime | ||
- type: DEPENDENCY_BUMP | ||
dependencyOwner: k8s.io | ||
dependencyRepo: client-go | ||
dependencyTag: v0.26.4 | ||
description: pulled in by sigs.k8s.io/sontroller-runtime | ||
- type: DEPENDENCY_BUMP | ||
dependencyOwner: k8s.io | ||
dependencyRepo: code-generator | ||
dependencyTag: v0.26.4 | ||
description: pulled in by sigs.k8s.io/sontroller-runtime |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,10 +129,10 @@ type {{ $resource.Kind }}Writer interface { | |
type {{ $resource.Kind }}StatusWriter interface { | ||
// Update updates the fields corresponding to the status subresource for the | ||
// given {{ $resource.Kind }} object. | ||
Update{{ $resource.Kind }}Status(ctx context.Context, obj *{{ $import_prefix }}{{ $resource.Kind }}, opts ...client.UpdateOption) error | ||
Update{{ $resource.Kind }}Status(ctx context.Context, obj *{{ $import_prefix }}{{ $resource.Kind }}, opts ...client.SubResourceUpdateOption) error | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you know why these had to be renamed? as far as i can tell, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From kubernetes-sigs/controller-runtime#2072
So I can't comment on why these API breakages had to happen other than link to the upstream pull request, but I can say that while |
||
|
||
// Patch patches the given {{ $resource.Kind }} object's subresource. | ||
Patch{{ $resource.Kind }}Status(ctx context.Context, obj *{{ $import_prefix }}{{ $resource.Kind }}, patch client.Patch, opts ...client.PatchOption) error | ||
Patch{{ $resource.Kind }}Status(ctx context.Context, obj *{{ $import_prefix }}{{ $resource.Kind }}, patch client.Patch, opts ...client.SubResourcePatchOption) error | ||
} | ||
|
||
// Client knows how to perform CRUD operations on {{ $resource.Kind }}s. | ||
|
@@ -224,11 +224,11 @@ func (c *{{ $kindLowerCamel }}Client) Upsert{{ $resource.Kind }}(ctx context.Con | |
return err | ||
} | ||
|
||
func (c *{{ $kindLowerCamel }}Client) Update{{ $resource.Kind }}Status(ctx context.Context, obj *{{ $import_prefix }}{{ $resource.Kind }}, opts ...client.UpdateOption) error { | ||
func (c *{{ $kindLowerCamel }}Client) Update{{ $resource.Kind }}Status(ctx context.Context, obj *{{ $import_prefix }}{{ $resource.Kind }}, opts ...client.SubResourceUpdateOption) error { | ||
return c.client.Status().Update(ctx, obj, opts...) | ||
} | ||
|
||
func (c *{{ $kindLowerCamel }}Client) Patch{{ $resource.Kind }}Status(ctx context.Context, obj *{{ $import_prefix }}{{ $resource.Kind }}, patch client.Patch, opts ...client.PatchOption) error { | ||
func (c *{{ $kindLowerCamel }}Client) Patch{{ $resource.Kind }}Status(ctx context.Context, obj *{{ $import_prefix }}{{ $resource.Kind }}, patch client.Patch, opts ...client.SubResourcePatchOption) error { | ||
return c.client.Status().Patch(ctx, obj, patch, opts...) | ||
} | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you also list the DEPENDENCY_BUMPS, particularly k8s.io/api and controller-runtime?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, those seem reasonable. All were a consequence of pulling in controller-runtime.