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

add image pull policy #1462

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

filintod
Copy link

@filintod filintod commented Nov 12, 2024

Description

Currently one cannot use the kubernetes run when using an image loaded to a kind cluster as the image pull policy is hard coded to Always. This changes it to make it configurable.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1463

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@filintod filintod requested review from a team as code owners November 12, 2024 18:40
Signed-off-by: Filinto Duran <[email protected]>
@filintod filintod force-pushed the filinto/add-image-pull-policy branch from a170e7c to 448ecae Compare November 12, 2024 18:44
Signed-off-by: Filinto Duran <[email protected]>
@filintod
Copy link
Author

@artursouza @antontroshin please check


// Check containerImagePullPolicy is valid
if a.Apps[i].ContainerImagePullPolicy != "" {
allowedValues := []string{"Always", "Never", "IfNotPresent"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: It might be better to move up as const to avoid instantiation on each app and give a meaningful name.

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.

Allow Image Pull Policy for dapr run on kubernetes
2 participants