From 37ee4d146c39b27140bd4b0c3aab7016a1e8b72e Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Wed, 18 Dec 2024 14:28:29 -0500 Subject: [PATCH] sanitize k8s namepsaces (#859) --- lib/ood_core/job/adapters/kubernetes/batch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ood_core/job/adapters/kubernetes/batch.rb b/lib/ood_core/job/adapters/kubernetes/batch.rb index 795c5e00..a2106ddb 100644 --- a/lib/ood_core/job/adapters/kubernetes/batch.rb +++ b/lib/ood_core/job/adapters/kubernetes/batch.rb @@ -271,7 +271,7 @@ def configmap_name(id) end def namespace - "#{namespace_prefix}#{username}" + "#{namespace_prefix}#{username.gsub(/[.@]/, '-')}" end def formatted_ns_cmd