Skip to content

Commit

Permalink
Changing the ImagePullPolicy for the operator and the webhook. (#1167)
Browse files Browse the repository at this point in the history
For the KMM operator, the `ImagePullPolicy` was set to `Always` for
development reasons but it is in fact not the best practice, therefore,
it was removed to allowed `kubelet` to have its default pull policy.

The webhook-server's pull policy was also removed to use the default
behavior to stay in sync with the KMM operator it is deployed with.

In a nutshell, the default policy is `Always` if the `latest` tag
is used and `IfNotPresent` otherwise.

This change is expected to reduce the networking bandwidth.

Signed-off-by: Yoni Bettan <[email protected]>
  • Loading branch information
ybettan authored Jul 29, 2024
1 parent 3ba2656 commit 34dc61e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion config/manager-base/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ spec:
value: must-gather
- name: RELATED_IMAGE_SIGN
value: signer
imagePullPolicy: Always
securityContext:
allowPrivilegeEscalation: false
livenessProbe:
Expand Down
1 change: 0 additions & 1 deletion config/webhook-server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ spec:
containers:
- image: webhook-server:latest
name: webhook-server
imagePullPolicy: Always
args: [--config=controller_config.yaml]
securityContext:
allowPrivilegeEscalation: false
Expand Down

0 comments on commit 34dc61e

Please sign in to comment.