Skip to content

Commit

Permalink
Merge pull request #25 from RasaHQ/multiple-fixes
Browse files Browse the repository at this point in the history
Storage class, DB env
  • Loading branch information
wochinge authored Feb 24, 2020
2 parents 1403078 + b38f64e commit 7a3d204
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/rasa-x/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v1

version: "1.0.7"
version: "1.1.0"
appVersion: "0.25.1"

name: rasa-x
Expand Down
6 changes: 3 additions & 3 deletions charts/rasa-x/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ Return the port of the action container.
Return the storage class name which should be used.
*/}}
{{- define "rasa-x.persistence.storageClass" -}}
{{- if .Values.rasax.persistence.storageClassName }}
{{- if (eq "-" .Values.rasax.persistence.storageClassName) }}
{{- if .Values.global.storageClass }}
{{- if (eq "-" .Values.global.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.rasax.persistence.storageClassName }}"
storageClassName: "{{ .Values.global.storageClass }}"
{{- end -}}
{{- end -}}
{{- end }}
6 changes: 4 additions & 2 deletions charts/rasa-x/templates/_postgresql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ Return the common database env variables.
*/}}
{{- define "rasa-x.psql.envs" -}}
- name: "DB_USER"
value: {{ template "rasa-x.psql.username" . }}
value: "{{ template "rasa-x.psql.username" . }}"
- name: "DB_HOST"
value: {{ template "rasa-x.psql.host" . }}
value: "{{ template "rasa-x.psql.host" . }}"
- name: "DB_PORT"
value: "{{ template "rasa-x.psql.port" . }}"
- name: "DB_DATABASE"
value: "{{ template "rasa-x.psql.database" . }}"
- name: "DB_PASSWORD"
Expand Down
4 changes: 2 additions & 2 deletions charts/rasa-x/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ rasax:
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
persistence:
# storageClassName the volume claim should use
# storageClassName: "-"
# access Modes of the pvc
accessModes:
- ReadWriteOnce
Expand Down Expand Up @@ -290,6 +288,8 @@ fullnameOverride: ""

# global settings of the used subcharts
global:
# storageClass the volume claims should use
# storageClass: "-"
# postgresql: global settings of the postgresql subchart
postgresql:
# postgresqlUsername which should be used by Rasa to connect to Postgres
Expand Down

0 comments on commit 7a3d204

Please sign in to comment.