Skip to content

Commit

Permalink
Merge pull request ManageIQ#73 from agrare/opentofu_runner_stop_shoul…
Browse files Browse the repository at this point in the history
…d_delete_deployment

OpentofuWorker#stop_worker should delete the pod
  • Loading branch information
bdunne authored Sep 24, 2024
2 parents 5021cc4 + b91bddc commit 0fd9aa0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/models/opentofu_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ def add_readiness_probe(container_definition)
}
end

# The opentofu-runner pod is a service worker but isn't scalable so the
# stop_container method should delete_container_objects like a deployment-per-worker
# not scale_deployment like a service_worker.
def stop_container
delete_container_objects
end

private

# There can only be a single instance running so the unit name can just be
Expand Down

0 comments on commit 0fd9aa0

Please sign in to comment.