Skip to content

Commit

Permalink
Merge pull request #95 from RasaHQ/disable_telemetry_db_service
Browse files Browse the repository at this point in the history
Disable telemetry for the DB migration service
  • Loading branch information
Tomasz Czekajlo authored Nov 4, 2020
2 parents f6178e1 + 77074c1 commit 4574f82
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 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: v2

version: "1.7.1"
version: "1.7.2"
appVersion: "0.33.0"

name: rasa-x
Expand Down
7 changes: 7 additions & 0 deletions charts/rasa-x/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,10 @@ initContainers:
echo The database migration status: completed...100%"
{{- end -}}
{{- end -}}

{{/*
Return the rasa x image name value as a default if the dbMigrationService.name variable is not defined.
*/}}
{{- define "dbMigrationService-name" -}}
{{ .Values.dbMigrationService.name | default .Values.rasax.name }}
{{- end -}}
4 changes: 3 additions & 1 deletion charts/rasa-x/templates/db-migration-service-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
{{- end }}
containers:
- name: db-migration-service
image: "{{ .Values.dbMigrationService.name }}:{{ include "db-migration-service.version" . }}"
image: "{{ include "dbMigrationService-name" . }}:{{ include "db-migration-service.version" . }}"
imagePullPolicy: {{ .Values.images.pullPolicy }}
{{- if .Values.dbMigrationService.command }}
command:
Expand Down Expand Up @@ -61,6 +61,8 @@ spec:
{{ toYaml .Values.dbMigrationService.extraVolumeMounts | indent 8 }}
{{- end }}
env:
- name: "RASA_TELEMETRY_ENABLED"
value: "false"
- name: "SELF_PORT"
value: {{ .Values.dbMigrationService.port | quote }}
- name: "RUN_DATABASE_MIGRATION_AS_SEPARATE_SERVICE"
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 @@ -206,8 +206,8 @@ dbMigrationService:
command: []
# args overrides the default arguments to run in the container
args: []
# name is the Docker image name which is used by the migration service
name: "rasa/rasa-x" # gcr.io/rasa-platform/rasa-x-ee
# name is the Docker image name which is used by the migration service (uses `rasax.name` by default)
name: "" # gcr.io/rasa-platform/rasa-x-ee
# tag refers to the Rasa X image tag (uses `appVersion` by default)
tag: ""
# ignoreVersionCheck defines if check required minimum Rasa X version that is required to run the service
Expand Down

0 comments on commit 4574f82

Please sign in to comment.