Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #140 from kangshung/feature/sidecarImagePullPolicy
Browse files Browse the repository at this point in the history
Add imagePullPolicy support for NiFi sidecars
  • Loading branch information
banzo authored May 28, 2021
2 parents d4e13df + f5384e5 commit c6f21da
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2
name: nifi
version: 0.7.4
version: 0.7.5
appVersion: 1.12.1
description: Apache NiFi is a software project from the Apache Software Foundation designed to automate the flow of data between software systems.
keywords:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ The following table lists the configurable parameters of the nifi chart and the
| **SideCar** |
| `sidecar.image` | Separate image for tailing each log separately and checking zookeeper connectivity | `busybox` |
| `sidecar.tag` | Image tag | `1.32.0` |
| `sidecar.imagePullPolicy` | Image imagePullPolicy | `IfNotPresent` |
| **Resources** |
| `resources` | Pod resource requests and limits for logs | `{}` |
| **logResources** |
Expand Down
4 changes: 4 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ spec:
initContainers:
{{- if .Values.properties.isNode }}
- name: zookeeper
imagePullPolicy: {{ .Values.sidecar.imagePullPolicy | default "Always" | quote }}
image: "{{ .Values.sidecar.image }}:{{ .Values.sidecar.tag }}"
command:
- sh
Expand Down Expand Up @@ -458,6 +459,7 @@ spec:
{{ toYaml .Values.extraVolumeMounts | indent 10 }}
{{- end }}
- name: app-log
imagePullPolicy: {{ .Values.sidecar.imagePullPolicy | default "Always" | quote }}
image: "{{ .Values.sidecar.image }}:{{ .Values.sidecar.tag }}"
args: [tail, -n+1, -F, /var/log/nifi-app.log]
resources:
Expand All @@ -466,6 +468,7 @@ spec:
- name: logs
mountPath: /var/log
- name: bootstrap-log
imagePullPolicy: {{ .Values.sidecar.imagePullPolicy | default "Always" | quote }}
image: "{{ .Values.sidecar.image }}:{{ .Values.sidecar.tag }}"
args: [tail, -n+1, -F, /var/log/nifi-bootstrap.log]
resources:
Expand All @@ -474,6 +477,7 @@ spec:
- name: logs
mountPath: /var/log
- name: user-log
imagePullPolicy: {{ .Values.sidecar.imagePullPolicy | default "Always" | quote }}
image: "{{ .Values.sidecar.image }}:{{ .Values.sidecar.tag }}"
args: [tail, -n+1, -F, /var/log/nifi-user.log]
resources:
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ jvmMemory: 2g
sidecar:
image: busybox
tag: "1.32.0"
imagePullPolicy: "IfNotPresent"

## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
Expand Down

0 comments on commit c6f21da

Please sign in to comment.