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

fix(deps): k8s dependencies to v0.31.0 #140

Merged
merged 11 commits into from
Sep 24, 2024

Conversation

tnthornton
Copy link
Member

Description of your changes

General dependency upgrade to try to get better memory efficiencies with JSON marshal/unmarshal.

I have:

  • Read and followed Upbound's contribution process.
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Ran make test locally.

Copy link
Collaborator

@avalanche123 avalanche123 left a comment

Choose a reason for hiding this comment

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

a few questions

@@ -171,7 +162,6 @@ func GetComposition(cmp *extv1.Composition) Composition {
},
WriteConnectionSecretsToNamespace: cmp.Spec.WriteConnectionSecretsToNamespace,
},
Status: GetCompositionStatus(cmp.Status),
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this change the schema?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure. I did deploy these changes to prod and didn't see an issue 🤷

Comment on lines +269 to +275
// SetObservedGeneration of this composite resource claim.
func (c *Composite) SetObservedGeneration(generation int64) {
status := &xpv1.ObservedStatus{}
_ = fieldpath.Pave(c.Object).GetValueInto("status", status)
status.SetObservedGeneration(generation)
_ = fieldpath.Pave(c.Object).SetValue("status.observedGeneration", status.ObservedGeneration)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

not sure where this is used? is this related to the change in a schema object?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is because the Composition API changed and this function is expected now.

@tnthornton tnthornton merged commit 9b6dff8 into upbound:main Sep 24, 2024
7 checks passed
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