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

flagext: Go-cmp support for Secret #659

Merged
merged 3 commits into from
Mar 5, 2025
Merged

Conversation

alexweav
Copy link
Contributor

@alexweav alexweav commented Mar 5, 2025

What this PR does:

Go-cmp on any type containing a flagext.Secret panics due to the unexported field, without supplying specific options to use == style comparison which may not be generally desirable.

Mimir expects its configuration objects to be comparable with go-cmp. The other flagext types generally implicitly support it, by using either exported inner fields or type aliases.

Which issue(s) this PR fixes:
n/a

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@alexweav
Copy link
Contributor Author

alexweav commented Mar 5, 2025

IMO this is not important enough to deserve changelog, please let me know if you disagree.

Copy link
Collaborator

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

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

LGTM modulo nit (non-blocker).

@aknuds1 aknuds1 added the enhancement New feature or request label Mar 5, 2025
@alexweav alexweav merged commit ae6b146 into main Mar 5, 2025
5 checks passed
@alexweav alexweav deleted the alexweav/flagext-secret-go-cmp branch March 5, 2025 18:17
@tinitiuset tinitiuset mentioned this pull request Mar 6, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants