Skip to content

Commit 3ad670b

Browse files
authored
minorfix: set default fluid file prefetcher sidecar image (#5161)
* minorfix: set default fluid file prefetcher sidecar image Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> * Promote FilePrefetcher plugin to 1st place to make it work Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> --------- Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
1 parent 5918f55 commit 3ad670b

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

charts/fluid/fluid/templates/webhook/webhook.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ spec:
5555
value: {{ .Values.webhook.serverlessInject.vfuseResourceName | quote }}
5656
{{- end }}
5757
{{- end }}
58+
{{- if .Values.webhook.filePrefetcher }}
59+
- name: FILE_PREFETCHR_IMAGE
60+
value: {{ include "fluid.controlplane.imageTransform" (list .Values.webhook.filePrefetcher.imagePrefix .Values.webhook.filePrefetcher.imageName .Values.webhook.filePrefetcher.imageTag . ) }}
61+
{{- end }}
5862
ports:
5963
- containerPort: 8080
6064
name: metrics

charts/fluid/fluid/values.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,26 +350,31 @@ webhook:
350350
# cpu: 1000m
351351
# memory: 512Mi
352352

353+
# TODO: move this into pluginsProfile
354+
filePrefetcher:
355+
imagePrefix: *defaultImagePrefix
356+
imageName: fluid-file-prefetcher
357+
imageTag: v0.1.0
353358
# if configmap `webhook-plugins` exists and not want to replace the content, set this to false.
354359
forceReplacePluginsProfile: false
355360
pluginsProfile:
356361
plugins:
357362
# serverful webhook plugins
358363
serverful:
359364
withDataset:
365+
- FilePrefetcher
360366
- RequireNodeWithFuse
361367
- NodeAffinityWithCache
362368
- MountPropagationInjector
363369
- DatasetUsageInjector
364-
- FilePrefetcher
365370
withoutDataset:
366371
- PreferNodesWithoutCache
367372
# serverless webhook plugins
368373
serverless:
369374
withDataset:
375+
- FilePrefetcher
370376
- FuseSidecar
371377
- DatasetUsageInjector
372-
- FilePrefetcher
373378
withoutDataset: []
374379
pluginConfig:
375380
- name: NodeAffinityWithCache

0 commit comments

Comments
 (0)