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

Commit

Permalink
* Set CSI 2.4.0 deployment replica number dynamically and patch for C…
Browse files Browse the repository at this point in the history
…SI topology support. (#2571)


Signed-off-by: Lucheng Bao <luchengb@vmware.com>
  • Loading branch information
blc1996 authored Nov 18, 2021
1 parent 6a71952 commit 438ba11
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ metadata:
namespace: #@ values.vsphereCSI.namespace

spec:
#@overlay/match
replicas: #@ values.vsphereCSI.deployment_replicas
template:
spec:
containers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ vsphereCSI:
http_proxy: ""
https_proxy: ""
no_proxy: ""
deployment_replicas: 3
windows_support: false
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ public-network = "(@=values.vsphereCSI.publicNetwork @)"
(@ if values.vsphereCSI.region or values.vsphereCSI.zone: -@)

[Labels]
(@ if values.vsphereCSI.region and values.vsphereCSI.zone: -@)
topology-categories = "(@=values.vsphereCSI.region @), (@=values.vsphereCSI.zone @)"
(@ else: -@)
(@ if values.vsphereCSI.region: -@)
topology-categories = "(@=values.vsphereCSI.region @)"
(@ end -@)
(@ if values.vsphereCSI.zone: -@)
topology-categories = "(@=values.vsphereCSI.zone @)"
(@ end -@)
(@ end -@)

(@ if values.vsphereCSI.region: -@)
region = "(@=values.vsphereCSI.region @)"
(@ end -@)
Expand Down
3 changes: 1 addition & 2 deletions addons/packages/vsphere-csi/2.4.0/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ spec:
spec:
fetch:
- imgpkgBundle:
image: projects.registry.vmware.com/tce/vsphere-csi@sha256:34098c5e175b73e119d1ebeb34a7277125bafb5094f9decc891eb0af66ac9c4e
template:
image: projects.registry.vmware.com/tce/vsphere-csi@sha256:d9f712dec9e16421ef961b64204eda85a07eb56de2cf4026c895fc3ceb1705d4
- ytt:
paths:
- config/
Expand Down

0 comments on commit 438ba11

Please sign in to comment.