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: flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/validation/DefaultValidator.java
+16-1
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,13 @@
48
48
importjava.util.Map;
49
49
importjava.util.Optional;
50
50
importjava.util.Set;
51
+
importjava.util.regex.Matcher;
52
+
importjava.util.regex.Pattern;
51
53
52
54
/** Default validator implementation for {@link FlinkDeployment}. */
"The FlinkDeployment name: %s is invalid, must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123'), and the length must be no more than 45 characters.",
Copy file name to clipboardexpand all lines: flink-kubernetes-operator/src/test/java/org/apache/flink/kubernetes/operator/validation/DefaultValidatorTest.java
+6
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,12 @@ public class DefaultValidatorTest {
dep -> dep.getMetadata().setName("session-cluster-1.13"),
75
+
"The FlinkDeployment name: session-cluster-1.13 is invalid, must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123'), and the length must be no more than 45 characters.");
76
+
71
77
// Test job validation
72
78
testError(dep -> dep.getSpec().getJob().setJarURI(null), "Jar URI must be defined");
Copy file name to clipboardexpand all lines: flink-kubernetes-webhook/src/test/java/org/apache/flink/kubernetes/operator/admission/AdmissionHandlerTest.java
0 commit comments