nats chart provisoning
This commit is contained in:
23
opencloud/charts/nats/files/config/jetstream.yaml
Normal file
23
opencloud/charts/nats/files/config/jetstream.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
{{- with .Values.config.jetstream }}
|
||||
{{- with .memoryStore }}
|
||||
{{- if .enabled }}
|
||||
{{- with .maxSize }}
|
||||
max_memory_store: << {{ . }} >>
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
max_memory_store: 0
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .fileStore }}
|
||||
{{- if .enabled }}
|
||||
store_dir: {{ .dir }}
|
||||
{{- if .maxSize }}
|
||||
max_file_store: << {{ .maxSize }} >>
|
||||
{{- else if .pvc.enabled }}
|
||||
max_file_store: << {{ .pvc.size }} >>
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
max_file_store: 0
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user