Skip to content

func IsDNS1123SubdomainWithUnderscore return error message is incorrect #132027

Closed
@ChosenFoam

Description

@ChosenFoam

What happened?

func IsDNS1123SubdomainWithUnderscore() return error message is incorrect

What did you expect to happen?

When the regex rule of the IsDNS1123SubdomainWithUnderscore() function does not match, it returns dns1123SubdomainFmt instead of dns1123SubdomainFmtWithUnderscore

How can we reproduce it (as minimally and precisely as possible)?

/

Anything else we need to know?

No response

Kubernetes version

1.33.1

Cloud provider

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, ...) and versions (if applicable)

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.sig/networkCategorizes an issue or PR as relevant to SIG Network.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions