Skip to content

Commit

Permalink
Merge pull request #950 from kubernetes-sigs/fix-leader-election-name…
Browse files Browse the repository at this point in the history
…space

fix: leader-election namespace issue
  • Loading branch information
andyzhangx committed Mar 24, 2022
2 parents 437eb35 + 877b1c8 commit c833d7d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 deletions.
Binary file modified charts/latest/azurefile-csi-driver-v1.13.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
- "-v=2"
- "--csi-address=$(ADDRESS)"
- "--leader-election"
- "--leader-election-namespace={{ .Release.Namespace }}"
- "--timeout=300s"
- "--extra-create-metadata=true"
env:
Expand All @@ -70,6 +71,7 @@ spec:
- "-csi-address=$(ADDRESS)"
- "-timeout=120s"
- "-leader-election"
- "--leader-election-namespace={{ .Release.Namespace }}"
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -87,6 +89,7 @@ spec:
args:
- "-csi-address=$(ADDRESS)"
- "-leader-election"
- "--leader-election-namespace={{ .Release.Namespace }}"
- "-v=2"
env:
- name: ADDRESS
Expand All @@ -105,6 +108,7 @@ spec:
- "-csi-address=$(ADDRESS)"
- "-v=2"
- "-leader-election"
- "--leader-election-namespace={{ .Release.Namespace }}"
- '-handle-volume-inuse-error=false'
- '-timeout=120s'
- '-feature-gates=RecoverVolumeExpansionFailure=true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec:
args:
- "--v=2"
- "--leader-election=true"
- "--leader-election-namespace={{ .Release.Namespace }}"
resources: {{- toYaml .Values.snapshot.snapshotController.resources | nindent 12 }}
imagePullPolicy: {{ .Values.snapshot.image.csiSnapshotController.pullPolicy }}
{{- end -}}
10 changes: 7 additions & 3 deletions deploy/csi-azurefile-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
- "-v=2"
- "--csi-address=$(ADDRESS)"
- "--leader-election"
- "--leader-election-namespace=kube-system"
- "--timeout=300s"
- "--extra-create-metadata=true"
env:
Expand All @@ -53,7 +54,8 @@ spec:
- "-v=2"
- "-csi-address=$(ADDRESS)"
- "-timeout=120s"
- "-leader-election"
- "--leader-election"
- "--leader-election-namespace=kube-system"
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -71,7 +73,8 @@ spec:
args:
- "-v=2"
- "-csi-address=$(ADDRESS)"
- "-leader-election"
- "--leader-election"
- "--leader-election-namespace=kube-system"
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -89,7 +92,8 @@ spec:
args:
- "-csi-address=$(ADDRESS)"
- "-v=2"
- "-leader-election"
- "--leader-election"
- "--leader-election-namespace=kube-system"
- '-handle-volume-inuse-error=false'
- '-feature-gates=RecoverVolumeExpansionFailure=true'
- '-timeout=120s'
Expand Down
1 change: 1 addition & 0 deletions deploy/csi-snapshot-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
args:
- "--v=2"
- "--leader-election=true"
- "--leader-election-namespace=kube-system"
resources:
limits:
memory: 100Mi
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,5 @@ replace (
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.23.3
k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.23.3
k8s.io/sample-controller => k8s.io/sample-controller v0.23.3
sigs.k8s.io/azurefile-csi-driver => ./
sigs.k8s.io/cloud-provider-azure => sigs.k8s.io/cloud-provider-azure v0.7.1-0.20220318124122-66e1bec130df
)
1 change: 0 additions & 1 deletion hack/verify-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ ${PKG_ROOT}/hack/verify-yamllint.sh
${PKG_ROOT}/hack/verify-boilerplate.sh
${PKG_ROOT}/hack/verify-helm-chart-files.sh
${PKG_ROOT}/hack/verify-helm-chart.sh
${PKG_ROOT}/hack/verify-spelling.sh
1 change: 0 additions & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1218,5 +1218,4 @@ sigs.k8s.io/yaml
# k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.23.3
# k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.23.3
# k8s.io/sample-controller => k8s.io/sample-controller v0.23.3
# sigs.k8s.io/azurefile-csi-driver => ./
# sigs.k8s.io/cloud-provider-azure => sigs.k8s.io/cloud-provider-azure v0.7.1-0.20220318124122-66e1bec130df

0 comments on commit c833d7d

Please sign in to comment.