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

kubernetesapply: reconcile objects #4693

Merged
merged 1 commit into from
Jun 25, 2021
Merged

kubernetesapply: reconcile objects #4693

merged 1 commit into from
Jun 25, 2021

Conversation

nicks
Copy link
Member

@nicks nicks commented Jun 25, 2021

Hello @milas,

Please review the following commits I made in branch nicks/ka:

f14dd9d (2021-06-25 13:28:50 -0400)
kubernetesapply: reconcile objects

Code review reminders, by giving a LGTM you attest that:

  • Commits are adequately tested
  • Code is easy to understand and conforms to style guides
  • Incomplete code is marked with TODOs
  • Code is suitably instrumented with logging and metrics

@nicks nicks requested a review from milas June 25, 2021 17:29
@nicks nicks force-pushed the nicks/ka branch 2 times, most recently from 1357043 to 714e79c Compare June 25, 2021 18:02

result := Result{
Spec: spec,
Status: status,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this usage is actually provably safe right now (status has no reference types + based on code paths we never actually use both the return + the version stored in results), but it might be good to *status.DeepCopy() here anyway to avoid a future surprise (or incur the wrath of the race detector)

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@nicks nicks merged commit 926d026 into master Jun 25, 2021
@nicks nicks deleted the nicks/ka branch June 25, 2021 22:03
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.

None yet

2 participants