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

Remove special cases from GetResourceName. #762

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Aug 24, 2023

Remove the unnecessary type checks from GetResourceName. Modern resource types should always have a GetName accessor, so the only real special case is for clusters.

@jpeach
Copy link
Contributor Author

jpeach commented Aug 27, 2023

@sunjayBhatia Do you mind taking a look?

Copy link
Member

@sunjayBhatia sunjayBhatia left a comment

Choose a reason for hiding this comment

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

lgtm, test coverage shows no issues removing these cases 👍🏽

@sunjayBhatia
Copy link
Member

looks like this needs a main merge/rebase otherwise good to go

Remove the unnecessary type checks from GetResourceName. Modern resource
types should always have a `GetName` accessor, so the only real special
case is for clusters.

Signed-off-by: James Peach <jpeach@apache.org>
@jpeach jpeach force-pushed the simplify-get-resource-name branch from 9e558ee to e97d490 Compare August 29, 2023 21:50
@jpeach jpeach merged commit ff42c54 into envoyproxy:main Aug 29, 2023
@jpeach jpeach deleted the simplify-get-resource-name branch August 29, 2023 22:24
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.

3 participants