This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 4be1a1d  Zookeeper image should not default to pull Always (#512)
4be1a1d is described below

commit 4be1a1d62f9a8deb6b24ead757899e57461e3a66
Author: Houston Putman <[email protected]>
AuthorDate: Fri Dec 23 10:06:40 2022 -0600

    Zookeeper image should not default to pull Always (#512)
    
    It will now default to `IfNotPresent`
---
 controllers/zk_api/zkcluster.go | 2 +-
 docs/upgrade-notes.md           | 2 ++
 helm/solr-operator/Chart.yaml   | 5 +++++
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/controllers/zk_api/zkcluster.go b/controllers/zk_api/zkcluster.go
index aadd1ca..cf4820c 100644
--- a/controllers/zk_api/zkcluster.go
+++ b/controllers/zk_api/zkcluster.go
@@ -29,7 +29,7 @@ const (
        DefaultZkContainerVersion = "0.2.14"
 
        // DefaultZkContainerPolicy is the default container pull policy used
-       DefaultZkContainerPolicy = "Always"
+       DefaultZkContainerPolicy = v1.PullIfNotPresent
 
        // DefaultTerminationGracePeriod is the default time given before the
        // container is stopped. This gives clients time to disconnect from a
diff --git a/docs/upgrade-notes.md b/docs/upgrade-notes.md
index 633a0ae..68a4a7c 100644
--- a/docs/upgrade-notes.md
+++ b/docs/upgrade-notes.md
@@ -118,6 +118,8 @@ _Note that the Helm chart version does not contain a `v` 
prefix, which the downl
   The maximum number of pods allowed down at any given time is aligned with 
the [Managed Update settings](solr-cloud/solr-cloud-crd.md#update-strategy) 
provided in the spec.
   If this is not provided, the default setting (`25%`) is used.
 
+- Provided Zookeeper pods use the `IfNotPresent` pullPolicy by default. Users 
that specify this field manually will not see a change.
+
 ### v0.6.0
 - The default Solr version for the `SolrCloud` and `SolrPrometheusExporter` 
resources has been upgraded from `8.9` to `8.11`.
   This will not affect any existing resources, as default versions are 
hard-written to the resources immediately.
diff --git a/helm/solr-operator/Chart.yaml b/helm/solr-operator/Chart.yaml
index 3015339..6b45ffc 100644
--- a/helm/solr-operator/Chart.yaml
+++ b/helm/solr-operator/Chart.yaml
@@ -84,6 +84,11 @@ annotations:
       links:
         - name: GitHub PR
           url: https://github.com/apache/solr-operator/pull/508
+    - kind: changed
+      description: Zookeeper images now use the IfNotPresent pullPolicy by 
default
+      links:
+        - name: GitHub PR
+          url: https://github.com/apache/solr-operator/pull/512/files
   artifacthub.io/images: |
     - name: solr-operator
       image: apache/solr-operator:v0.7.0-prerelease

Reply via email to