Skip to content

Commit

Permalink
fix: detector extraArgs missed default auth configs (#1167)
Browse files Browse the repository at this point in the history
* fix: detector extraArgs missed default auth configs

Signed-off-by: ericsyh <[email protected]>

* fix the comments

Signed-off-by: ericsyh <[email protected]>

* fix lint

Signed-off-by: ericsyh <[email protected]>

* fix lint

Signed-off-by: ericsyh <[email protected]>

---------

Signed-off-by: ericsyh <[email protected]>
(cherry picked from commit d1d15fe)
  • Loading branch information
ericsyh committed Jun 10, 2024
1 parent 8c4d5e3 commit 74560f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,16 @@ spec:
-{{ $key }}
{{- end }}
{{- end }}
{{- if and .Values.auth.authentication.enabled (eq .Values.auth.authentication.provider "jwt") }}
-auth-plugin token
-auth-params "{\"token\":\"$brokerClientAuthenticationParameters\"}"
{{- end }}
-service-url {{ template "pulsar.detector.serviceUrl" . }}
-webservice-url {{ template "pulsar.detector.webServiceUrl" . }};
{{- else }}
args:
- >
bin/pulsar-detector -service-url {{ template "pulsar.detector.serviceUrl" . }} -webservice-url {{ template "pulsar.detector.webServiceUrl" . }} {{- if .Values.auth.authentication.enabled }} -auth-plugin token -auth-params "{\"token\":\"$brokerClientAuthenticationParameters\"}" {{- end }};
bin/pulsar-detector -service-url {{ template "pulsar.detector.serviceUrl" . }} -webservice-url {{ template "pulsar.detector.webServiceUrl" . }} {{- if and .Values.auth.authentication.enabled (eq .Values.auth.authentication.provider "jwt") }} -auth-plugin token -auth-params "{\"token\":\"$brokerClientAuthenticationParameters\"}" {{- end }};
{{- end }}
{{- if .Values.pulsar_detector.resources }}
resources: {{- toYaml .Values.pulsar_detector.resources | nindent 10 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,16 @@ spec:
-{{ $key }}
{{- end }}
{{- end }}
{{- if and .Values.auth.authentication.enabled (eq .Values.auth.authentication.provider "jwt") }}
-auth-plugin token
-auth-params "{\"token\":\"$brokerClientAuthenticationParameters\"}"
{{- end }}
-service-url {{ template "pulsar.detector.serviceUrl" . }}
-webservice-url {{ template "pulsar.detector.webServiceUrl" . }};
{{- else }}
args:
- >
bin/pulsar-detector -service-url {{ template "pulsar.detector.serviceUrl" . }} -webservice-url {{ template "pulsar.detector.webServiceUrl" . }} {{- if .Values.auth.authentication.enabled }} -auth-plugin token -auth-params "{\"token\":\"$brokerClientAuthenticationParameters\"}" {{- end }};
bin/pulsar-detector -service-url {{ template "pulsar.detector.serviceUrl" . }} -webservice-url {{ template "pulsar.detector.webServiceUrl" . }} {{- if and .Values.auth.authentication.enabled (eq .Values.auth.authentication.provider "jwt") }} -auth-plugin token -auth-params "{\"token\":\"$brokerClientAuthenticationParameters\"}" {{- end }};
{{- end }}
{{- if .Values.pulsar_detector.resources }}
resources: {{- toYaml .Values.pulsar_detector.resources | nindent 10 }}
Expand Down

0 comments on commit 74560f6

Please sign in to comment.