Merge pull request #3891 from Tyagiquamar/fix/3852-healthcheck-hostname

fix(blueprints): allow underscores in health check hostnames
This commit is contained in:
Owen Schwartz
2026-10-12 14:01:54 -04:00
committed by GitHub
+1 -1
View File
@@ -47,7 +47,7 @@ const healthCheckHostnameSchema = z
return true;
}
const hostnameRegex =
/^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)*[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/;
/^(?:[a-zA-Z0-9_](?:[a-zA-Z0-9_-]{0,61}[a-zA-Z0-9_])?\.)*[a-zA-Z0-9_](?:[a-zA-Z0-9_-]{0,61}[a-zA-Z0-9_])?$/;
return hostnameRegex.test(val);
},
{