diff --git a/charts/kubezero-aws-ebs-csi-driver/Chart.yaml b/charts/kubezero-aws-ebs-csi-driver/Chart.yaml index aead9dc9..c8a36542 100644 --- a/charts/kubezero-aws-ebs-csi-driver/Chart.yaml +++ b/charts/kubezero-aws-ebs-csi-driver/Chart.yaml @@ -2,7 +2,8 @@ apiVersion: v2 name: kubezero-aws-ebs-csi-driver description: KubeZero Umbrella Chart for aws-ebs-csi-driver type: application -version: 0.1.1 +version: 0.2.0 +appVersion: 0.5.0 home: https://kubezero.com icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png sources: diff --git a/charts/kubezero-aws-ebs-csi-driver/charts/aws-ebs-csi-driver/templates/deployment.yaml b/charts/kubezero-aws-ebs-csi-driver/charts/aws-ebs-csi-driver/templates/deployment.yaml index 3316e96c..8cd04c1e 100644 --- a/charts/kubezero-aws-ebs-csi-driver/charts/aws-ebs-csi-driver/templates/deployment.yaml +++ b/charts/kubezero-aws-ebs-csi-driver/charts/aws-ebs-csi-driver/templates/deployment.yaml @@ -91,8 +91,10 @@ spec: {{- if .Values.enableVolumeScheduling }} - --feature-gates=Topology=true {{- end}} + {{- if gt .Values.replicaCount 1 }} - --enable-leader-election - --leader-election-type=leases + {{- end}} env: - name: ADDRESS value: /var/lib/csi/sockets/pluginproxy/csi.sock @@ -104,8 +106,10 @@ spec: args: - --csi-address=$(ADDRESS) - --v=5 + {{- if gt .Values.replicaCount 1 }} - --leader-election=true - --leader-election-type=leases + {{- end}} env: - name: ADDRESS value: /var/lib/csi/sockets/pluginproxy/csi.sock @@ -117,7 +121,9 @@ spec: image: {{ printf "%s:%s" .Values.sidecars.snapshotterImage.repository .Values.sidecars.snapshotterImage.tag }} args: - --csi-address=$(ADDRESS) + {{- if gt .Values.replicaCount 1 }} - --leader-election=true + {{- end}} env: - name: ADDRESS value: /var/lib/csi/sockets/pluginproxy/csi.sock diff --git a/charts/kubezero-aws-ebs-csi-driver/values.yaml b/charts/kubezero-aws-ebs-csi-driver/values.yaml index 9f8bb5bf..bcf10526 100644 --- a/charts/kubezero-aws-ebs-csi-driver/values.yaml +++ b/charts/kubezero-aws-ebs-csi-driver/values.yaml @@ -2,8 +2,8 @@ aws-ebs-csi-driver: replicaCount: 1 enableVolumeScheduling: true - enableVolumeResizing: false - enableVolumeSnapshot: false + enableVolumeResizing: true + enableVolumeSnapshot: true nodeSelector: node-role.kubernetes.io/master: ""