|
@@ -635,6 +635,9 @@ def build_controller_args(facts):
|
|
|
controller_args['cloud-provider'] = ['aws']
|
|
|
controller_args['cloud-config'] = [cloud_cfg_path + '/aws.conf']
|
|
|
controller_args['disable-attach-detach-reconcile-sync'] = ['true']
|
|
|
+ if facts['cloudprovider']['kind'] == 'azure':
|
|
|
+ controller_args['cloud-provider'] = ['azure']
|
|
|
+ controller_args['cloud-config'] = [cloud_cfg_path + '/azure.conf']
|
|
|
if facts['cloudprovider']['kind'] == 'openstack':
|
|
|
controller_args['cloud-provider'] = ['openstack']
|
|
|
controller_args['cloud-config'] = [cloud_cfg_path + '/openstack.conf']
|
|
@@ -657,6 +660,9 @@ def build_api_server_args(facts):
|
|
|
if facts['cloudprovider']['kind'] == 'aws':
|
|
|
api_server_args['cloud-provider'] = ['aws']
|
|
|
api_server_args['cloud-config'] = [cloud_cfg_path + '/aws.conf']
|
|
|
+ if facts['cloudprovider']['kind'] == 'azure':
|
|
|
+ api_server_args['cloud-provider'] = ['azure']
|
|
|
+ api_server_args['cloud-config'] = [cloud_cfg_path + '/azure.conf']
|
|
|
if facts['cloudprovider']['kind'] == 'openstack':
|
|
|
api_server_args['cloud-provider'] = ['openstack']
|
|
|
api_server_args['cloud-config'] = [cloud_cfg_path + '/openstack.conf']
|