Skip to content

Commit

Permalink
Merge pull request #23195 from agrare/deployment_per_worker_ems_ids
Browse files Browse the repository at this point in the history
Replace Container ENV var EMS_IDS->_ID
  • Loading branch information
jrafanie committed Sep 20, 2024
2 parents 1b06d9a + 41d5fad commit 4063077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_worker/deployment_per_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module DeploymentPerWorker
def create_container_objects
ContainerOrchestrator.new.create_deployment(worker_deployment_name) do |definition|
configure_worker_deployment(definition, 1)
definition[:spec][:template][:spec][:containers].first[:env] << {:name => "EMS_IDS", :value => Array.wrap(self.class.ems_id_from_queue_name(queue_name)).join(",")}
definition[:spec][:template][:spec][:containers].first[:env] << {:name => "EMS_ID", :value => self.class.ems_id_from_queue_name(queue_name)}
end
end

Expand Down

0 comments on commit 4063077

Please sign in to comment.