mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-08 09:57:38 -02:30
Implement topology support for Cinder CSI (#5667)
* make cinder csi topology aware * change feature description do better reflect whats being done * remove sameas true since it isn't required
This commit is contained in:
@@ -35,6 +35,9 @@ spec:
|
||||
image: {{ cinder_csi_provisioner_image_repo }}:{{ cinder_csi_provisioner_image_tag }}
|
||||
args:
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
{% if cinder_topology is defined and cinder_topology %}
|
||||
- --feature-gates=Topology=true
|
||||
{% endif %}
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
|
||||
@@ -11,4 +11,13 @@ parameters:
|
||||
{% for key, value in (class.parameters | default({})).items() %}
|
||||
"{{ key }}": "{{ value }}"
|
||||
{% endfor %}
|
||||
{% if cinder_topology is defined and cinder_topology is sameas true %}
|
||||
allowedTopologies:
|
||||
- matchLabelExpressions:
|
||||
- key: topology.cinder.csi.openstack.org/zone
|
||||
values:
|
||||
{% for zone in cinder_topology_zones %}
|
||||
- "{{ zone }}"
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user