fix(chart): bucket hook (#8680)
* fix(chart): add imagePullPolicy and imagePullSecret to bucket-hook * chore(chart): add configurable bucket hook resources * fix(chart): add createBucketsHook value to allInOne and filer s3 blocks
This commit is contained in:
@@ -64,9 +64,11 @@ spec:
|
|||||||
{{- if .Values.filer.podSecurityContext.enabled }}
|
{{- if .Values.filer.podSecurityContext.enabled }}
|
||||||
securityContext: {{- omit .Values.filer.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
securityContext: {{- omit .Values.filer.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- include "seaweedfs.imagePullSecrets" $ | nindent 6 }}
|
||||||
containers:
|
containers:
|
||||||
- name: post-install-job
|
- name: post-install-job
|
||||||
image: {{ template "master.image" . }}
|
image: {{ template "master.image" . }}
|
||||||
|
imagePullPolicy: {{ $.Values.global.imagePullPolicy | default "IfNotPresent" }}
|
||||||
env:
|
env:
|
||||||
- name: WEED_CLUSTER_DEFAULT
|
- name: WEED_CLUSTER_DEFAULT
|
||||||
value: "sw"
|
value: "sw"
|
||||||
@@ -187,6 +189,10 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
- containerPort: {{ .Values.master.grpcPort }}
|
- containerPort: {{ .Values.master.grpcPort }}
|
||||||
#name: swfs-master-grpc
|
#name: swfs-master-grpc
|
||||||
|
{{- with coalesce .Values.allInOne.s3.createBucketsHook.resources .Values.s3.createBucketsHook.resources .Values.filer.s3.createBucketsHook.resources }}
|
||||||
|
resources:
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.filer.containerSecurityContext.enabled }}
|
{{- if .Values.filer.containerSecurityContext.enabled }}
|
||||||
securityContext: {{- omit .Values.filer.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
securityContext: {{- omit .Values.filer.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -915,6 +915,8 @@ filer:
|
|||||||
# versioning: Enabled
|
# versioning: Enabled
|
||||||
# - name: bucket-b
|
# - name: bucket-b
|
||||||
# anonymousRead: false
|
# anonymousRead: false
|
||||||
|
createBucketsHook:
|
||||||
|
resources: {}
|
||||||
|
|
||||||
s3:
|
s3:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -1082,6 +1084,9 @@ s3:
|
|||||||
failureThreshold: 100
|
failureThreshold: 100
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 10
|
||||||
|
|
||||||
|
createBucketsHook:
|
||||||
|
resources: {}
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
className: ""
|
className: ""
|
||||||
@@ -1485,6 +1490,8 @@ allInOne:
|
|||||||
# versioning: Enabled
|
# versioning: Enabled
|
||||||
# - name: bucket-b
|
# - name: bucket-b
|
||||||
# anonymousRead: false
|
# anonymousRead: false
|
||||||
|
createBucketsHook:
|
||||||
|
resources: {}
|
||||||
|
|
||||||
# SFTP server configuration
|
# SFTP server configuration
|
||||||
# Note: Most parameters below default to null, which means they inherit from
|
# Note: Most parameters below default to null, which means they inherit from
|
||||||
|
|||||||
Reference in New Issue
Block a user