-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathali-vpc.patch
16 lines (16 loc) · 944 Bytes
/
ali-vpc.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git /usr/share/ansible/openshift-ansible/roles/flannel_register/templates/flannel-config.json /usr/share/ansible/openshift-ansible/roles/flannel_register/templates/flannel-config.json
index 89ce4c3..a8868b2 100644
--- /usr/share/ansible/openshift-ansible/roles/flannel_register/templates/flannel-config.json
+++ /usr/share/ansible/openshift-ansible/roles/flannel_register/templates/flannel-config.json
@@ -3,6 +3,10 @@
"SubnetLen": {{ flannel_subnet_len }},
"SubnetMin": "{{ flannel_min_network }}",
"Backend": {
- "Type": "host-gw"
+{% if flannel_type and openshift_cloudprovider_alicloud_access_key is defined and openshift_cloudprovider_alicloud_secret_key is defined %}
+ "Type": "{{ flannel_type | default('host-gw') }}",
+ "AccessKeyID": "{{ openshift_cloudprovider_alicloud_access_key }}",
+ "AccessKeySecret": "{{ openshift_cloudprovider_alicloud_secret_key }}"
+{% endif %}
}
}