Skip to content
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

Upgrade various k8s.io + kubebuilder dependencies #35

Merged
merged 8 commits into from
Jul 18, 2023

Conversation

milesbxf
Copy link
Contributor

@milesbxf milesbxf commented Jul 17, 2023

It's about time we did this! Updates:

  • k8s.io/client-go and other various k8s.io dependencies
  • k8s.io/controller-runtime

We need this in order to add PDBs in newer clusters. The actual changes here (outside of vendoring) are very small - I recommend going commit-by-commit

@milesbxf milesbxf changed the title Upgrade k8s.io/client-go dependency + controller-runtime Upgrade various k8s.io + kubebuilder dependencies Jul 18, 2023
@@ -145,7 +146,7 @@ func assertState(key types.NamespacedName, es *v1.ExternalService) {

return d
}, timeout, interval).Should(And(
WithTransform(func(d *appsv1.Deployment) appsv1.DeploymentSpec { return d.Spec }, Equal(deployment(es, cHash).Spec)),
WithTransform(func(d *appsv1.Deployment) appsv1.DeploymentSpec { return d.Spec }, BeComparableTo(deployment(es, cHash).Spec)),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

BeComparableTo is like Equal except it uses go-cmp under the hood instead of DeepCopy - this makes it much easier to see the actual object diff

@milesbxf milesbxf marked this pull request as ready for review July 18, 2023 11:48
@milesbxf milesbxf merged commit e60293f into master Jul 18, 2023
1 check passed
@milesbxf milesbxf deleted the upgrade-client-go branch July 18, 2023 14:41
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.

2 participants