Skip to content

Commit

Permalink
Merge pull request #20342 from carbonin/use_default_sa
Browse files Browse the repository at this point in the history
Use the passed service account for worker deployments

(cherry picked from commit 48a3eac)
  • Loading branch information
bdunne authored and simaishi committed Jul 9, 2020
1 parent 1a29802 commit 22e61db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/container_orchestrator/object_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def deployment_definition(name)
:template => {
:metadata => {:name => name, :labels => {:name => name, :app => app_name}},
:spec => {
:imagePullSecrets => [{:name => ENV["IMAGE_PULL_SECRET"].to_s}],
:serviceAccountName => ENV["WORKER_SERVICE_ACCOUNT"],
:containers => [{
:name => name,
:env => default_environment,
Expand Down

0 comments on commit 22e61db

Please sign in to comment.