Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Does registry cred operator can take care of adding imagepullsecret to such non default service accounts during their creation so that pods can use it? #25

Open
sushantsj opened this issue May 18, 2021 · 1 comment

Comments

@sushantsj
Copy link

sushantsj commented May 18, 2021

Problem Statement: nginx ingress controller and prometheus operator is trying to create their own Service Accounts in namespace and pods are using those service accounts. So I am facing docker pull limit issue.
Does registry cred operator can take care of adding imagepullsecret to such non default service accounts during their creation so that pods can use it?If yes then are we missing something from the steps mentioned in your github, let me know
Thank you

@awoimbee
Copy link

awoimbee commented Jul 2, 2021

Yes, it's quite obvious from the code

func processServiceAccount(k8s *k8sClient, namespace string) error {

You need to set CONFIG_ALLSERVICEACCOUNT

But since this project in simply a for loop running every 10s, there will be a delay between service account creation and secret provisioning

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants