Skip to content

Commit 8366ba6

Browse files
authored
Merge pull request #171 from wnxn/master
Prepare for releasing v1.2.0
2 parents 351b828 + 0240b39 commit 8366ba6

14 files changed

+567
-721
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ before_install:
88
- docker pull k8s.gcr.io/debian-base:v1.0.0
99

1010
script:
11-
- make disk-container
11+
- go build -o _output/main cmd/disk/main.go

CHANGELOG.md

+30-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,37 @@
1-
<!-- BEGIN MUNGE: GENERATED_TOC -->
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
4+
- [v1.2.0](#v120)
5+
- [Changelog since v1.1.0](#changelog-since-v110)
6+
- [Features](#features)
7+
- [Bug Fixed](#bug-fixed)
8+
- [v1.1.1](#v111)
9+
- [Changelog since v1.1.0](#changelog-since-v110-1)
10+
- [Features](#features-1)
211
- [v1.1.0](#v110)
3-
- [Changelog since v1.1.0](#changelog-since-v110)
4-
- [Features](#features)
5-
- [Bug Fixed](#bug-fixed)
6-
<!-- END MUNGE: GENERATED_TOC -->
12+
- [Changelog since v0.2.1](#changelog-since-v021)
13+
- [Features](#features-2)
14+
- [Bug Fixed](#bug-fixed-1)
15+
16+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
717

818
<!-- NEW RELEASE NOTES ENTRY -->
919

20+
# v1.2.0
21+
## Changelog since v1.1.0
22+
### Features
23+
* Update CSI v1.2.0 and QingCloud SDK ([#164](https://github.com/yunify/qingcloud-csi/pull/164), [@wnxn](https://github.com/wnxn))
24+
* Add retry limiter when detach volume ([#160](https://github.com/yunify/qingcloud-csi/pull/160), [@wnxn](https://github.com/wnxn))
25+
* Support deploy on Kubernetes v1.16 ([#168](https://github.com/yunify/qingcloud-csi/pull/168), [@wnxn](https://github.com/wnxn))
26+
27+
### Bug Fixed
28+
* Update snapshot content source ([#164](https://github.com/yunify/qingcloud-csi/pull/164), [@wnxn](https://github.com/wnxn))
29+
30+
# v1.1.1
31+
## Changelog since v1.1.0
32+
### Features
33+
* Support more volume types ([#170](https://github.com/yunify/qingcloud-csi/pull/170), [@wnxn](https://github.com/wnxn))
34+
1035
# v1.1.0
1136
## Changelog since v0.2.1
1237
### Features

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
.PHONY: all disk
1818

19-
DISK_IMAGE_NAME=csidriver/csi-qingcloud
20-
DISK_VERSION=canary
19+
DISK_IMAGE_NAME=csiplugin/csi-qingcloud
20+
DISK_VERSION=v1.2.0-rc.1
2121
ROOT_PATH=$(pwd)
2222
PACKAGE_LIST=./cmd/... ./pkg/...
2323

README.md

+17-6
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,38 @@ After plugin installation completes, user can create volumes based on several ty
4242
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
4343
|v0.2.x ||-|-|-|-|-|
4444
|v1.1.0 |||||||
45-
|v1.2.0*** |||||||
45+
|v1.2.0 |||||***||
4646

4747
Notes:
4848
- `*`: Volume Management including creating/deleting volume and mounting/unmount volume on Pod.
4949
- `**`: Snapshot management including creating/deleting snapshot and restoring volume from snapshot.
50-
- `***`: On Kubernetes v1.16, QingCloud CSI v1.2.0 only supports volume management.
50+
- `***`: Only supports Snapshot Management on Kubernetes v1.17+ because snapshot features goes into Beta on this version.
5151

5252
### Installation
53-
This guide will install CSI plugin in the *kube-system* namespace of Kubernetes v1.14+. You can also deploy the plugin in other namespace.
53+
This guide will install CSI plugin in the *kube-system* namespace of Kubernetes v1.16+. You can also deploy the plugin in other namespace.
5454

5555
- Set Kubernetes Parameters
5656
- For Kubernetes v1.16
5757
- Enable `--allow-privileged=true` on kube-apiserver, kube-controller-manager, kube-scheduler, kubelet.
5858
- Enable (Default enabled) [Mount Propagation](https://kubernetes.io/docs/concepts/storage/volumes/#mount-propagation) feature gate。
59-
- Enable (Default enabled) `--feature-gates=CSINodeInfo=true,CSIDriverRegistry=true,KubeletPluginsWatcher=true` option on kube-apiserver, kube-controller-manager, kube-scheduler, kubelet
59+
- Enable (Default enabled) `--feature-gates=CSINodeInfo=true,CSIDriverRegistry=true,ExpandCSIVolumes=true` option on kube-apiserver, kube-controller-manager, kube-scheduler, kubelet
6060
- Enable `--read-only-port=10255` on kubelet
61-
- For Kubernetes v1.17
61+
- For Kubernetes v1.17+
6262
- Enable `--allow-privileged=true` on kube-apiserver, kube-controller-manager, kube-scheduler, kubelet.
6363
- Enable (Default enabled) [Mount Propagation](https://kubernetes.io/docs/concepts/storage/volumes/#mount-propagation) feature gate。
64-
- Enable (Default enabled) `--feature-gates=CSINodeInfo=true,CSIDriverRegistry=true,KubeletPluginsWatcher=true,ExpandCSIVolumes=true,VolumePVCDataSource=true` option on kube-apiserver, kube-controller-manager, kube-scheduler, kubelet
64+
- Enable (Default enabled) `--feature-gates=CSINodeInfo=true,CSIDriverRegistry=true,ExpandCSIVolumes=true,VolumePVCDataSource=true` option on kube-apiserver, kube-controller-manager, kube-scheduler, kubelet
6565
- Enable `--read-only-port=10255` on kubelet
66+
- Install Snapshot CRD
67+
```
68+
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v2.1.1/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
69+
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v2.1.1/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
70+
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v2.1.1/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
71+
```
72+
- Install Snapshot Controller
73+
```
74+
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v2.1.1/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml
75+
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v2.1.1/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml
76+
```
6677
- Download installation file
6778
- For Kubernetes v1.16
6879
```

deploy/disk/example/snapshot/snapshot-class.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ metadata:
1818
name: csi-qingcloud
1919
driver: disk.csi.qingcloud.com
2020
parameters:
21-
tags: "tag-y7uu1q2a"
21+
tags: "tag-y7uu1q2a"
22+
deletionPolicy: Delete

deploy/disk/kubernetes/releases/qingcloud-csi-disk-v1.16.yaml

+107-10
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,28 @@ metadata:
3232
namespace: kube-system
3333
rules:
3434
- apiGroups:
35-
- ""
35+
- coordination.k8s.io
3636
resources:
37-
- configmaps
37+
- leases
3838
verbs:
3939
- get
4040
- watch
4141
- list
4242
- delete
4343
- update
4444
- create
45+
---
46+
apiVersion: rbac.authorization.k8s.io/v1
47+
kind: Role
48+
metadata:
49+
labels:
50+
app: csi-qingcloud
51+
owner: yunify
52+
role: controller
53+
ver: v1.2.0
54+
name: csi-qingcloud-provisioner
55+
namespace: kube-system
56+
rules:
4557
- apiGroups:
4658
- coordination.k8s.io
4759
resources:
@@ -62,7 +74,7 @@ metadata:
6274
owner: yunify
6375
role: controller
6476
ver: v1.2.0
65-
name: csi-qingcloud-provisioner
77+
name: csi-qingcloud-resizer
6678
namespace: kube-system
6779
rules:
6880
- apiGroups:
@@ -238,6 +250,52 @@ rules:
238250
- watch
239251
---
240252
apiVersion: rbac.authorization.k8s.io/v1
253+
kind: ClusterRole
254+
metadata:
255+
labels:
256+
app: csi-qingcloud
257+
owner: yunify
258+
role: controller
259+
ver: v1.2.0
260+
name: csi-qingcloud-resizer
261+
rules:
262+
- apiGroups:
263+
- ""
264+
resources:
265+
- persistentvolumes
266+
verbs:
267+
- get
268+
- list
269+
- watch
270+
- update
271+
- patch
272+
- apiGroups:
273+
- ""
274+
resources:
275+
- persistentvolumeclaims
276+
verbs:
277+
- get
278+
- list
279+
- watch
280+
- apiGroups:
281+
- ""
282+
resources:
283+
- persistentvolumeclaims/status
284+
verbs:
285+
- update
286+
- patch
287+
- apiGroups:
288+
- ""
289+
resources:
290+
- events
291+
verbs:
292+
- list
293+
- watch
294+
- create
295+
- update
296+
- patch
297+
---
298+
apiVersion: rbac.authorization.k8s.io/v1
241299
kind: RoleBinding
242300
metadata:
243301
labels:
@@ -276,6 +334,25 @@ subjects:
276334
namespace: kube-system
277335
---
278336
apiVersion: rbac.authorization.k8s.io/v1
337+
kind: RoleBinding
338+
metadata:
339+
labels:
340+
app: csi-qingcloud
341+
owner: yunify
342+
role: controller
343+
ver: v1.2.0
344+
name: csi-qingcloud-resizer
345+
namespace: kube-system
346+
roleRef:
347+
apiGroup: rbac.authorization.k8s.io
348+
kind: Role
349+
name: csi-qingcloud-resizer
350+
subjects:
351+
- kind: ServiceAccount
352+
name: csi-resizer
353+
namespace: kube-system
354+
---
355+
apiVersion: rbac.authorization.k8s.io/v1
279356
kind: ClusterRoleBinding
280357
metadata:
281358
labels:
@@ -385,7 +462,7 @@ spec:
385462
env:
386463
- name: ADDRESS
387464
value: /csi/csi.sock
388-
image: quay.io/k8scsi/csi-provisioner:v1.5.0
465+
image: quay.io/k8scsi/csi-provisioner:v1.6.0
389466
imagePullPolicy: IfNotPresent
390467
name: csi-provisioner
391468
resources:
@@ -413,7 +490,7 @@ spec:
413490
valueFrom:
414491
fieldRef:
415492
fieldPath: metadata.name
416-
image: quay.io/k8scsi/csi-attacher:v2.1.1
493+
image: quay.io/k8scsi/csi-attacher:v2.2.0
417494
imagePullPolicy: IfNotPresent
418495
name: csi-attacher
419496
resources:
@@ -426,6 +503,26 @@ spec:
426503
volumeMounts:
427504
- mountPath: /csi
428505
name: socket-dir
506+
- args:
507+
- --csi-address=$(ADDRESS)
508+
- --leader-election
509+
- --v=5
510+
env:
511+
- name: ADDRESS
512+
value: /csi/csi.sock
513+
image: quay.io/k8scsi/csi-resizer:v0.5.0
514+
imagePullPolicy: IfNotPresent
515+
name: csi-resizer
516+
resources:
517+
limits:
518+
cpu: 20m
519+
memory: 20Mi
520+
requests:
521+
cpu: 20m
522+
memory: 20Mi
523+
volumeMounts:
524+
- mountPath: /csi
525+
name: socket-dir
429526
- args:
430527
- --config=/etc/config/config.yaml
431528
- --drivername=disk.csi.qingcloud.com
@@ -440,8 +537,8 @@ spec:
440537
fieldPath: spec.nodeName
441538
- name: CSI_ENDPOINT
442539
value: unix://csi/csi.sock
443-
image: csidriver/csi-qingcloud:canary
444-
imagePullPolicy: IfNotPresent
540+
image: csiplugin/csi-qingcloud:v1.2.0-rc.1
541+
imagePullPolicy: Always
445542
name: csi-qingcloud
446543
resources:
447544
limits:
@@ -496,7 +593,7 @@ spec:
496593
env:
497594
- name: ADDRESS
498595
value: /csi/csi.sock
499-
image: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0
596+
image: quay.io/k8scsi/csi-node-driver-registrar:v1.3.0
500597
lifecycle:
501598
preStop:
502599
exec:
@@ -531,8 +628,8 @@ spec:
531628
fieldPath: spec.nodeName
532629
- name: CSI_ENDPOINT
533630
value: unix://csi/csi.sock
534-
image: csidriver/csi-qingcloud:canary
535-
imagePullPolicy: IfNotPresent
631+
image: csiplugin/csi-qingcloud:v1.2.0-rc.1
632+
imagePullPolicy: Always
536633
name: csi-qingcloud
537634
resources:
538635
limits:

0 commit comments

Comments
 (0)