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

Reduce string constant duplication #1410

Merged
merged 2 commits into from
Oct 25, 2023
Merged

Conversation

skitt
Copy link
Member

@skitt skitt commented Oct 24, 2023

Newer versions of goconst detect more instances of string duplication, in particular ".svc." in Lighthouse. Address that by providing a framework function to construct a service's DNS name based on its components.

A few string constants aren't actually shared, remove them to improve code clarity.

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr1410/skitt/string-consts
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

Newer versions of goconst detect more instances of string duplication,
in particular ".svc." in Lighthouse. Address that by providing a
framework function to construct a service's DNS name based on its
components.

A few string constants aren't actually shared, remove them to improve
code clarity.

Signed-off-by: Stephen Kitt <[email protected]>
@tpantelis tpantelis added the ready-to-test When a PR is ready for full E2E testing label Oct 25, 2023
@tpantelis tpantelis enabled auto-merge (rebase) October 25, 2023 13:38
@tpantelis tpantelis merged commit 1faf4df into submariner-io:devel Oct 25, 2023
26 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr1410/skitt/string-consts]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-test When a PR is ready for full E2E testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants