Skip to content

Commit

Permalink
fix: detector template (#1162)
Browse files Browse the repository at this point in the history
* fix: detector template

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

* update detector auth example

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

* update template

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

* update the template

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

* update the template

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

* fix the comment

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

---------

Signed-off-by: ericsyh <[email protected]>
  • Loading branch information
ericsyh authored May 20, 2024
1 parent 93af2bb commit 45673ac
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,16 @@ spec:
{{- if .Values.pulsar_detector.extraArgs }}
args:
- >
bin/pulsar-detector \
bin/pulsar-detector
{{- range $key, $value := .Values.pulsar_detector.extraArgs }}
-{{ $key }} {{ $value }} \
{{- if $value }}
-{{ $key }}={{ $value }}
{{- else }}
-{{ $key }}
{{- end }}
-service-url {{ template "pulsar.detector.serviceUrl" . }} \
-webservice-url {{ template "pulsar.detector.webServiceUrl" . }}};
{{- end }}
-service-url {{ template "pulsar.detector.serviceUrl" . }}
-webservice-url {{ template "pulsar.detector.webServiceUrl" . }};
{{- else }}
args:
- >
Expand Down
7 changes: 6 additions & 1 deletion charts/sn-platform-slim/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1409,8 +1409,13 @@ pulsar_detector:
## Additional pulsar_detector container arguments
extraArgs: {}
# Configure the tls auth for detector
# auth-plugin: "tls"
# auth-plugin: tls
# auth-params: "{\"tlsCertFile\":\"/pulsar/certs/pulsar-detector/tls.crt\",\"tlsKeyFile\":\"/pulsar/certs/pulsar-detector/tls.key\"}"
# Configure the tls auth for detector
# auth-plugin: token
# auth-params: "{\"token\":\"tokenVal\"}"
# Allow TLS insecure connection
# tls-allow-insecure: ""
## Proxy service
## templates/pulsar-detector-service.yaml
##
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,16 @@ spec:
{{- if .Values.pulsar_detector.extraArgs }}
args:
- >
bin/pulsar-detector \
bin/pulsar-detector
{{- range $key, $value := .Values.pulsar_detector.extraArgs }}
-{{ $key }} {{ $value }} \
{{- if $value }}
-{{ $key }}={{ $value }}
{{- else }}
-{{ $key }}
{{- end }}
-service-url {{ template "pulsar.detector.serviceUrl" . }} \
-webservice-url {{ template "pulsar.detector.webServiceUrl" . }}};
{{- end }}
-service-url {{ template "pulsar.detector.serviceUrl" . }}
-webservice-url {{ template "pulsar.detector.webServiceUrl" . }};
{{- else }}
args:
- >
Expand Down
7 changes: 6 additions & 1 deletion charts/sn-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1483,8 +1483,13 @@ pulsar_detector:
## Additional pulsar_detector container arguments
extraArgs: {}
# Configure the tls auth for detector
# auth-plugin: "tls"
# auth-plugin: tls
# auth-params: "{\"tlsCertFile\":\"/pulsar/certs/pulsar-detector/tls.crt\",\"tlsKeyFile\":\"/pulsar/certs/pulsar-detector/tls.key\"}"
# Configure the tls auth for detector
# auth-plugin: token
# auth-params: "{\"token\":\"tokenVal\"}"
# Allow TLS insecure connection
# tls-allow-insecure: ""
## Proxy service
## templates/pulsar-detector-service.yaml
##
Expand Down

0 comments on commit 45673ac

Please sign in to comment.