Skip to content

Commit

Permalink
Release v0.5.0 #minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ErwinsExpertise authored Mar 11, 2022
1 parent d2cbf29 commit 7908a6f
Show file tree
Hide file tree
Showing 3 changed files with 339 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Change Log
## [v0.5.0](https://github.com/vultr/vultr-csi) (2022-03-11)
### Dependencies
* Bump google.golang.org/grpc from 1.40.0 to 1.44.0 [58](https://github.com/vultr/vultr-csi/pull/58)
* Bump google.golang.org/grpc from 1.44.0 to 1.45.0 [61](https://github.com/vultr/vultr-csi/pull/61)
* GoVultr bump to v2.14.1 & fixed FakeInstance [60](https://github.com/vultr/vultr-csi/pull/60)

## [v0.4.0](https://github.com/vultr/vultr-csi) (2022-01-19)
### Enhancements
* Update CSIDriver Kind to use API v1 1.22 support [52](https://github.com/vultr/vultr-csi/pull/52)
Expand Down
10 changes: 5 additions & 5 deletions docs/releases/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
serviceAccountName: csi-vultr-controller-sa
containers:
- name: csi-provisioner
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.0.0
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0
args:
- "--volume-name-prefix=pvc"
- "--volume-name-uuid-length=16"
Expand All @@ -67,7 +67,7 @@ spec:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-attacher
image: k8s.gcr.io/sig-storage/csi-attacher:v3.3.0
image: k8s.gcr.io/sig-storage/csi-attacher:v3.4.0
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"
Expand All @@ -79,7 +79,7 @@ spec:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-vultr-plugin
image: vultr/vultr-csi:v0.3.0
image: vultr/vultr-csi:v0.5.0
args:
- "--endpoint=$(CSI_ENDPOINT)"
- "--token=$(VULTR_API_KEY)"
Expand Down Expand Up @@ -217,7 +217,7 @@ spec:
hostNetwork: true
containers:
- name: driver-registrar
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.3.0
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.0
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"
Expand All @@ -237,7 +237,7 @@ spec:
- name: registration-dir
mountPath: /registration/
- name: csi-vultr-plugin
image: vultr/vultr-csi:v0.4.0
image: vultr/vultr-csi:v0.5.0
args:
- "--endpoint=$(CSI_ENDPOINT)"
env:
Expand Down
328 changes: 328 additions & 0 deletions docs/releases/v0.5.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,328 @@
####################
### Storage Classes
####################
apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
name: block.csi.vultr.com
spec:
attachRequired: true
podInfoOnMount: true

---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: vultr-block-storage
namespace: kube-system
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: block.csi.vultr.com

---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: vultr-block-storage-retain
namespace: kube-system
provisioner: block.csi.vultr.com
reclaimPolicy: Retain

###################
### CSI Controller
###################
---
kind: StatefulSet
apiVersion: apps/v1
metadata:
name: csi-vultr-controller
namespace: kube-system
spec:
serviceName: "csi-vultr"
replicas: 1
selector:
matchLabels:
app: csi-vultr-controller
template:
metadata:
labels:
app: csi-vultr-controller
role: csi-vultr
spec:
serviceAccountName: csi-vultr-controller-sa
containers:
- name: csi-provisioner
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0
args:
- "--volume-name-prefix=pvc"
- "--volume-name-uuid-length=16"
- "--csi-address=$(ADDRESS)"
- "--v=5"
- "--default-fstype=ext4"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: "Always"
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-attacher
image: k8s.gcr.io/sig-storage/csi-attacher:v3.4.0
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: "Always"
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-vultr-plugin
image: vultr/vultr-csi:v0.5.0
args:
- "--endpoint=$(CSI_ENDPOINT)"
- "--token=$(VULTR_API_KEY)"
env:
- name: CSI_ENDPOINT
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
- name: VULTR_API_KEY
valueFrom:
secretKeyRef:
name: vultr-csi
key: api-key
imagePullPolicy: "Always"
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
volumes:
- name: socket-dir
emptyDir: { }

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: csi-vultr-controller-sa
namespace: kube-system

## Attacher Role + Binding
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-vultr-attacher-role
namespace: kube-system
rules:
- apiGroups: [ "" ]
resources: [ "persistentvolumes" ]
verbs: [ "get", "list", "watch", "update", "patch" ]
- apiGroups: [ "" ]
resources: [ "nodes" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "storage.k8s.io" ]
resources: [ "csinodes" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "storage.k8s.io" ]
resources: [ "volumeattachments" ]
verbs: [ "get", "list", "watch", "update", "patch" ]
- apiGroups: [ "storage.k8s.io" ]
resources: [ "volumeattachments/status" ]
verbs: [ "patch" ]

---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-controller-attacher-binding
namespace: kube-system
subjects:
- kind: ServiceAccount
name: csi-vultr-controller-sa
namespace: kube-system
roleRef:
kind: ClusterRole
name: csi-vultr-attacher-role
apiGroup: rbac.authorization.k8s.io

## Provisioner Role + Binding
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-vultr-provisioner-role
namespace: kube-system
rules:
- apiGroups: [ "" ]
resources: [ "secrets" ]
verbs: [ "get", "list" ]
- apiGroups: [ "" ]
resources: [ "persistentvolumes" ]
verbs: [ "get", "list", "watch", "create", "delete" ]
- apiGroups: [ "" ]
resources: [ "persistentvolumeclaims" ]
verbs: [ "get", "list", "watch", "update" ]
- apiGroups: [ "storage.k8s.io" ]
resources: [ "storageclasses" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "storage.k8s.io" ]
resources: [ "csinodes" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "" ]
resources: [ "events" ]
verbs: [ "list", "watch", "create", "update", "patch" ]
- apiGroups: [ "" ]
resources: [ "nodes" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "storage.k8s.io" ]
resources: [ "volumeattachments" ]
verbs: [ "get", "list", "watch" ]

---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-controller-provisioner-binding
namespace: kube-system
subjects:
- kind: ServiceAccount
name: csi-vultr-controller-sa
namespace: kube-system
roleRef:
kind: ClusterRole
name: csi-vultr-provisioner-role
apiGroup: rbac.authorization.k8s.io


############
## CSI Node
############
---
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: csi-vultr-node
namespace: kube-system
spec:
selector:
matchLabels:
app: csi-vultr-node
template:
metadata:
labels:
app: csi-vultr-node
role: csi-vultr
spec:
serviceAccountName: csi-vultr-node-sa
hostNetwork: true
containers:
- name: driver-registrar
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.0
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
env:
- name: ADDRESS
value: /csi/csi.sock
- name: DRIVER_REG_SOCK_PATH
value: /var/lib/kubelet/plugins/block.csi.vultr.com/csi.sock
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: plugin-dir
mountPath: /csi/
- name: registration-dir
mountPath: /registration/
- name: csi-vultr-plugin
image: vultr/vultr-csi:v0.5.0
args:
- "--endpoint=$(CSI_ENDPOINT)"
env:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
imagePullPolicy: "Always"
securityContext:
privileged: true
capabilities:
add: [ "SYS_ADMIN" ]
allowPrivilegeEscalation: true
volumeMounts:
- name: plugin-dir
mountPath: /csi
- name: pods-mount-dir
mountPath: /var/lib/kubelet
mountPropagation: "Bidirectional"
- mountPath: /dev
name: device-dir
volumes:
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins_registry/
type: DirectoryOrCreate
- name: kubelet-dir
hostPath:
path: /var/lib/kubelet
type: Directory
- name: plugin-dir
hostPath:
path: /var/lib/kubelet/plugins/block.csi.vultr.com
type: DirectoryOrCreate
- name: pods-mount-dir
hostPath:
path: /var/lib/kubelet
type: Directory
- name: device-dir
hostPath:
path: /dev
- name: udev-rules-etc
hostPath:
path: /etc/udev
type: Directory
- name: udev-rules-lib
hostPath:
path: /lib/udev
type: Directory
- name: udev-socket
hostPath:
path: /run/udev
type: Directory
- name: sys
hostPath:
path: /sys
type: Directory

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: csi-vultr-node-sa
namespace: kube-system

---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: driver-registrar-binding
namespace: kube-system
subjects:
- kind: ServiceAccount
name: csi-vultr-node-sa
namespace: kube-system
roleRef:
kind: ClusterRole
name: csi-vultr-node-driver-registrar-role
apiGroup: rbac.authorization.k8s.io

---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-vultr-node-driver-registrar-role
namespace: kube-system
rules:
- apiGroups: [ "" ]
resources: [ "events" ]
verbs: [ "get", "list", "watch", "create", "update", "patch" ]

0 comments on commit 7908a6f

Please sign in to comment.