Skip to content

Commit

Permalink
support custom init containers
Browse files Browse the repository at this point in the history
  • Loading branch information
slamdev committed Nov 30, 2021
1 parent 80f5a90 commit 02a36d6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/hive-metastore/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: hive-metastore
description: |-
Helm chart to deploy [hive-metastore](https://hive.apache.org/).
type: application
version: 0.0.4
version: 0.0.5
appVersion: 2.3.9-2.10.1
home: https://github.com/slamdev/helm-charts/tree/master/charts/hive-metastore
icon: https://hive.apache.org/images/hive_logo_medium.jpg
Expand Down
3 changes: 2 additions & 1 deletion charts/hive-metastore/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hive-metastore

![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.3.9-2.10.1](https://img.shields.io/badge/AppVersion-2.3.9--2.10.1-informational?style=flat-square)
![Version: 0.0.5](https://img.shields.io/badge/Version-0.0.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.3.9-2.10.1](https://img.shields.io/badge/AppVersion-2.3.9--2.10.1-informational?style=flat-square)

Helm chart to deploy [hive-metastore](https://hive.apache.org/).

Expand Down Expand Up @@ -30,6 +30,7 @@ Helm chart to deploy [hive-metastore](https://hive.apache.org/).
| ingress.enabled | bool | `false` | enables Ingress for hive-metastore |
| ingress.hosts | list | `[]` | ingress accepted hostnames |
| ingress.tls | list | `[]` | ingress TLS configuration |
| initContainers | list | `[]` | additional init containers; env vars and volume mounts are the same as for the main container |
| nameOverride | string | `""` | override name of the chart |
| nodeSelector | object | `{}` | node for scheduler pod assignment |
| podSecurityContext | object | `{}` | specifies security settings for a pod |
Expand Down
10 changes: 10 additions & 0 deletions charts/hive-metastore/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
initContainers:
{{- range .Values.initContainers }}
- {{- toYaml . | nindent 10 }}
{{- with $.Values.env }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: hive-configs
mountPath: /opt/hive-configs
{{- end }}
- name: expand-configs
image: tempire/alpine-perl:3.14.0
command:
Expand Down
3 changes: 3 additions & 0 deletions charts/hive-metastore/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ env: []
# - name: HADOOP_CLIENT_OPTS
# value: --add-opens java.base/java.net=ALL-UNNAMED -Dhive.root.logger=console

# initContainers -- additional init containers; env vars and volume mounts are the same as for the main container
initContainers: []

hiveSiteXml: |
<configuration>
Expand Down

0 comments on commit 02a36d6

Please sign in to comment.