Skip to content

Commit

Permalink
Fix k8s deployment marshal error with EMS workers
Browse files Browse the repository at this point in the history
The `.ems_id_from_queue_name` method returns an integer and all env var
values have to be strings.
  • Loading branch information
agrare committed Sep 25, 2024
1 parent 1a21589 commit 14c3c68
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_ID", :value => self.class.ems_id_from_queue_name(queue_name)}
definition[:spec][:template][:spec][:containers].first[:env] << {:name => "EMS_ID", :value => self.class.ems_id_from_queue_name(queue_name).to_s}
end
end

Expand Down

0 comments on commit 14c3c68

Please sign in to comment.