Skip to content

Commit 0c819cc

Browse files
authored
Merge pull request #241 from andyzhangx/remove-attacher
chore: remove csi-attacher since it's useless
2 parents f5b4280 + 0cfb4a4 commit 0c819cc

File tree

7 files changed

+2
-86
lines changed

7 files changed

+2
-86
lines changed

charts/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ The following table lists the configurable parameters of the latest Azure Blob S
5151
| `image.csiProvisioner.repository` | csi-provisioner docker image | mcr.microsoft.com/oss/kubernetes-csi/csi-provisioner |
5252
| `image.csiProvisioner.tag` | csi-provisioner docker image tag | v1.4.0 |
5353
| `image.csiProvisioner.pullPolicy` | csi-provisioner image pull policy | IfNotPresent |
54-
| `image.csiAttacher.repository` | csi-attacher docker image | mcr.microsoft.com/oss/kubernetes-csi/csi-attacher |
55-
| `image.csiAttacher.tag` | csi-attacher docker image tag | v2.2.0 |
56-
| `image.csiAttacher.pullPolicy` | csi-attacher image pull policy | IfNotPresent | |
5754
| `image.livenessProbe.repository` | liveness-probe docker image | mcr.microsoft.com/oss/kubernetes-csi/livenessprobe |
5855
| `image.livenessProbe.tag` | liveness-probe docker image tag | v1.1.0 |
5956
| `image.livenessProbe.pullPolicy` | liveness-probe image pull policy | IfNotPresent |

charts/latest/blob-csi-driver/templates/csi-blob-controller.yaml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,6 @@ spec:
4848
requests:
4949
cpu: 10m
5050
memory: 20Mi
51-
- name: csi-attacher
52-
image: "{{ .Values.image.csiAttacher.repository }}:{{ .Values.image.csiAttacher.tag }}"
53-
args:
54-
- "-v=5"
55-
- "-csi-address=$(ADDRESS)"
56-
- "-timeout=120s"
57-
- "-leader-election"
58-
env:
59-
- name: ADDRESS
60-
value: /csi/csi.sock
61-
imagePullPolicy: {{ .Values.image.csiAttacher.pullPolicy }}
62-
volumeMounts:
63-
- mountPath: /csi
64-
name: socket-dir
65-
resources:
66-
limits:
67-
cpu: 100m
68-
memory: 100Mi
69-
requests:
70-
cpu: 10m
71-
memory: 20Mi
7251
- name: liveness-probe
7352
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
7453
args:

charts/latest/blob-csi-driver/templates/rbac-csi-blob-controller.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,6 @@ rules:
7070

7171
---
7272

73-
kind: ClusterRoleBinding
74-
apiVersion: rbac.authorization.k8s.io/v1
75-
metadata:
76-
name: blob-csi-attacher-binding
77-
namespace: {{ .Release.Namespace }}
78-
{{ include "blob.labels" . | indent 2 }}
79-
subjects:
80-
- kind: ServiceAccount
81-
name: csi-blob-controller-sa
82-
namespace: {{ .Release.Namespace }}
83-
roleRef:
84-
kind: ClusterRole
85-
name: blob-external-attacher-role
86-
apiGroup: rbac.authorization.k8s.io
87-
88-
---
89-
9073
kind: ClusterRole
9174
apiVersion: rbac.authorization.k8s.io/v1
9275
metadata:

charts/latest/blob-csi-driver/values.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ image:
77
repository: mcr.microsoft.com/oss/kubernetes-csi/csi-provisioner
88
tag: v1.4.0
99
pullPolicy: IfNotPresent
10-
csiAttacher:
11-
repository: mcr.microsoft.com/oss/kubernetes-csi/csi-attacher
12-
tag: v2.2.0
13-
pullPolicy: IfNotPresent
1410
livenessProbe:
1511
repository: mcr.microsoft.com/oss/kubernetes-csi/livenessprobe
1612
tag: v1.1.0

deploy/csi-blob-controller.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,6 @@ spec:
4646
requests:
4747
cpu: 10m
4848
memory: 20Mi
49-
- name: csi-attacher
50-
image: mcr.microsoft.com/oss/kubernetes-csi/csi-attacher:v2.2.0
51-
args:
52-
- "-v=5"
53-
- "-csi-address=$(ADDRESS)"
54-
- "-timeout=120s"
55-
- "-leader-election"
56-
env:
57-
- name: ADDRESS
58-
value: /csi/csi.sock
59-
volumeMounts:
60-
- mountPath: /csi
61-
name: socket-dir
62-
resources:
63-
limits:
64-
cpu: 100m
65-
memory: 100Mi
66-
requests:
67-
cpu: 10m
68-
memory: 20Mi
6949
- name: liveness-probe
7050
image: mcr.microsoft.com/oss/kubernetes-csi/livenessprobe:v1.1.0
7151
args:

deploy/rbac-csi-blob-controller.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,6 @@ rules:
7272

7373
---
7474

75-
kind: ClusterRoleBinding
76-
apiVersion: rbac.authorization.k8s.io/v1
77-
metadata:
78-
name: blob-csi-attacher-binding
79-
subjects:
80-
- kind: ServiceAccount
81-
name: csi-blob-controller-sa
82-
namespace: kube-system
83-
roleRef:
84-
kind: ClusterRole
85-
name: blob-external-attacher-role
86-
apiGroup: rbac.authorization.k8s.io
87-
88-
---
89-
9075
kind: ClusterRole
9176
apiVersion: rbac.authorization.k8s.io/v1
9277
metadata:

hack/verify-helm-chart.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,12 @@ pip install yq
4242

4343
# Extract images from csi-blob-controller.yaml
4444
expected_csi_provisioner_image="$(cat ${PKG_ROOT}/deploy/csi-blob-controller.yaml | yq -r .spec.template.spec.containers[0].image | head -n 1)"
45-
expected_csi_attacher_image="$(cat ${PKG_ROOT}/deploy/csi-blob-controller.yaml | yq -r .spec.template.spec.containers[1].image | head -n 1)"
46-
expected_liveness_probe_image="$(cat ${PKG_ROOT}/deploy/csi-blob-controller.yaml | yq -r .spec.template.spec.containers[2].image | head -n 1)"
47-
expected_blob_image="$(cat ${PKG_ROOT}/deploy/csi-blob-controller.yaml | yq -r .spec.template.spec.containers[3].image | head -n 1)"
45+
expected_liveness_probe_image="$(cat ${PKG_ROOT}/deploy/csi-blob-controller.yaml | yq -r .spec.template.spec.containers[1].image | head -n 1)"
46+
expected_blob_image="$(cat ${PKG_ROOT}/deploy/csi-blob-controller.yaml | yq -r .spec.template.spec.containers[2].image | head -n 1)"
4847

4948
csi_provisioner_image="$(get_image_from_helm_chart "csiProvisioner")"
5049
validate_image "${expected_csi_provisioner_image}" "${csi_provisioner_image}"
5150

52-
csi_attacher_image="$(get_image_from_helm_chart "csiAttacher")"
53-
validate_image "${expected_csi_attacher_image}" "${csi_attacher_image}"
54-
5551
liveness_probe_image="$(get_image_from_helm_chart "livenessProbe")"
5652
validate_image "${expected_liveness_probe_image}" "${liveness_probe_image}"
5753

0 commit comments

Comments
 (0)