Skip to content
Snippets Groups Projects
Unverified Commit 619938da authored by Alexander's avatar Alexander Committed by GitHub
Browse files

add the ability to configure extra args to the different cinder-csi-p… (#11169)

* add the ability to configure extra args to the different cinder-csi-plugin containers

* endfor block added to be syntactically correct jinja
parent 88b502f2
Branches
Tags
No related merge requests found
--- ---
cinder_csi_attacher_image_tag: "v4.4.2" cinder_csi_attacher_image_tag: "v4.4.2"
cinder_csi_provisioner_image_tag: "v3.6.2" cinder_csi_provisioner_image_tag: "v3.6.2"
cinder_csi_snapshotter_image_tag: "v6.3.2" cinder_csi_snapshotter_image_tag: "v6.3.2"
...@@ -35,3 +34,15 @@ cinder_csi_controller_replicas: 1 ...@@ -35,3 +34,15 @@ cinder_csi_controller_replicas: 1
# cinder_csi_rescan_on_resize: true # cinder_csi_rescan_on_resize: true
cinder_tolerations: [] cinder_tolerations: []
## Dictionaries of extra arguments to add to the cinder CSI plugin containers
## Format:
## cinder_csi_attacher_extra_args:
## arg1: "value1"
## arg2: "value2"
cinder_csi_attacher_extra_args: {}
cinder_csi_provisioner_extra_args: {}
cinder_csi_snapshotter_extra_args: {}
cinder_csi_resizer_extra_args: {}
cinder_csi_plugin_extra_args: {}
cinder_liveness_probe_extra_args: {}
...@@ -30,6 +30,9 @@ spec: ...@@ -30,6 +30,9 @@ spec:
- --leader-election=true - --leader-election=true
{% endif %} {% endif %}
- "--default-fstype=ext4" - "--default-fstype=ext4"
{% for key, value in cinder_csi_attacher_extra_args.items() %}
- "{{ '--' + key + '=' + value }}"
{% endfor %}
env: env:
- name: ADDRESS - name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock value: /var/lib/csi/sockets/pluginproxy/csi.sock
...@@ -50,6 +53,9 @@ spec: ...@@ -50,6 +53,9 @@ spec:
{% if cinder_csi_controller_replicas is defined and cinder_csi_controller_replicas > 1 %} {% if cinder_csi_controller_replicas is defined and cinder_csi_controller_replicas > 1 %}
- "--leader-election=true" - "--leader-election=true"
{% endif %} {% endif %}
{% for key, value in cinder_csi_provisioner_extra_args.items() %}
- "{{ '--' + key + '=' + value }}"
{% endfor %}
env: env:
- name: ADDRESS - name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock value: /var/lib/csi/sockets/pluginproxy/csi.sock
...@@ -66,6 +72,9 @@ spec: ...@@ -66,6 +72,9 @@ spec:
{% if cinder_csi_controller_replicas is defined and cinder_csi_controller_replicas > 1 %} {% if cinder_csi_controller_replicas is defined and cinder_csi_controller_replicas > 1 %}
- --leader-election=true - --leader-election=true
{% endif %} {% endif %}
{% for key, value in cinder_csi_snapshotter_extra_args.items() %}
- "{{ '--' + key + '=' + value }}"
{% endfor %}
env: env:
- name: ADDRESS - name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock value: /var/lib/csi/sockets/pluginproxy/csi.sock
...@@ -82,6 +91,9 @@ spec: ...@@ -82,6 +91,9 @@ spec:
{% if cinder_csi_controller_replicas is defined and cinder_csi_controller_replicas > 1 %} {% if cinder_csi_controller_replicas is defined and cinder_csi_controller_replicas > 1 %}
- --leader-election=true - --leader-election=true
{% endif %} {% endif %}
{% for key, value in cinder_csi_resizer_extra_args.items() %}
- "{{ '--' + key + '=' + value }}"
{% endfor %}
env: env:
- name: ADDRESS - name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock value: /var/lib/csi/sockets/pluginproxy/csi.sock
...@@ -93,6 +105,9 @@ spec: ...@@ -93,6 +105,9 @@ spec:
imagePullPolicy: {{ k8s_image_pull_policy }} imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
{% for key, value in cinder_liveness_probe_extra_args.items() %}
- "{{ '--' + key + '=' + value }}"
{% endfor %}
env: env:
- name: ADDRESS - name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock value: /var/lib/csi/sockets/pluginproxy/csi.sock
...@@ -107,6 +122,9 @@ spec: ...@@ -107,6 +122,9 @@ spec:
- "--endpoint=$(CSI_ENDPOINT)" - "--endpoint=$(CSI_ENDPOINT)"
- "--cloud-config=$(CLOUD_CONFIG)" - "--cloud-config=$(CLOUD_CONFIG)"
- "--cluster=$(CLUSTER_NAME)" - "--cluster=$(CLUSTER_NAME)"
{% for key, value in cinder_csi_plugin_extra_args.items() %}
- "{{ '--' + key + '=' + value }}"
{% endfor %}
env: env:
- name: CSI_ENDPOINT - name: CSI_ENDPOINT
value: unix://csi/csi.sock value: unix://csi/csi.sock
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment