-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conversation
update Claim and Composite interface impls
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.
a few questions
@@ -171,7 +162,6 @@ func GetComposition(cmp *extv1.Composition) Composition { | |||
}, | |||
WriteConnectionSecretsToNamespace: cmp.Spec.WriteConnectionSecretsToNamespace, | |||
}, | |||
Status: GetCompositionStatus(cmp.Status), |
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.
does this change the schema?
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.
Not sure. I did deploy these changes to prod and didn't see an issue 🤷
// 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) | ||
} |
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.
not sure where this is used? is this related to the change in a schema object?
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.
This is because the Composition API changed and this function is expected now.
Description of your changes
General dependency upgrade to try to get better memory efficiencies with JSON marshal/unmarshal.
I have:
make reviewable
to ensure this PR is ready for review.How has this code been tested
Ran make test locally.