Skip to content

Commit

Permalink
Add support for more features in helm chart
Browse files Browse the repository at this point in the history
* add init container support
* add sidecar container support
* add emptyDir volume support
  • Loading branch information
antvick committed Oct 17, 2022
1 parent 020e30e commit 6362e85
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
13 changes: 12 additions & 1 deletion charts/kminion/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
{{- end}}
labels:
{{- include "kminion.selectorLabels" . | nindent 8}}
{{- if .Values.customLabels}}
{{- if .Values.customLabels -}}
{{toYaml .Values.customLabels | nindent 8}}
{{- end}}
spec:
Expand All @@ -44,6 +44,14 @@ spec:
secret:
secretName: {{.secretName}}
{{- end}}
{{- range .Values.deployment.volumes.emptyDir}}
- name: {{.name}}
emptydir: {}
{{- end}}
initContainers:
{{- with .Values.deployment.initContainers }}
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{.Chart.Name}}
securityContext:
Expand Down Expand Up @@ -89,6 +97,9 @@ spec:
path: /ready
port: {{.Values.service.port}}
initialDelaySeconds: 10
{{- with .Values.deployment.extraContainers }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector}}
nodeSelector:
{{- toYaml . | nindent 8}}
Expand Down
7 changes: 7 additions & 0 deletions charts/kminion/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ deployment:
secrets: []
# - secretName: vault-tls
# mountPath: /vault/tls
emptyDir: []
# - name: example

# If you want to provide specifc config settings like sensitive Kafka credentials via environment variables you can
# do so by making them available here. See the kminion reference config to figure out the expected variable names.
Expand All @@ -137,6 +139,11 @@ deployment:
# secretName: kafka-credentials-team-xy
# secretKey: password

# Add additional containers, e. g. for oauth2-proxy
extraContainers: {}
# Add additional init containers, e. g. for oauth2-proxy
initContainers: {}

kminion:
# KMinion can be configured using environment variables and/or a YAML config. The yaml contents under config will
# end up in a YAML file which will be mounted into the kminion container.
Expand Down

0 comments on commit 6362e85

Please sign in to comment.