Skip to content

Commit

Permalink
Add helm-chart-fluid-1.0.2-alpha.2, To #58778076
Browse files Browse the repository at this point in the history
Signed-off-by: cheyang <[email protected]>
  • Loading branch information
cheyang committed Aug 7, 2024
1 parent cf90bda commit 9bcf17a
Show file tree
Hide file tree
Showing 28 changed files with 19,960 additions and 18,676 deletions.
4 changes: 2 additions & 2 deletions charts/fluid/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 1.0.2-alpha.1
version: 1.0.2-alpha.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 1.0.2-3cb8480
appVersion: 1.0.2-5c995bd
home: https://github.com/fluid-cloudnative/fluid
keywords:
- category:data
Expand Down
4,143 changes: 2,231 additions & 1,912 deletions charts/fluid/crds/data.fluid.io_alluxioruntimes.yaml

Large diffs are not rendered by default.

169 changes: 83 additions & 86 deletions charts/fluid/crds/data.fluid.io_databackups.yaml

Large diffs are not rendered by default.

1,070 changes: 566 additions & 504 deletions charts/fluid/crds/data.fluid.io_dataloads.yaml

Large diffs are not rendered by default.

1,076 changes: 569 additions & 507 deletions charts/fluid/crds/data.fluid.io_datamigrates.yaml

Large diffs are not rendered by default.

9,102 changes: 4,435 additions & 4,667 deletions charts/fluid/crds/data.fluid.io_dataprocesses.yaml

Large diffs are not rendered by default.

190 changes: 99 additions & 91 deletions charts/fluid/crds/data.fluid.io_datasets.yaml

Large diffs are not rendered by default.

2,101 changes: 1,068 additions & 1,033 deletions charts/fluid/crds/data.fluid.io_efcruntimes.yaml

Large diffs are not rendered by default.

2,413 changes: 1,242 additions & 1,171 deletions charts/fluid/crds/data.fluid.io_goosefsruntimes.yaml

Large diffs are not rendered by default.

3,804 changes: 1,981 additions & 1,823 deletions charts/fluid/crds/data.fluid.io_jindoruntimes.yaml

Large diffs are not rendered by default.

4,019 changes: 2,104 additions & 1,915 deletions charts/fluid/crds/data.fluid.io_juicefsruntimes.yaml

Large diffs are not rendered by default.

2,232 changes: 1,195 additions & 1,037 deletions charts/fluid/crds/data.fluid.io_thinruntimeprofiles.yaml

Large diffs are not rendered by default.

4,140 changes: 2,148 additions & 1,992 deletions charts/fluid/crds/data.fluid.io_thinruntimes.yaml

Large diffs are not rendered by default.

3,906 changes: 2,056 additions & 1,850 deletions charts/fluid/crds/data.fluid.io_vineyardruntimes.yaml

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions charts/fluid/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,34 @@ Create the name of the service account to use
{{- end -}}
{{- end -}}

{{/* assemble images for fluid control-plane images */}}
{{- define "fluid.controlplane.imageTransform" -}}
{{- $imagePrefix := index . 0 -}}
{{- $imageName := index . 1 -}}
{{- $imageTag := index . 2 -}}

{{- /* If any value is empty, return an error message */ -}}
{{- if or (empty $imagePrefix) (empty $imageName) (empty $imageTag) -}}
{{- fail "Error: imagePrefix, imageName, and imageTag must all be defined and non-empty." -}}
{{- end -}}

{{- printf "%s/%s:%s" $imagePrefix $imageName $imageTag -}}
{{- end -}}

{{/* assemble images for runtime images */}}
{{- define "fluid.runtime.imageTransform" -}}
{{- $imagePrefix := index . 0 -}}
{{- $imageName := index . 1 -}}
{{- $imageTag := index . 2 -}}

{{- /* If any value is empty, return an error message */ -}}
{{- if or (empty $imagePrefix) (empty $imageName) (empty $imageTag) -}}
{{- fail "Error: imagePrefix, imageName, and imageTag must all be defined and non-empty." -}}
{{- end -}}

{{- printf "%s/%s:%s" $imagePrefix $imageName $imageTag -}}
{{- end -}}


{{/*
Check if feature gate DataflowAffinity is enabled in the featureGates.
Expand Down
14 changes: 7 additions & 7 deletions charts/fluid/templates/controller/alluxioruntime_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
{{- end }}
#hostNetwork: true
containers:
- image: "{{ .Values.runtime.alluxio.controller.image }}"
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.alluxio.controller.imagePrefix .Values.runtime.alluxio.controller.imageName .Values.runtime.alluxio.controller.imageTag) }}
name: manager
command: ["alluxioruntime-controller", "start"]
args:
Expand All @@ -60,17 +60,17 @@ spec:
- name: FLUID_WORKDIR
value: {{ .Values.workdir | quote }}
{{- end }}
{{- if .Values.runtime.alluxio.init.image }}
{{- if .Values.runtime.alluxio.init.imageName }}
- name: DEFAULT_INIT_IMAGE_ENV
value: {{ .Values.runtime.alluxio.init.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.alluxio.init.imagePrefix .Values.runtime.alluxio.init.imageName .Values.runtime.alluxio.init.imageTag) }}
{{- end }}
{{- if .Values.runtime.alluxio.runtime.image }}
{{- if .Values.runtime.alluxio.runtime.imageName }}
- name: ALLUXIO_RUNTIME_IMAGE_ENV
value: {{ .Values.runtime.alluxio.runtime.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.alluxio.runtime.imagePrefix .Values.runtime.alluxio.runtime.imageName .Values.runtime.alluxio.runtime.imageTag) }}
{{- end }}
{{- if .Values.runtime.alluxio.fuse.image }}
{{- if .Values.runtime.alluxio.fuse.imageName }}
- name: ALLUXIO_FUSE_IMAGE_ENV
value: {{ .Values.runtime.alluxio.fuse.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.alluxio.fuse.imagePrefix .Values.runtime.alluxio.fuse.imageName .Values.runtime.alluxio.fuse.imageTag) }}
{{- end }}
{{- if .Values.runtime.mountRoot }}
- name: MOUNT_ROOT
Expand Down
6 changes: 3 additions & 3 deletions charts/fluid/templates/controller/dataset_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
{{- end }}
#hostNetwork: true
containers:
- image: "{{ .Values.dataset.controller.image }}"
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.dataset.controller.imagePrefix .Values.dataset.controller.imageName .Values.dataset.controller.imageTag) }}
name: manager
command: ["dataset-controller", "start"]
args:
Expand All @@ -59,9 +59,9 @@ spec:
- name: JINDO_ENGINE_TYPE
value: {{ .Values.runtime.jindo.engine | quote }}
{{- end }}
{{- if .Values.runtime.alluxio.runtime.image }}
{{- if .Values.runtime.alluxio.runtime.imageName }}
- name: ALLUXIO_RUNTIME_IMAGE_ENV
value: {{ .Values.runtime.alluxio.runtime.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.alluxio.runtime.imagePrefix .Values.runtime.alluxio.runtime.imageName .Values.runtime.alluxio.runtime.imageTag) }}
{{- end }}
{{- if .Values.image.imagePullSecrets }}
- name: IMAGE_PULL_SECRETS
Expand Down
20 changes: 10 additions & 10 deletions charts/fluid/templates/controller/efcruntime_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
{{- end }}
#hostNetwork: true
containers:
- image: "{{ .Values.runtime.efc.controller.image }}"
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.efc.controller.imagePrefix .Values.runtime.efc.controller.imageName .Values.runtime.efc.controller.imageTag) }}
imagePullPolicy: {{ .Values.runtime.efc.controller.imagePullPolicy }}
name: manager
args:
Expand All @@ -66,23 +66,23 @@ spec:
- name: FLUID_SYNC_RETRY_DURATION
value: {{ .Values.runtime.syncRetryDuration | quote }}
{{- end }}
{{- if .Values.runtime.efc.init.image }}
{{- if .Values.runtime.efc.init.imageName }}
- name: EFC_INIT_FUSE_IMAGE_ENV
value: {{ .Values.runtime.efc.init.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.efc.init.imagePrefix .Values.runtime.efc.init.imageName .Values.runtime.efc.init.imageTag) }}
{{- end }}
{{- if .Values.runtime.efc.master.image }}
{{- if .Values.runtime.efc.master.imageName }}
- name: EFC_MASTER_IMAGE_ENV
value: {{ .Values.runtime.efc.master.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.efc.master.imagePrefix .Values.runtime.efc.master.imageName .Values.runtime.efc.master.imageTag) }}
{{- end }}
{{- if .Values.runtime.efc.worker.image }}
{{- if .Values.runtime.efc.worker.imageName }}
- name: EFC_WORKER_IMAGE_ENV
value: {{ .Values.runtime.efc.worker.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.efc.worker.imagePrefix .Values.runtime.efc.worker.imageName .Values.runtime.efc.worker.imageTag) }}
{{- end }}
{{- if .Values.runtime.efc.fuse.image }}
{{- if .Values.runtime.efc.fuse.imageName }}
- name: EFC_FUSE_IMAGE_ENV
value: {{ .Values.runtime.efc.fuse.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.efc.fuse.imagePrefix .Values.runtime.efc.fuse.imageName .Values.runtime.efc.fuse.imageTag) }}
- name: EFC_SESSMGR_IMAGE_ENV
value: {{ .Values.runtime.efc.fuse.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.efc.fuse.imagePrefix .Values.runtime.efc.fuse.imageName .Values.runtime.efc.fuse.imageTag) }}
{{- end }}
- name: HELM_DRIVER
value: {{ template "fluid.helmDriver" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/fluid/templates/controller/fluidapp_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
{{- end }}
#hostNetwork: true
containers:
- image: "{{ .Values.fluidapp.controller.image }}"
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.fluidapp.controller.imagePrefix .Values.fluidapp.controller.imageName .Values.fluidapp.controller.imageTag) }}
name: manager
command: ["fluidapp-controller", "start"]
args:
Expand Down
14 changes: 7 additions & 7 deletions charts/fluid/templates/controller/goosefsruntime_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
{{- end }}
#hostNetwork: true
containers:
- image: "{{ .Values.runtime.goosefs.controller.image }}"
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.goosefs.controller.imagePrefix .Values.runtime.goosefs.controller.imageName .Values.runtime.goosefs.controller.imageTag) }}
imagePullPolicy: Always
name: manager
command: ["goosefsruntime-controller", "start"]
Expand All @@ -61,17 +61,17 @@ spec:
- name: FLUID_WORKDIR
value: {{ .Values.workdir | quote }}
{{- end }}
{{- if .Values.runtime.goosefs.init.image }}
{{- if .Values.runtime.goosefs.init.imageName }}
- name: DEFAULT_INIT_IMAGE_ENV
value: {{ .Values.runtime.goosefs.init.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.goosefs.init.imagePrefix .Values.runtime.goosefs.init.imageName .Values.runtime.goosefs.init.imageTag) }}
{{- end }}
{{- if .Values.runtime.goosefs.runtime.image }}
{{- if .Values.runtime.goosefs.runtime.imageName }}
- name: GOOSEFS_RUNTIME_IMAGE_ENV
value: {{ .Values.runtime.goosefs.runtime.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.goosefs.runtime.imagePrefix .Values.runtime.goosefs.runtime.imageName .Values.runtime.goosefs.runtime.imageTag) }}
{{- end }}
{{- if .Values.runtime.goosefs.fuse.image }}
{{- if .Values.runtime.goosefs.fuse.imageName }}
- name: GOOSEFS_FUSE_IMAGE_ENV
value: {{ .Values.runtime.goosefs.fuse.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.goosefs.fuse.imagePrefix .Values.runtime.goosefs.fuse.imageName .Values.runtime.goosefs.fuse.imageTag) }}
{{- end }}
{{- if .Values.runtime.mountRoot }}
- name: MOUNT_ROOT
Expand Down
14 changes: 7 additions & 7 deletions charts/fluid/templates/controller/jindoruntime_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
{{ toYaml .Values.runtime.jindo.tolerations | indent 6 }}
{{- end }}
containers:
- image: {{ .Values.runtime.jindo.controller.image | quote }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.jindo.controller.imagePrefix .Values.runtime.jindo.controller.imageName .Values.runtime.jindo.controller.imageTag) }}
name: manager
command: ["jindoruntime-controller", "start"]
args:
Expand All @@ -63,17 +63,17 @@ spec:
- name: MOUNT_ROOT
value: {{ .Values.runtime.mountRoot | quote }}
{{- end }}
{{- if .Values.runtime.jindo.smartdata.image }}
{{- if .Values.runtime.jindo.smartdata.imageName }}
- name: JINDO_SMARTDATA_IMAGE_ENV
value: {{ .Values.runtime.jindo.smartdata.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.jindo.smartdata.imagePrefix .Values.runtime.jindo.smartdata.imageName .Values.runtime.jindo.smartdata.imageTag) }}
{{- end }}
{{- if .Values.runtime.jindo.fuse.image }}
{{- if .Values.runtime.jindo.fuse.imageName }}
- name: JINDO_FUSE_IMAGE_ENV
value: {{ .Values.runtime.jindo.fuse.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.jindo.fuse.imagePrefix .Values.runtime.jindo.fuse.imageName .Values.runtime.jindo.fuse.imageTag) }}
{{- end }}
{{- if .Values.runtime.jindo.init.image }}
{{- if .Values.runtime.jindo.init.imageName }}
- name: DEFAULT_INIT_IMAGE_ENV
value: {{ .Values.runtime.jindo.init.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.jindo.init.imagePrefix .Values.runtime.jindo.init.imageName .Values.runtime.jindo.init.imageTag) }}
{{- end }}
{{- if .Values.runtime.jindo.init.portCheck }}
- name: INIT_PORT_CHECK_ENABLED
Expand Down
10 changes: 5 additions & 5 deletions charts/fluid/templates/controller/juicefsruntime_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
{{- end }}
#hostNetwork: true
containers:
- image: "{{ .Values.runtime.juicefs.controller.image }}"
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.juicefs.controller.imagePrefix .Values.runtime.juicefs.controller.imageName .Values.runtime.juicefs.controller.imageTag) }}
name: manager
args:
- --development=false
Expand All @@ -64,13 +64,13 @@ spec:
{{- end }}
value: {{ join "," $secretList | quote }}
{{- end }}
{{- if .Values.runtime.juicefs.fuse.ceimage }}
{{- if .Values.runtime.juicefs.fuse.ceimageName }}
- name: JUICEFS_CE_IMAGE_ENV
value: {{ .Values.runtime.juicefs.fuse.ceimage | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.juicefs.fuse.ceimagePrefix .Values.runtime.juicefs.fuse.ceimageName .Values.runtime.juicefs.fuse.ceimageTag) }}
{{- end }}
{{- if .Values.runtime.juicefs.fuse.eeimage }}
{{- if .Values.runtime.juicefs.fuse.eeimageName }}
- name: JUICEFS_EE_IMAGE_ENV
value: {{ .Values.runtime.juicefs.fuse.eeimage | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.juicefs.fuse.eeimagePrefix .Values.runtime.juicefs.fuse.eeimageName .Values.runtime.juicefs.fuse.eeimageTag) }}
{{- end }}
{{- if .Values.runtime.mountRoot }}
- name: MOUNT_ROOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
{{- end }}
#hostNetwork: true
containers:
- image: "{{ .Values.runtime.thin.controller.image }}"
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.thin.controller.imagePrefix .Values.runtime.thin.controller.imageName .Values.runtime.thin.controller.imageTag) }}
name: manager
args:
- --development=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
{{ toYaml .Values.runtime.vineyard.tolerations | indent 6 }}
{{- end }}
containers:
- image: {{ .Values.runtime.vineyard.controller.image | quote }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.runtime.vineyard.controller.imagePrefix .Values.runtime.vineyard.controller.imageName .Values.runtime.vineyard.controller.imageTag) }}
name: manager
command: ["vineyardruntime-controller", "start"]
args:
Expand All @@ -61,17 +61,17 @@ spec:
- name: MOUNT_ROOT
value: {{ .Values.runtime.mountRoot | quote }}
{{- end }}
{{- if .Values.runtime.vineyard.master.image }}
{{- if .Values.runtime.vineyard.master.imageName }}
- name: VINEYARD_MASTER_IMAGE_ENV
value: {{ .Values.runtime.vineyard.master.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.vineyard.master.imagePrefix .Values.runtime.vineyard.master.imageName .Values.runtime.vineyard.master.imageTag) }}
{{- end }}
{{- if .Values.runtime.vineyard.worker.image }}
{{- if .Values.runtime.vineyard.worker.imageName }}
- name: VINEYARD_WORKER_IMAGE_ENV
value: {{ .Values.runtime.vineyard.worker.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.vineyard.worker.imagePrefix .Values.runtime.vineyard.worker.imageName .Values.runtime.vineyard.worker.imageTag) }}
{{- end }}
{{- if .Values.runtime.vineyard.fuse.image }}
{{- if .Values.runtime.vineyard.fuse.imageName }}
- name: VINEYARD_FUSE_IMAGE_ENV
value: {{ .Values.runtime.vineyard.fuse.image | quote }}
value: {{ include "fluid.runtime.imageTransform" (list .Values.runtime.vineyard.fuse.imagePrefix .Values.runtime.vineyard.fuse.imageName .Values.runtime.vineyard.fuse.imageTag) }}
{{- end }}
{{- if .Values.runtime.syncRetryDuration }}
- name: FLUID_SYNC_RETRY_DURATION
Expand Down
4 changes: 2 additions & 2 deletions charts/fluid/templates/csi/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
- virtual-kubelet
containers:
- name: node-driver-registrar
image: "{{ .Values.csi.registrar.image }}"
image: {{ include "fluid.controlplane.imageTransform" (list .Values.csi.registrar.imagePrefix .Values.csi.registrar.imageName .Values.csi.registrar.imageTag) }}
args:
- --v=5
- --csi-address={{ .Values.csi.kubelet.rootDir }}/csi-plugins/fuse.csi.fluid.io/csi.sock
Expand All @@ -63,7 +63,7 @@ spec:
capabilities:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: "{{ .Values.csi.plugins.image }}"
image: {{ include "fluid.controlplane.imageTransform" (list .Values.csi.plugins.imagePrefix .Values.csi.plugins.imageName .Values.csi.plugins.imageTag) }}
command: ["/usr/local/bin/entrypoint.sh"]
args:
- "--nodeid=$(NODE_ID)"
Expand Down
2 changes: 1 addition & 1 deletion charts/fluid/templates/upgrade/crd-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
serviceAccountName: fluid-crds-upgrade
containers:
- name: fluid-crds-upgrade
image: {{ .Values.crdUpgrade.image }}
image: {{ include "fluid.controlplane.imageTransform" (list .Values.crdUpgrade.imagePrefix .Values.crdUpgrade.imageName .Values.crdUpgrade.imageTag) }}
command: ["bash", "/fluid/upgrade-crds.sh"]
restartPolicy: OnFailure
---
Expand Down
2 changes: 1 addition & 1 deletion charts/fluid/templates/webhook/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
{{- end }}
serviceAccountName: fluid-webhook
containers:
- image: {{ .Values.webhook.image | quote }}
- image: {{ include "fluid.controlplane.imageTransform" (list .Values.webhook.imagePrefix .Values.webhook.imageName .Values.webhook.imageTag) }}
name: manager
command: ["fluid-webhook", "start"]
args:
Expand Down
Loading

0 comments on commit 9bcf17a

Please sign in to comment.