Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Aug 19, 2024
1 parent b9996fb commit a75b6e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ group :cisco_intersight, :manageiq_default do
end

group :embedded_terraform, :manageiq_default do
manageiq_plugin "manageiq-providers-embedded_terraform"
gem "manageiq-providers-embedded_terraform", :git => "https://github.com/agrare/manageiq-providers-embedded_terraform", :branch => "always_create_worker_record"
end

group :foreman, :manageiq_default do
Expand Down Expand Up @@ -230,7 +230,7 @@ group :vmware, :manageiq_default do
end

group :workflows, :manageiq_default do
manageiq_plugin "manageiq-providers-workflows"
gem "manageiq-providers-workflows", :git => "https://github.com/ManageIQ/manageiq-providers-workflows", :ref => "5cfbb10ea8da970cb62ac245a32442a54658dc5a"
end

### shared dependencies
Expand Down
2 changes: 2 additions & 0 deletions app/models/miq_server/worker_management/kubernetes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ def sync_starting_workers
# If the current worker doesn't have a system_uid assigned then find the first
# pod available for our worker type and link them up.
if worker.system_uid.nil?
_log.info("AG: found a worker without a system_uid: Class [#{worker.class.name}] Id [#{worker.id}]")
system_uid = pods_without_workers.detect { |pod_name| pod_name.start_with?(worker.worker_deployment_name) }
if system_uid
_log.info("AG: found a pod #{system_uid} assigning to worker: Class [#{worker.class.name}] Id [#{worker.id}]")
# We have found a pod for the current worker record so remove the pod from
# the list of pods without workers and set the pod name as the system_uid
# for the current worker record.
Expand Down

0 comments on commit a75b6e5

Please sign in to comment.