-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visibility config doesn't get rendered if visibility and default store types are different #466
Comments
Isn't that because you didn't set up |
That shouldn't be the case afaik. Please correct me if I'm wrong. It defaults to "visibility" from my understanding of the template. |
You might be right. I don't understand some helm constructs, yet. persistence:
defaultStore: {{ $.Values.server.config.persistence.defaultStore }}
{{- if or $.Values.elasticsearch.enabled $.Values.elasticsearch.external }}
visibilityStore: es-visibility
{{- else }}
visibilityStore: visibility
{{- end }}
...
datastores:
...
visibility:
{{- if eq (include "temporal.persistence.driver" (list $ "default")) "sql" }} includes {{- define "temporal.persistence.driver" -}}
{{- $global := index . 0 -}}
{{- $store := index . 1 -}}
{{- $storeConfig := index $global.Values.server.config.persistence $store -}}
{{- if $storeConfig.driver -}}
{{- $storeConfig.driver -}}
{{- else if $global.Values.cassandra.enabled -}}
{{- print "cassandra" -}}
{{- else if $global.Values.mysql.enabled -}}
{{- print "sql" -}}
{{- else if $global.Values.postgresql.enabled -}}
{{- print "sql" -}}
{{- else -}}
{{- required (printf "Please specify persistence driver for %s store" $store) $storeConfig.driver -}}
{{- end -}}
{{- end -}} what does |
This should be fixed now via #436 |
What are you really trying to do?
I'm trying to install Temporal with Cassandra as the default store and PostgreSQL as the visibility store.
Describe the bug
While rendering visibility store config, instead of checking for .visibility key, it was checking for .default. (The chart works when both your default and visibility store are same)
Responsible line of code: https://github.com/temporalio/helm-charts/blob/master/charts/temporal/templates/server-configmap.yaml#L60
Minimal Reproduction
Environment/Versions
Not applicable.
The text was updated successfully, but these errors were encountered: