Skip to content

Commit

Permalink
feat: support extra configurions for the detector (#1115)
Browse files Browse the repository at this point in the history
* feat: support extra configures for detector

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

* apply to the sn-platform chart

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

* fix ci

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

---------

Signed-off-by: ericsyh <[email protected]>
(cherry picked from commit 0ff96e1)
  • Loading branch information
ericsyh committed Oct 31, 2023
1 parent cce09c0 commit bfaa9df
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,15 @@ spec:
name: {{ .Release.Name }}-token-admin
key: TOKEN
{{- end }}
{{- if .Values.pulsar_detector.extraEnv }}
{{- toYaml .Values.pulsar_detector.extraEnv | nindent 10 }}
{{- end }}
{{- if .Values.pulsar_detector.extraVolumeMounts }}
volumeMounts:
{{- toYaml .Values.pulsar_detector.extraVolumeMounts | nindent 10 }}
{{- end }}
{{- if .Values.pulsar_detector.extraVolumes }}
volumes:
{{- toYaml .Values.pulsar_detector.extraVolumes | nindent 8 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/sn-platform-slim/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,9 @@ pulsar_detector:
limits: {}
# memory: "1Gi"
# cpu: "0.4"
extraVolumes: []
extraVolumeMounts: []
extraEnv: []
## Proxy service
## templates/pulsar-detector-service.yaml
##
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,15 @@ spec:
name: {{ .Release.Name }}-token-admin
key: TOKEN
{{- end }}
{{- if .Values.pulsar_detector.extraEnv }}
{{- toYaml .Values.pulsar_detector.extraEnv | nindent 10 }}
{{- end }}
{{- if .Values.pulsar_detector.extraVolumeMounts }}
volumeMounts:
{{- toYaml .Values.pulsar_detector.extraVolumeMounts | nindent 10 }}
{{- end }}
{{- if .Values.pulsar_detector.extraVolumes }}
volumes:
{{- toYaml .Values.pulsar_detector.extraVolumes | nindent 8 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/sn-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,9 @@ pulsar_detector:
limits: {}
# memory: "1Gi"
# cpu: "0.4"
extraVolumes: []
extraVolumeMounts: []
extraEnv: []
## Proxy service
## templates/pulsar-detector-service.yaml
##
Expand Down

0 comments on commit bfaa9df

Please sign in to comment.