Skip to content

Commit

Permalink
Add the artemis auth info as env variables in worker containers
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonin committed Feb 19, 2018
1 parent fb9e78a commit 4f5eb85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/container_orchestrator/object_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,15 @@ def secret_definition(name, string_data)

def default_environment
[
{:name => "ARTEMIS_USER", :value => ENV["ARTEMIS_USER"]},
{:name => "DATABASE_SERVICE_NAME", :value => ENV["DATABASE_SERVICE_NAME"]},
{:name => "GUID", :value => MiqServer.my_guid},
{:name => "MEMCACHED_SERVER", :value => ENV["MEMCACHED_SERVER"]},
{:name => "MEMCACHED_SERVICE_NAME", :value => ENV["MEMCACHED_SERVICE_NAME"]},
{:name => "WORKER_HEARTBEAT_FILE", :value => Rails.root.join("tmp", "worker.hb").to_s},
{:name => "WORKER_HEARTBEAT_METHOD", :value => "file"},
{:name => "ARTEMIS_PASSWORD",
:valueFrom => {:secretKeyRef=>{:name => "#{app_name}-secrets", :key => "artemis-password"}}},
{:name => "DATABASE_URL",
:valueFrom => {:secretKeyRef=>{:name => "#{app_name}-secrets", :key => "database-url"}}},
{:name => "V2_KEY",
Expand Down

0 comments on commit 4f5eb85

Please sign in to comment.