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

Commit

Permalink
[stable/Janusgraph] Allow env variables in template (helm#14303)
Browse files Browse the repository at this point in the history
* Add env variables

Signed-off-by: Amotz Hoshen <[email protected]>
Signed-off-by: amotzhoshen <[email protected]>

* Update chart version

Signed-off-by: Amotz Hoshen <[email protected]>
Signed-off-by: amotzhoshen <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
  • Loading branch information
amotzhoshen authored and anasinnyk committed Jun 29, 2019
1 parent e79cc97 commit 0eaac64
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/janusgraph/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.0"
description: Open source, scalable graph database.
name: janusgraph
version: 0.2.0
version: 0.2.1
home: http://janusgraph.org
icon: https://raw.githubusercontent.com/JanusGraph/janusgraph/master/janusgraph.png
sources:
Expand Down
6 changes: 6 additions & 0 deletions stable/janusgraph/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.extraEnvs }}
env:
{{- with .Values.extraEnvs }}
{{- toYaml . | trim | nindent 12 -}}
{{- end }}
{{- end }}
ports:
- containerPort: 8182
protocol: TCP
Expand Down
2 changes: 2 additions & 0 deletions stable/janusgraph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ replicaCount: 1
## set any pod specific resource requests here
resources: {}

extraEnvs: {}

service:
type: ClusterIP # Change to LoadBalancer if you plan to access JanusGraph outside k8s cluster
port: 8182
Expand Down

0 comments on commit 0eaac64

Please sign in to comment.