Skip to content

Commit

Permalink
fix: duplicate brokerClientAuthenticationPlugin definition when oauth…
Browse files Browse the repository at this point in the history
… and jwt are enabled simultaneously (#1160)

Fix duplicate brokerClientAuthenticationPlugin definition when oauth and jwt are enabled simultaneously

(cherry picked from commit 93af2bb)
  • Loading branch information
lhotari authored and ericsyh committed May 24, 2024
1 parent e6d2618 commit 58b7e7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion charts/sn-platform-slim/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,12 @@ brokerClientAuthenticationParameters: '{{ .Values.auth.oauth.brokerClientAuthent
{{- if .Values.auth.oauth.oauthSubjectClaim }}
PULSAR_PREFIX_oauthSubjectClaim: "{{ .Values.auth.oauth.oauthSubjectClaim }}"
{{- end }}
{{- end }}
{{- else }}
{{- if .Values.auth.authentication.jwt.enabled }}
brokerClientAuthenticationPlugin: "org.apache.pulsar.client.impl.auth.AuthenticationToken"
{{- end }}
{{- end }}
{{- end }}

{{/*
Define function for get authenticaiton environment variable
Expand Down
3 changes: 2 additions & 1 deletion charts/sn-platform/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,12 @@ brokerClientAuthenticationParameters: '{{ .Values.auth.oauth.brokerClientAuthent
{{- if .Values.auth.oauth.oauthSubjectClaim }}
PULSAR_PREFIX_oauthSubjectClaim: "{{ .Values.auth.oauth.oauthSubjectClaim }}"
{{- end }}
{{- end }}
{{- else }}
{{- if .Values.auth.authentication.jwt.enabled }}
brokerClientAuthenticationPlugin: "org.apache.pulsar.client.impl.auth.AuthenticationToken"
{{- end }}
{{- end }}
{{- end }}

{{/*
Define function for get authenticaiton environment variable
Expand Down

0 comments on commit 58b7e7b

Please sign in to comment.