Skip to content

Commit 43be1be

Browse files
Update crates/stackable-operator/src/validation.rs
Co-authored-by: Siegfried Weber <[email protected]>
1 parent 1475131 commit 43be1be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/stackable-operator/src/validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const DOMAIN_ERROR_MSG: &str = "a domain must consist of alphanumeric characters
4343
// FIXME: According to https://www.rfc-editor.org/rfc/rfc1035#section-2.3.1 domain names must start with a letter
4444
// (and not a number).
4545
// This is a modified RFC 1035 format according to the Kubernetes specification, see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#rfc-1035-label-names
46-
const LOWERCASE_RFC_1035_LABEL_FMT: &str = "[a-z]([-a-z0-9]*[a-z0-9])?";
46+
pub const LOWERCASE_RFC_1035_LABEL_FMT: &str = "[a-z]([-a-z0-9]*[a-z0-9])?";
4747
const LOWERCASE_RFC_1035_LABEL_ERROR_MSG: &str = "a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character";
4848

4949
// This is a label's max length in DNS (RFC 1035)

0 commit comments

Comments
 (0)