Skip to content

Fix pull policy#236

Merged
nimakaviani merged 2 commits intomainfrom
fix-pull-policy
May 3, 2024
Merged

Fix pull policy#236
nimakaviani merged 2 commits intomainfrom
fix-pull-policy

Conversation

@nimakaviani
Copy link
Copy Markdown
Contributor

fixes #235

Signed-off-by: Nima Kaviani <nkaviani@amazon.com>
fixes #235

Signed-off-by: Nima Kaviani <nkaviani@amazon.com>
@greghaynes
Copy link
Copy Markdown
Contributor

Nice! We should probably open an issue to let users set this as I'm not sure there will be a way for a user to force all of these to update now, e.g. to pull in a new argo release.

@nimakaviani
Copy link
Copy Markdown
Contributor Author

it might be slightly easier to do this with sed in fact, given that we already do it to alter some other fields in the generated manifests.

Also to Greg's point, do we want to give the users the option to modify the pull policy on the fly? We dont do it for image references though.

@nabuskey
Copy link
Copy Markdown
Collaborator

nabuskey commented Apr 30, 2024

it might be slightly easier to do this with sed in fact, given that we already do it to alter some other fields in the generated manifests.

I'd rather stick to kustomize or helm features where possible. Direct manipulation through tools like sed should be for times where it's impossible for us to do it through helm or kusotmize.

Users can specify w/e manifest they want for core packages right now. We could add a feature just for images though since it's a very common task imo.

@blakeromano
Copy link
Copy Markdown
Contributor

I'd rather stick to kustomize or helm features where possible. Direct manipulation through tools like sed should be for times where it's impossible for us to do it through helm or kusotmize.

I am of the opinion we should be contributing upstream to add image pull policies rather then trying to do direct manipulation.

@nimakaviani
Copy link
Copy Markdown
Contributor Author

@blakeromano great point.

I am going to create an issue with Argo and possibly submit a PR for a fix to their helm chart. In the interim, to unblock us, let's get this merged, and we will do it the right way once Argo CD's helm chart has the ability to merge stuff.

@nimakaviani
Copy link
Copy Markdown
Contributor Author

asked a question on the argo cd slack.

Alternatively, rather than using the generated install manifest, we can use the argo cd helm chart and set the imagePullPolicy to the right value.

I will wait for a little longer to see if we get a response and if not, we can take the helm chart route.

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

Successfully merging this pull request may close these issues.

Leverage local docker image cache

4 participants