Skip to content

Commit

Permalink
add this back
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Sep 18, 2024
1 parent ee29c9f commit d95cfb1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions class.osc.edu/apps/dashboard/initializers/k8s_core.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require 'ood_core/job/adapters/kubernetes'
require 'ood_core/job/adapters/kubernetes/helper'

# monkey patch until https://github.com/OSC/ood_core/pull/778 is released
class OodCore::Job::Adapters::Kubernetes::Helper
def secret_info_from_json(json_data)
data = json_data.to_h[:data] || {}

info = data.symbolize_keys.each_with_object({}) do |data_kv, hash|
hash[data_kv[0]] = Base64.decode64(data_kv[1])
rescue
next
end
{ ood_connection_info: info }
end
end

0 comments on commit d95cfb1

Please sign in to comment.