Skip to content
Snippets Groups Projects
Commit f67a2449 authored by Tony Fouchard's avatar Tony Fouchard Committed by Kubernetes Prow Robot
Browse files

Allow to specify feature_control in calico cni config (#4879)

* Allow to specify feature_control in calico cni config

* list length checking

* double check

* remove 2 conditions
parent 5c704552
No related branches found
No related tags found
No related merge requests found
......@@ -72,3 +72,5 @@ calico_datastore: "etcd"
typha_enabled: false
# Number of typha replicas
typha_replicas: 1
calico_feature_control: {}
......@@ -28,6 +28,15 @@
"subnet": "usePodCidr"
},
{% endif %}
{% if (calico_feature_control is defined) and (calico_feature_control|length > 0) %}
"feature_control": {
{% for fc in calico_feature_control -%}
{% set fcval = calico_feature_control[fc] -%}
"{{ fc }}": {{ (fcval | string | lower) if (fcval == true or fcval == false) else "\"" + fcval + "\"" }}{{ "," if not loop.last else "" }}
{% endfor -%}
{{- "" }}
},
{% endif %}
{% if enable_network_policy %}
"policy": {
"type": "k8s"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment