You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/stackable-operator/src/validation.rs
+24-19Lines changed: 24 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ use regex::Regex;
16
16
use snafu::Snafu;
17
17
18
18
/// Minimal length required by RFC 1123 is 63. Up to 255 allowed, unsupported by k8s.
19
-
constRFC_1123_LABEL_MAX_LENGTH:usize = 63;
19
+
pubconstRFC_1123_LABEL_MAX_LENGTH:usize = 63;
20
20
// This is a modified RFC 1123 format according to the Kubernetes specification, see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names
constLOWERCASE_RFC_1123_LABEL_ERROR_MSG:&str = "a lowercase RFC 1123 label must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character";
constRFC_1123_SUBDOMAIN_ERROR_MSG:&str = "a RFC 1123 subdomain must consist of alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character";
35
+
constLOWERCASE_RFC_1123_SUBDOMAIN_ERROR_MSG:&str = "a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character";
constDOMAIN_ERROR_MSG:&str = "a domain must consist of alphanumeric characters, '-' or '.', and must start with an alphanumeric character and end with an alphanumeric character or '.'";
42
42
43
43
// FIXME: According to https://www.rfc-editor.org/rfc/rfc1035#section-2.3.1 domain names must start with a letter
constRFC_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";
45
+
// 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
constLOWERCASE_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";
0 commit comments