Skip to content

Commit

Permalink
add lifecycle to zeppelin
Browse files Browse the repository at this point in the history
  • Loading branch information
slamdev committed Jun 24, 2020
1 parent cb1d9ba commit c1ddb80
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion charts/zeppelin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: zeppelin
description: |-
Helm chart to deploy [zeppelin](http://zeppelin.apache.org/).
type: application
version: 0.0.7
version: 0.0.8
appVersion: "0.9.0"
home: https://github.com/slamdev/helm-charts/tree/master/charts/zeppelin
icon: https://zeppelin.apache.org/docs/latest/assets/themes/zeppelin/img/zeppelin_logo.png
Expand Down
5 changes: 1 addition & 4 deletions charts/zeppelin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ zeppelin
========
Helm chart to deploy [zeppelin](http://zeppelin.apache.org/).

Current chart version is `0.0.7`
Current chart version is `0.0.8`

Source code can be found [here](https://github.com/slamdev/helm-charts/tree/master/charts/zeppelin)

Expand All @@ -29,9 +29,6 @@ Source code can be found [here](https://github.com/slamdev/helm-charts/tree/mast
| nodeSelector | object | `{}` | node for scheduler pod assignment |
| podSecurityContext | object | `{}` | specifies security settings for a pod |
| postStart | string | `"echo 'additional dependencies can be installed here'"` | script that is executed via container's lifecycle.postStart hook |
| postStartCommand[0] | string | `"ls"` | |
| postStartCommand[1] | string | `"-la"` | |
| postStartCommand[2] | string | `"/"` | |
| readinessProbe.httpGet.path | string | `"/api/version"` | path for readiness probe |
| readinessProbe.httpGet.port | string | `"http"` | port for readiness probe |
| resources | object | `{}` | custom resource configuration |
Expand Down
5 changes: 1 addition & 4 deletions charts/zeppelin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ spec:
lifecycle:
postStart:
exec:
command:
{{- with .Values.postStartCommand }}
{{- toYaml . | nindent 18 }}
{{- end }}
command: ["sh", "-c", "/postStart.sh > /tmp/postStart.log"]
env:
- name: ZEPPELIN_PORT
value: "8080"
Expand Down
5 changes: 0 additions & 5 deletions charts/zeppelin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ env: []
# - name: SAMPLE
# value: text

postStartCommand:
- ls
- -la
- /

# postStart -- script that is executed via container's lifecycle.postStart hook
postStart: |-
echo 'additional dependencies can be installed here'

0 comments on commit c1ddb80

Please sign in to comment.