From 057a92d009661f8c966b2f44e663dd4e8129c5dc Mon Sep 17 00:00:00 2001 From: Joe Salisbury Date: Thu, 25 Jul 2024 11:52:46 +0100 Subject: [PATCH] Updates ImagePullPolicy to IfNotPresent --- CHANGELOG.md | 4 ++++ helm/silence-operator/templates/cronjob.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d68b78c..f73e4763 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Change CronJob ImagePullPolicy from Always to IfNotPresent to reduce image network traffic. + ## [0.11.2] - 2023-12-06 ### Changed diff --git a/helm/silence-operator/templates/cronjob.yaml b/helm/silence-operator/templates/cronjob.yaml index a3265f85..bad44cf3 100644 --- a/helm/silence-operator/templates/cronjob.yaml +++ b/helm/silence-operator/templates/cronjob.yaml @@ -54,7 +54,7 @@ spec: - --kubernetes.incluster=true - --tag=installation={{ .Values.cluster.name }} - --tag=provider={{ .Values.cluster.provider.kind }} - imagePullPolicy: Always + imagePullPolicy: IfNotPresent securityContext: {{- with .Values.containerSecurityContext }} {{- . | toYaml | nindent 14 }}