Skip to content

Commit

Permalink
Merge pull request #56 from Fryguy/fix_service_account
Browse files Browse the repository at this point in the history
Fix issue where new service account ENV var is forced in every process
  • Loading branch information
Fryguy authored Oct 14, 2023
2 parents d73c48c + 55e15c6 commit 2d88b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/manageiq/providers/workflows/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def self.floe_docker_runner
"token_file" => "/run/secrets/kubernetes.io/serviceaccount/token",
"ca_cert" => "/run/secrets/kubernetes.io/serviceaccount/ca.crt",
"namespace" => File.read("/run/secrets/kubernetes.io/serviceaccount/namespace"),
"task_service_account" => ENV.fetch("AUTOMATION_JOB_SERVICE_ACCOUNT")
"task_service_account" => ENV.fetch("AUTOMATION_JOB_SERVICE_ACCOUNT", nil)
}

Floe::Workflow::Runner::Kubernetes.new(options)
Expand Down

0 comments on commit 2d88b90

Please sign in to comment.