Skip to content

Commit

Permalink
sanitize k8s namepsaces (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Dec 18, 2024
1 parent a6ee8e1 commit 37ee4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ood_core/job/adapters/kubernetes/batch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def configmap_name(id)
end

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

def formatted_ns_cmd
Expand Down

0 comments on commit 37ee4d1

Please sign in to comment.