diff --git a/README.md b/README.md index 84db821..ba886f2 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Configure your Infinispan cluster by specifying values in the `deploy.*` section | ----- | ----------- | ------- | ---------------------- | | `deploy.clusterDomain` | Specifies the internal Kubernetes cluster domain. | cluster.local | - | | `deploy.replicas` | Specifies the number of nodes in your Infinispan cluster, with a pod created for each node. | 1 | - | +| `deploy.container.imagePullPolicy` | The Infinispan image pull policy. | `"Always"` | - | | `deploy.container.extraJvmOpts` | Passes JVM options to Infinispan Server. | `""` | - | | `deploy.container.libraries` | Libraries to be downloaded before server startup. | `""` | Specify multiple, space-separated artifacts represented as URLs or as Maven coordinates. Archive artifacts in .tar, .tar.gz or .zip formats will be extracted. | | `deploy.container.env` | Additional environment variables in K8s format. | `""` | See docs for examples of [strings](https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/#using-environment-variables-inside-of-your-config), [ConfigMaps](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#define-container-environment-variables-with-data-from-multiple-configmaps) and [Secrets](https://kubernetes.io/docs/tasks/inject-data-application/distribute-credentials-secure/#define-container-environment-variables-with-data-from-multiple-secrets) | diff --git a/README.md.tpl b/README.md.tpl index 2798c66..a3c5a52 100644 --- a/README.md.tpl +++ b/README.md.tpl @@ -19,6 +19,7 @@ Configure your {brandname} cluster by specifying values in the `deploy.*` sectio | ----- | ----------- | ------- | ---------------------- | | `deploy.clusterDomain` | Specifies the internal Kubernetes cluster domain. | cluster.local | - | | `deploy.replicas` | Specifies the number of nodes in your {brandname} cluster, with a pod created for each node. | 1 | - | +| `deploy.container.imagePullPolicy` | The {brandname} image pull policy. | `"Always"` | - | | `deploy.container.extraJvmOpts` | Passes JVM options to {brandname} Server. | `""` | - | | `deploy.container.libraries` | Libraries to be downloaded before server startup. | `""` | Specify multiple, space-separated artifacts represented as URLs or as Maven coordinates. Archive artifacts in .tar, .tar.gz or .zip formats will be extracted. | | `deploy.container.env` | Additional environment variables in K8s format. | `""` | See docs for examples of [strings](https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/#using-environment-variables-inside-of-your-config), [ConfigMaps](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#define-container-environment-variables-with-data-from-multiple-configmaps) and [Secrets](https://kubernetes.io/docs/tasks/inject-data-application/distribute-credentials-secure/#define-container-environment-variables-with-data-from-multiple-secrets) | diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index 2e2b8ed..d3cd5fb 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -71,7 +71,7 @@ spec: - env: {{- include "infinispan-helm-charts.containerEnv" .Values.deploy.container | nindent 12 }} image: {{ .Values.images.server }} - imagePullPolicy: Always + imagePullPolicy: {{ .Values.deploy.container.imagePullPolicy }} args: - --cluster-name={{ include "infinispan-helm-charts.name" . }} - --server-config=/etc/config/infinispan.yml diff --git a/values.schema.json b/values.schema.json index 6e7f8b6..014646b 100644 --- a/values.schema.json +++ b/values.schema.json @@ -51,6 +51,20 @@ "container": { "description": "JVM, CPU, and memory resources for Infinispan pods.", "properties": { + "imagePullPolicy": { + "description": "The Infinispan image pull policy.", + "enum": [ + "", + "IfNotPresent", + "Always", + "Never" + ], + "type": [ + "string", + "null" + ], + "default": "Always" + }, "extraJvmOpts": { "description": "Passes JVM options to Infinispan Server.", "type": [ diff --git a/values.schema.json.tpl b/values.schema.json.tpl index 7b1efb5..fc46873 100644 --- a/values.schema.json.tpl +++ b/values.schema.json.tpl @@ -51,6 +51,20 @@ "container": { "description": "JVM, CPU, and memory resources for {brandname} pods.", "properties": { + "imagePullPolicy": { + "description": "The {brandname} image pull policy.", + "enum": [ + "", + "IfNotPresent", + "Always", + "Never" + ], + "type": [ + "string", + "null" + ], + "default": "Always" + }, "extraJvmOpts": { "description": "Passes JVM options to {brandname} Server.", "type": [ diff --git a/values.yaml b/values.yaml index 08e5209..c08e8cd 100644 --- a/values.yaml +++ b/values.yaml @@ -14,6 +14,7 @@ deploy: clusterDomain: cluster.local container: + imagePullPolicy: "Always" extraJvmOpts: "" libraries: "" # [USER] Define custom environment variables using standard K8s format