Skip to content

Commit

Permalink
Make imagePullPolicy configurable in all charts (closes #43)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeemster committed Jul 29, 2022
1 parent 7443be4 commit 9b9a8fb
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/cron-job/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: cron-job
description: A Helm Chart to deploy an arbitrary container as a cron job.
version: 0.4.2
version: 0.4.3
icon: https://raw.githubusercontent.com/snowplow-devops/helm-charts/master/docs/logo/snowplow.png
home: https://github.com/snowplow-devops/helm-charts
sources:
Expand Down
1 change: 1 addition & 0 deletions charts/cron-job/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ helm delete cron-job
| image.repository | string | `"busybox"` | |
| image.tag | string | `"latest"` | |
| image.isRepositoryPublic | bool | `true` | Whether the repository is public |
| image.pullPolicy | string | `"IfNotPresent"` | The image pullPolicy to use |
| config.command | list | `[]` | |
| config.args | list | `[]` | |
| config.env | object | `{}` | Map of environment variables to use within the job |
Expand Down
2 changes: 1 addition & 1 deletion charts/cron-job/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
containers:
- name: "{{ include "app.fullname" . }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: Always
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}

{{- if .Values.config.command }}
command:
Expand Down
2 changes: 2 additions & 0 deletions charts/cron-job/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ image:
tag: "latest"
# -- Whether the repository is public
isRepositoryPublic: true
# -- The image pullPolicy to use
pullPolicy: "IfNotPresent"

config:
command: []
Expand Down
2 changes: 1 addition & 1 deletion charts/service-deployment/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: service-deployment
description: A Helm Chart to setup a generic deployment with optional service/hpa bindings
version: 0.1.2
version: 0.1.3
icon: https://raw.githubusercontent.com/snowplow-devops/helm-charts/master/docs/logo/snowplow.png
home: https://github.com/snowplow-devops/helm-charts
sources:
Expand Down
1 change: 1 addition & 0 deletions charts/service-deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ helm delete service-deployment
| image.repository | string | `"nginx"` | |
| image.tag | string | `"latest"` | |
| image.isRepositoryPublic | bool | `true` | Whether the repository is public |
| image.pullPolicy | string | `"IfNotPresent"` | The image pullPolicy to use |
| config.command | list | `[]` | |
| config.args | list | `[]` | |
| config.env | string | `nil` | Map of environment variables to use within the job |
Expand Down
2 changes: 1 addition & 1 deletion charts/service-deployment/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
containers:
- name: "{{ include "app.fullname" . }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: Always
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}

{{- if .Values.config.command }}
command:
Expand Down
2 changes: 2 additions & 0 deletions charts/service-deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ image:
tag: "latest"
# -- Whether the repository is public
isRepositoryPublic: true
# -- The image pullPolicy to use
pullPolicy: "IfNotPresent"

config:
command: []
Expand Down
2 changes: 1 addition & 1 deletion charts/snowplow-iglu-server/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: snowplow-iglu-server
description: A Helm Chart to deploy the Snowplow Iglu Server project
version: 0.1.5
version: 0.1.6
appVersion: "0.8.5"
icon: https://raw.githubusercontent.com/snowplow-devops/helm-charts/master/docs/logo/snowplow.png
home: https://github.com/snowplow-devops/helm-charts
Expand Down
1 change: 1 addition & 0 deletions charts/snowplow-iglu-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ You will need to fill these targeted fields:
| service.image.repository | string | `"snowplow/iglu-server"` | |
| service.image.tag | string | `"0.8.5"` | |
| service.image.isRepositoryPublic | bool | `true` | Whether the repository is public |
| service.image.pullPolicy | string | `"IfNotPresent"` | The image pullPolicy to use |
| service.minReplicas | int | `1` | |
| service.maxReplicas | int | `4` | |
| service.targetCPUUtilizationPercentage | int | `75` | |
Expand Down
2 changes: 1 addition & 1 deletion charts/snowplow-iglu-server/templates/iglu-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
containers:
- name: {{ include "iglu.app.name" . }}
image: {{ .Values.service.image.repository}}:{{ .Values.service.image.tag}}
imagePullPolicy: Always
imagePullPolicy: {{ default "IfNotPresent" .Values.service.image.pullPolicy }}

args:
- "-Dconfig.override_with_env_vars=true"
Expand Down
2 changes: 2 additions & 0 deletions charts/snowplow-iglu-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ service:
tag: "0.8.5"
# -- Whether the repository is public
isRepositoryPublic: true
# -- The image pullPolicy to use
pullPolicy: "IfNotPresent"
minReplicas: 1
maxReplicas: 4
targetCPUUtilizationPercentage: 75
Expand Down

0 comments on commit 9b9a8fb

Please sign in to comment.