Skip to content

Support k8s 1.34#860

Merged
lrf141 merged 15 commits intomainfrom
issues-841-2
Dec 3, 2025
Merged

Support k8s 1.34#860
lrf141 merged 15 commits intomainfrom
issues-841-2

Conversation

@lrf141
Copy link
Copy Markdown
Contributor

@lrf141 lrf141 commented Nov 27, 2025

closed #841

@lrf141
Copy link
Copy Markdown
Contributor Author

lrf141 commented Nov 27, 2025

Since v1.34.2 is not available for “kindest/node”, we will pin the version to v1.34.0.
https://hub.docker.com/r/kindest/node/tags

})

return &orig, r.Patch(ctx, patch, client.Apply, &client.PatchOptions{
return &orig, r.Apply(ctx, patch, &client.ApplyOptions{
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

client.Apply is deprecated and will fail static checks.
It is now recommended to use r.Apply instead of r.Patch.
As a result, unstructured.Unstructured can no longer be used as an argument, but I decided to convert it to ApplyConfiguration this time.

This implementation is somewhat unclear, so I think generating ApplyConfiguration might be better in the future. However, due to the large scope of impact, I will not do this at this time.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least with this implementation, the tests pass.

@lrf141 lrf141 merged commit 7c70210 into main Dec 3, 2025
27 checks passed
@lrf141 lrf141 deleted the issues-841-2 branch December 3, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support k8s 1.34

2 participants