-
Notifications
You must be signed in to change notification settings - Fork 83
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
karmor install --local
does not set ImagePullPolicy
to IfNotPresent
for all containers
#307
Comments
Hey @kranurag7, as I'm new here, so up to my understanding I think changes had to be made in |
Hey @chirag0002 Thanks for looking into the issue. |
Hey @kranurag7 I want to work on this. So I have to change the and here https://github.com/kubearmor/KubeArmor/blob/4fa2397bfca2cb9a54f480b542951f86e107e0ad/deployments/get/objects.go#L580 |
Hey @Abhishek-569 Sorry for the delayed response, your implementation works I think for the issue. @rootxrishabh the changes needs to be done only in the |
Hey @kranurag7,
|
Hey @rootxrishabh, We don't want to update the deployment YAMLs. As you can see here kubearmor-client/install/install.go Lines 280 to 282 in 9eda6b0
But this is limited to the Daemonset. In my opinion the scope of the issue is to implement the same things as part of other deployment and services as well that are installed. |
Thanks @kranurag7 will raise a PR soon. |
Hey @daemon1024, I appreciate the information. As I understand it, the deployments in the install.go file should be set up with the "IfNotPresent" imagePullPolicy. One specific deployment(one of the many) that needs this configuration is the Policy Manager Deployment. Please correct me if my understanding is incorrect. |
It should be set to "IfNotPresent" only if the
That's right |
Description
--local
flag does not setImagePullPolicy
toIfNotPresent
for many containers across different deployments. For example:Work in the scope of this issue
Check all pod controllers (deployments, daemon sets, etc.) deployed by
karmor install
haveImagePullPolicy
set toIfNotPresent
for all containers if--local
flag is specified.The text was updated successfully, but these errors were encountered: