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

api: support GetMeta() and GetNamespace() on all config entry kinds #8764

Merged
merged 2 commits into from
Sep 29, 2020

Conversation

rboyer
Copy link
Member

@rboyer rboyer commented Sep 28, 2020

Fixes #8755

Since I was updating the interface, i also added the missing GetNamespace().

Depending upon how you look at it, this is a breaking change since it adds methods to the exported interface api.ConfigEntry. Given that you cannot define your own config entry kinds, and all of the machinery of the api.Client acts like a factory to construct the canned ones from the rest of the module, this feels like it's not a problematic change as it would only break someone who had reimplemented the ConfigEntry interface themselves for no apparent utility?

@rboyer rboyer requested a review from a team September 28, 2020 20:05
@rboyer rboyer self-assigned this Sep 28, 2020
Copy link
Contributor

@mkcp mkcp left a comment

Choose a reason for hiding this comment

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

Yeah, I agree that this doesn't seem like a problematic kind of breaking change. If we were really concerned, I think we could reach out on discuss? But this seems unlikely to cause issues.

Copy link
Member

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

🦊

@rboyer rboyer merged commit d2eb27e into master Sep 29, 2020
@rboyer rboyer deleted the api-config-meta branch September 29, 2020 14:12
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.

Support GetMeta() map[string]string for ConfigEntry
3 participants