We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7355f0 commit 68e80e4Copy full SHA for 68e80e4
api/src/backend/api/models.py
@@ -191,7 +191,7 @@ def validate_kubernetes_uid(value):
191
r"(^[a-z0-9]([-a-z0-9]{1,61}[a-z0-9])?$)|(^arn:aws(-cn|-us-gov|-iso|-iso-b)?:[a-zA-Z0-9\-]+:([a-z]{2}-[a-z]+-\d{1})?:(\d{12})?:[a-zA-Z0-9\-_\/:\.\*]+(:\d+)?$)",
192
value,
193
):
194
- raise ValueError(
+ raise ModelValidationError(
195
"The value must either be a valid Kubernetes UID (up to 63 characters, "
196
"starting and ending with a lowercase letter or number, containing only "
197
"lowercase alphanumeric characters and hyphens) or a valid EKS ARN."
0 commit comments