Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Add CSI 2.4.0 Windows support #2567

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
- name: csi-resizer
#@ end

#@overlay/match by=overlay.subset({"kind": "DaemonSet", "metadata": {"name": "vsphere-csi-node"}})
#@overlay/match by=overlay.subset({"kind": "DaemonSet"}), expects="1+"
---
metadata:
#@overlay/match missing_ok=True
Expand Down Expand Up @@ -119,3 +119,27 @@ subjects:
#@overlay/match by="kind"
- kind: ServiceAccount
namespace: #@ values.vsphereCSI.namespace

#@overlay/match by=config_maps, expects=1
---
data:
#@ if values.vsphereCSI.windows_support:
#@overlay/replace
"csi-windows-support": "true"
#@ else:
#@overlay/replace
"csi-windows-support": "false"
#@ end


#@ if values.vsphereCSI.windows_support:
#@overlay/match by=overlay.subset({"kind": "DaemonSet", "metadata": {"name": "vsphere-csi-node"}})
---
#@overlay/remove

#@ else:
#@overlay/match by=overlay.subset({"kind": "DaemonSet", "metadata": {"name": "vsphere-csi-node-windows"}})
---
#@overlay/remove

#@ end
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ vsphereCSI:
http_proxy: ""
https_proxy: ""
no_proxy: ""
windows_support: false
2 changes: 1 addition & 1 deletion addons/packages/vsphere-csi/2.4.0/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
spec:
fetch:
- imgpkgBundle:
image: projects.registry.vmware.com/tce/vsphere-csi@sha256:22bef1f91a55aa1ed73309f4f5de76eb6eab1a0d372f4290997f9b3e416d1612
image: projects.registry.vmware.com/tce/vsphere-csi@sha256:976bed2098fc8ea5807265c52b9fa478727b59d68ed481b6ccb6d4a455be1fad
template:
- ytt:
paths:
Expand Down