Skip to content

Commit 37ee4d1

Browse files
authored
sanitize k8s namepsaces (#859)
1 parent a6ee8e1 commit 37ee4d1

File tree

1 file changed

+1
-1
lines changed
  • lib/ood_core/job/adapters/kubernetes

1 file changed

+1
-1
lines changed

lib/ood_core/job/adapters/kubernetes/batch.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def configmap_name(id)
271271
end
272272

273273
def namespace
274-
"#{namespace_prefix}#{username}"
274+
"#{namespace_prefix}#{username.gsub(/[.@]/, '-')}"
275275
end
276276

277277
def formatted_ns_cmd

0 commit comments

Comments
 (0)