Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

650: Fix issue with CSI manifests for v1.6.0 #663

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 50 additions & 1 deletion templates/crs/csi/csi-controller-crs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,43 @@ roleRef:
name: csi-provisioner-role
apiGroup: rbac.authorization.k8s.io

---
# external resizer
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-resizer-role
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims/status"]
verbs: ["update", "patch"]
- apiGroups: [""]
resources: ["events"]
verbs: ["list", "watch", "create", "update", "patch"]

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

---
kind: Deployment
apiVersion: apps/v1
Expand Down Expand Up @@ -134,6 +171,19 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-resizer
image: registry.k8s.io/sig-storage/csi-resizer:v1.4.0
args:
- "--csi-address=$(ADDRESS)"
- "--timeout=30s"
- "--v=5"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: "IfNotPresent"
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: vcd-csi-plugin
securityContext:
privileged: true
Expand All @@ -147,7 +197,6 @@ spec:
- --cloud-config=/etc/kubernetes/vcloud/vcloud-csi-config.yaml
- --endpoint=$(CSI_ENDPOINT)
- --upgrade-rde
- --v=5
env:
- name: NODE_ID
valueFrom:
Expand Down
20 changes: 16 additions & 4 deletions templates/crs/csi/csi-node-crs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ roleRef:
kind: ClusterRole
name: csi-nodeplugin-role
apiGroup: rbac.authorization.k8s.io

---
kind: DaemonSet
apiVersion: apps/v1
Expand Down Expand Up @@ -71,6 +72,19 @@ spec:
mountPath: /csi
- name: registration-dir
mountPath: /registration
- name: csi-resizer
image: registry.k8s.io/sig-storage/csi-resizer:v1.4.0
args:
- "--csi-address=$(ADDRESS)"
- "--timeout=30s"
- "--v=5"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: "IfNotPresent"
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: vcd-csi-plugin
securityContext:
privileged: true
Expand All @@ -84,7 +98,6 @@ spec:
- --nodeid=$(NODE_ID)
- --endpoint=$(CSI_ENDPOINT)
- --cloud-config=/etc/kubernetes/vcloud/vcloud-csi-config.yaml
- --v=5
env:
- name: NODE_ID
valueFrom:
Expand All @@ -110,7 +123,7 @@ spec:
mountPath: /dev
mountPropagation: "HostToContainer"
- name: pv-dir
mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi/pv
mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi
mountPropagation: "Bidirectional"
- name: vcloud-csi-config-volume
mountPath: /etc/kubernetes/vcloud
Expand Down Expand Up @@ -139,12 +152,11 @@ spec:
type: Directory
- name: pv-dir
hostPath:
path: /var/lib/kubelet/plugins/kubernetes.io/csi/pv
path: /var/lib/kubelet/plugins/kubernetes.io/csi
type: DirectoryOrCreate
- name: vcloud-csi-config-volume
configMap:
name: vcloud-csi-configmap
- name: vcloud-basic-auth-volume
secret:
secretName: vcloud-basic-auth
---