Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

add ability to add image pull secrets to service accounts#81

Merged
krancour merged 1 commit intobrigadecore:masterfrom
krancour:image-pull-secrets
Oct 30, 2020
Merged

add ability to add image pull secrets to service accounts#81
krancour merged 1 commit intobrigadecore:masterfrom
krancour:image-pull-secrets

Conversation

@krancour
Copy link
Contributor

Related to brigadecore/brigade#1124

@vdice and I determined that it's not ideal for us (and probably not for any Brigade user) to have to explicitly call out the use of a specific image pull Secret in every job in every script if all you want to do is avoid rate-limiting across the board.

A little bit of research determined that if a Pod's ServiceAccount references particular image pull Secrets, that Podis _automatically decorated to reference the same image pullSecrets`_. Reference

Conveniently, the Brigade chart already, by default, creates ServiceAccounts for each of its components-- including workers and jobs. This PR allows a user deploying Brigade to optionally add a reference to one or more image pull Secrets to any of the ServiceAccounts used by any of the Brigade components-- with special emphasis and documentation for the worker's ServiceAccount since that is where this capability is most useful.

Signed-off-by: Kent Rancourt <kent.rancourt@microsoft.com>
@krancour krancour requested a review from vdice October 30, 2020 00:07
@krancour krancour self-assigned this Oct 30, 2020
@krancour krancour merged commit e737511 into brigadecore:master Oct 30, 2020
@krancour krancour deleted the image-pull-secrets branch October 30, 2020 17:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants