Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make imagePullPolicy configurable #257

Closed
calvinbui opened this issue Feb 22, 2024 · 3 comments
Closed

Make imagePullPolicy configurable #257

calvinbui opened this issue Feb 22, 2024 · 3 comments

Comments

@calvinbui
Copy link

calvinbui commented Feb 22, 2024

It is currently set to Always which slows down our builds when the image is already present on the host.

For example, it already pulled the image for copy-agent init container, but then has to pull it again for the checkout and agent containers.

This also includes the job/step container.

c.ImagePullPolicy = corev1.PullAlways

ImagePullPolicy: corev1.PullAlways,

@triarius
Copy link
Contributor

Thanks for raising this @calvinbui. We think it's a good idea to be able to do this. We've added this to our roadmap, but we're unable to commit to a timeline at this stage. In the meantime, a PR that plumbs this from the helm chart into the controller's config into these lines of code would be welcome.

@42atomys
Copy link
Contributor

Hi, the pull request #262 will make ti configurable easier 💯

@calvinbui
Copy link
Author

works so much better and faster now, that I think IfNotPresent should be the default.

my change:

"pod-spec-patch":
  "containers":
  - "imagePullPolicy": "IfNotPresent"
    "name": "agent"
  - "imagePullPolicy": "IfNotPresent"
    "name": "checkout"
  - "imagePullPolicy": "IfNotPresent"
    "name": "container-0"
  "initContainers":
  - "imagePullPolicy": "IfNotPresent"
    "name": "copy-agent"

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

No branches or pull requests

3 participants