Skip to content
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

js: Add default for cluster name when JetStream enabled #187

Merged
merged 1 commit into from Jan 22, 2021

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Jan 22, 2021

Fixes #185

Signed-off-by: Waldemar Quevedo wally@synadia.com

Signed-off-by: Waldemar Quevedo <wally@synadia.com>
{{- else }}
name: {{ template "nats.name" . }}
{{- end }}
{{- else }}
{{- with .Values.cluster.name }}
name: {{ . }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this name: {{ . }} also need to have the if guard from above?

      {{- if .Values.cluster.name }}
      name: {{ .Values.cluster.name }}
      {{- else }}
      name: {{ template "nats.name" . }}
      {{- end }}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No since the with will do the nil check instead of the if.

@wallyqs wallyqs merged commit 107607b into nats-io:master Jan 22, 2021
@wallyqs wallyqs deleted the cluster-name branch January 22, 2021 04:41
@ColinSullivan1
Copy link
Member

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nats jetstream + cluster error
3 participants