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

k8s: remove our homegrown meta Accessor in favor of apimachinery's #4701

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

nicks
Copy link
Member

@nicks nicks commented Jun 28, 2021

Hello @landism, @milas,

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

60b63fc (2021-06-28 19:00:43 -0400)
k8s: remove our homegrown meta Accessor in favor of apimachinery's

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


return emptyMeta{}
}

func (e K8sEntity) maybeUnstructuredMeta() *unstructured.Unstructured {
Copy link
Contributor

Choose a reason for hiding this comment

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

In theory, should this method (+ maybeStructuredMeta) go away? It looks like it's now only* used by SetUID - should that also be using e.Meta().SetUID()?

* I do see it also gets used in a CRD test but I think that's easily in-lineable

Copy link
Member Author

Choose a reason for hiding this comment

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

ooh good point. removed!

@nicks nicks merged commit c0f9c54 into master Jun 29, 2021
@nicks nicks deleted the nicks/entity branch June 29, 2021 16:29
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