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

Commit

Permalink
Add CSI 2.4.0 Windows support
Browse files Browse the repository at this point in the history
Signed-off-by: Lucheng Bao <[email protected]>
  • Loading branch information
blc1996 committed Nov 17, 2021
1 parent 910adcf commit 48c4cef
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
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

0 comments on commit 48c4cef

Please sign in to comment.