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

EnsureValidName should strip leading or trailing dash #979

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

tpantelis
Copy link
Contributor

EnsureValidName converts all invalid chars to a dash ('-') but that could leave a leading or trailing dash which is invalid so just strip a leading or trailing dash.

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr979/tpantelis/valid_name

pkg/resource/util.go Outdated Show resolved Hide resolved
EnsureValidName converts all invalid chars to a dash ('-') but
that could leave a leading or trailing dash which is invalid so
just strip a leading or trailing dash.

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
@tpantelis tpantelis merged commit cf1388d into submariner-io:devel Aug 26, 2024
16 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr979/tpantelis/valid_name]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants