Skip to content

Commit 98ac129

Browse files
authored
Merge pull request #990 from kgyrtkirk/podname-dot
Mask dots in generated pod names
2 parents 17ab0ad + 657ee5f commit 98ac129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/PodTemplateStepExecution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static String labelify(String input) {
181181
if (input.length() > max) {
182182
input = input.substring(input.length() - max);
183183
}
184-
input = input.replaceAll("[^_.a-zA-Z0-9-]", "_").replaceFirst("^[^a-zA-Z0-9]", "x");
184+
input = input.replaceAll("[^_a-zA-Z0-9-]", "_").replaceFirst("^[^a-zA-Z0-9]", "x");
185185
String label = input + "-" + RandomStringUtils.random(5, "bcdfghjklmnpqrstvwxz0123456789");
186186
assert PodTemplateUtils.validateLabel(label) : label;
187187
return label;

0 commit comments

Comments
 (0)