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

Commit

Permalink
include additional libraries using postStart #5
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnuttinck committed Aug 27, 2019
1 parent de9f013 commit afed333
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: nifi
version: 0.1.5
version: 0.1.6
appVersion: 1.9.2
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ The following table lists the configurable parameters of the nifi chart and the
| `auth.ldap.host` | ldap hostname | `ldap://<hostname>:<port>` |
| `auth.ldap.searchBase` | ldap searchBase | `CN=Users,DC=example,DC=com` |
| `auth.ldap.searchFilter` | ldap searchFilter | `CN=john` |
| **postStart** |
| `postStart` | Include additional libraries in the Nifi containers by using the postStart handler | `nil` |
| **Service** |
| `service.headless.type` | Type of the headless service for nifi | `ClusterIP` |
| `service.loadBalancer.enabled` | Enable the LoadBalancerIP service | `true` |
Expand Down
5 changes: 5 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ spec:
- -c
- |
$NIFI_HOME/bin/nifi.sh stop
{{- if .Values.postStart }}
postStart:
exec:
command: ["/bin/sh", "-c", {{ .Values.postStart | quote }}]
{{- end }}
readinessProbe:
initialDelaySeconds: 60
periodSeconds: 20
Expand Down
4 changes: 4 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ properties:
port: 10000
authorizer: managed-authorizer

## Include additional libraries in the Nifi containers by using the postStart handler
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/
# postStart: /opt/nifi/psql; wget -P /opt/nifi/psql https://jdbc.postgresql.org/download/postgresql-42.2.6.jar

# Nifi User Authentication
auth:
ldap:
Expand Down

0 comments on commit afed333

Please sign in to comment.