diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index b4957a6..92b1acc 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -25,3 +25,17 @@ jobs: - name: CI script run: | find ./charts | grep Chart.yaml | xargs dirname | xargs helm lint + - name: check chart + run: | + helm template charts/juicefs-csi-driver + rst=$? + if [ $rst -ne 0 ]; then + echo "something wrong in juicefs csi driver chart" + exit 1 + fi + helm template charts/juicefs-s3-gateway + rst=$? + if [ $rst -ne 0 ]; then + echo "something wrong in juicefs s3 gateway chart" + exit 1 + fi diff --git a/charts/juicefs-csi-driver/Chart.yaml b/charts/juicefs-csi-driver/Chart.yaml index 93aa19d..e634eba 100644 --- a/charts/juicefs-csi-driver/Chart.yaml +++ b/charts/juicefs-csi-driver/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: juicefs-csi-driver description: A Helm chart for JuiceFS CSI Driver type: application -version: 0.19.0-alpha1 -appVersion: 0.22.1 +version: 0.19.0 +appVersion: 0.23.0 kubeVersion: ">=1.14.0-0" home: https://github.com/juicedata/juicefs-csi-driver sources: diff --git a/charts/juicefs-csi-driver/README.md b/charts/juicefs-csi-driver/README.md index fcccb2d..6cef3b6 100644 --- a/charts/juicefs-csi-driver/README.md +++ b/charts/juicefs-csi-driver/README.md @@ -1,6 +1,6 @@ # juicefs-csi-driver -![Version: 0.18.1](https://img.shields.io/badge/Version-0.18.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.22.1](https://img.shields.io/badge/AppVersion-0.22.1-informational?style=flat-square) +![Version: 0.19.0](https://img.shields.io/badge/Version-0.19.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.23.0](https://img.shields.io/badge/AppVersion-0.23.0-informational?style=flat-square) A Helm chart for JuiceFS CSI Driver @@ -46,7 +46,7 @@ Kubernetes: `>=1.14.0-0` | hostAliases | list | `[]` | | | image.pullPolicy | string | `""` | | | image.repository | string | `"juicedata/juicefs-csi-driver"` | | -| image.tag | string | `"v0.22.1"` | | +| image.tag | string | `"v0.23.0"` | | | mountMode | string | `"mountpod"` | The way JuiceFS client runs | | jfsConfigDir | string | `"/var/lib/juicefs/config"` | JuiceFS config directory | | jfsMountDir | string | `"/var/lib/juicefs/volume"` | JuiceFS mount directory | @@ -81,6 +81,24 @@ Kubernetes: `>=1.14.0-0` | sidecars.nodeDriverRegistrarImage.tag | string | `"v2.1.0"` | | | sidecars.csiResizerImage.repository | string | `"quay.io/k8scsi/csi-resizer"` | | | sidecars.csiResizerImage.tag | string | `"v1.0.1"` | | +| dashboard.enabled | bool | `true` | | +| dashboard.replicas | int | `2` | | +| dashboard.leaderElection.enabled | bool | `true` | Enable leader election of CSI Dashboard | +| dashboard.leaderElection.leaderElectionNamespace | string | `""` | The namespace where the leader election resource lives. Defaults to the pod namespace if not set. | +| dashboard.leaderElection.leaseDuration | string | `15s` | The duration that non-leader candidates will wait to force acquire leadership. | +| dashboard.hostNetwork | bool | `false` | | +| dashboard.resources.limits.cpu | string | `"1000m"` | | +| dashboard.resources.limits.memory | string | `"1Gi"` | | +| dashboard.resources.requests.cpu | string | `"100m"` | | +| dashboard.resources.requests.memory | string | `"200Mi"` | | +| dashboard.affinity | object | `{}` | | +| dashboard.nodeSelector | object | `{}` | | +| dashboard.tolerations | list | `[{"key":"CriticalAddonsOnly","operator":"Exists"}]` | Tolerations for CSI Dashboard pod | +| dashboard.service.port | string | `"8088"` | | +| dashboard.service.type | string | `ClusterIP` | | +| dashboard.ingress.enabled | bool | `false` | | +| dashboard.priorityClassName | string | `"system-node-critical"` | | +| dashboard.envs | list | `[]` | | | storageClasses[0].backend.accessKey | string | `""` | Access key for object storage | | storageClasses[0].backend.bucket | string | `""` | Bucket URL, for community edition use only. Refer to [this document](https://juicefs.com/docs/community/how_to_setup_object_storage) to learn how to setup different object storage. | | storageClasses[0].backend.configs | string | `""` | Configuration for mount pod. Refer to [this document](https://juicefs.com/docs/csi/examples/config-and-env) for more information. | diff --git a/charts/juicefs-csi-driver/templates/deployment.yaml b/charts/juicefs-csi-driver/templates/deployment.yaml index 746986b..19f4547 100644 --- a/charts/juicefs-csi-driver/templates/deployment.yaml +++ b/charts/juicefs-csi-driver/templates/deployment.yaml @@ -31,7 +31,7 @@ spec: imagePullPolicy: {{ .Values.dashboardImage.pullPolicy }} {{- end }} args: - - --static-dir=/dist + - --static-dir=/dist {{- if .Values.dashboard.leaderElection.enabled }} - --leader-election {{- if .Values.dashboard.leaderElection.leaderElectionNamespace }} diff --git a/charts/juicefs-csi-driver/values.yaml b/charts/juicefs-csi-driver/values.yaml index dbc76f2..33a73cf 100644 --- a/charts/juicefs-csi-driver/values.yaml +++ b/charts/juicefs-csi-driver/values.yaml @@ -9,12 +9,12 @@ image: repository: juicedata/juicefs-csi-driver - tag: "v0.22.1" + tag: "v0.23.0" pullPolicy: "" dashboardImage: repository: juicedata/csi-dashboard - tag: "v0.23.0-alpha1" + tag: "v0.23.0" pullPolicy: "" sidecars: @@ -177,7 +177,7 @@ node: dashboard: # CSI Dashboard helps with CSI Driver observation, disabled by default - enabled: false + enabled: true replicas: 2 leaderElection: # Enable leader election for dashboard.