We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8f8168 commit 5a448dfCopy full SHA for 5a448df
1 file changed
rootfs/api/serializers/__init__.py
@@ -55,7 +55,7 @@
55
"Volume size limit format: <number><unit> or <number><unit>/<number><unit>, "
56
"where unit = G, range: %sG~%sG"
57
) % (settings.KUBERNETES_LIMITS_MAX_VOLUME, settings.KUBERNETES_LIMITS_MIN_VOLUME)
58
-VOLUME_PATH_MATCH = re.compile(r'^\/(\w+\/?)+$', re.IGNORECASE)
+VOLUME_PATH_MATCH = re.compile(r'^\/([\w]+[\w-]*\/?)+$', re.IGNORECASE)
59
METRIC_EVERY_MATCH = re.compile(r'^[1-9][0-9]*m$')
60
HEALTHCHECK_MATCH = re.compile(r'^(livenessProbe|readinessProbe|startupProbe)$')
61
HEALTHCHECK_MISMATCH_MSG = "Healthcheck pattern: %s" % HEALTHCHECK_MATCH.pattern
0 commit comments