mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 19:58:07 +03:00
Add huawei cloud controller (#10198)
* Add huaweicloud as external cloud controller * Add huaweicloud example config * Rename AK,SK to ACCESS_KEY and SECRET_KEY * Add reference to huaweicloud * Fix variable naming * Fix env var name * Update example * Fix variable naming * Fix cloud_config path * Add namespace for leader election * Revert reviewers * Delete OWNERS Delete owners who are not responsible here. * Fix build validation
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
---
|
||||
- name: External Huawei Cloud Controller | check external_huaweicloud_auth_url value
|
||||
fail:
|
||||
msg: "external_huaweicloud_auth_url is missing"
|
||||
when: external_huaweicloud_auth_url is not defined or not external_huaweicloud_auth_url
|
||||
|
||||
|
||||
- name: External Huawei Cloud Controller | check external_huaweicloud_access_key value
|
||||
fail:
|
||||
msg: "you must set external_huaweicloud_access_key"
|
||||
when:
|
||||
- external_huaweicloud_access_key is not defined or not external_huaweicloud_access_key
|
||||
|
||||
- name: External Huawei Cloud Controller | check external_huaweicloud_secret_key value
|
||||
fail:
|
||||
msg: "external_huaweicloud_secret_key is missing"
|
||||
when:
|
||||
- external_huaweicloud_access_key is defined
|
||||
- external_huaweicloud_access_key|length > 0
|
||||
- external_huaweicloud_secret_key is not defined or not external_huaweicloud_secret_key
|
||||
|
||||
|
||||
- name: External Huawei Cloud Controller | check external_huaweicloud_region value
|
||||
fail:
|
||||
msg: "external_huaweicloud_region is missing"
|
||||
when: external_huaweicloud_region is not defined or not external_huaweicloud_region
|
||||
|
||||
|
||||
- name: External Huawei Cloud Controller | check external_huaweicloud_project_id value
|
||||
fail:
|
||||
msg: "one of external_huaweicloud_project_id must be specified"
|
||||
when:
|
||||
- external_huaweicloud_project_id is not defined or not external_huaweicloud_project_id
|
||||
Reference in New Issue
Block a user