Fix sftp performances and add seaweedfs all-in-one deployment (#6792)
* improve perfs & fix rclone & refactoring Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com> * improve perfs on download + add seaweedfs all-in-one deployment Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com> * use helper for topologySpreadConstraints and fix create home dir of sftp users Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com> * fix helm lint Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com> * add missing ctx param Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com> --------- Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com>
This commit is contained in:
@@ -197,4 +197,26 @@ or generate a new random password if it doesn't exist.
|
||||
{{- else -}}
|
||||
{{- randAlphaNum $length -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /*
|
||||
Render a component’s topologySpreadConstraints exactly as given in values,
|
||||
respecting string vs. list, and providing the component name for tpl lookups.
|
||||
|
||||
Usage:
|
||||
{{ include "seaweedfs.topologySpreadConstraints" (dict "Values" .Values "component" "filer") | nindent 8 }}
|
||||
*/ -}}
|
||||
{{- define "seaweedfs.topologySpreadConstraints" -}}
|
||||
{{- $vals := .Values -}}
|
||||
{{- $comp := .component -}}
|
||||
{{- $section := index $vals $comp | default dict -}}
|
||||
{{- $tsp := index $section "topologySpreadConstraints" -}}
|
||||
{{- with $tsp }}
|
||||
topologySpreadConstraints:
|
||||
{{- if kindIs "string" $tsp }}
|
||||
{{ tpl $tsp (dict "Values" $vals "component" $comp) }}
|
||||
{{- else }}
|
||||
{{ toYaml $tsp }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user