add extra variable for OCCM cluster-name for separated naming

This commit is contained in:
Payback159 2022-12-19 19:16:25 +01:00
parent 491e260d20
commit c8c8e0521b
2 changed files with 8 additions and 0 deletions

View file

@ -21,4 +21,8 @@ external_openstack_cacert: "{{ lookup('env','OS_CACERT') }}"
## arg1: "value1"
## arg2: "value2"
external_openstack_cloud_controller_extra_args: {}
## By default the value of cluster_name variable is taken.
## If you want to give the OCCM identifier a different value,
## you can set the external_openstack_cloud_controller_cluster_name.
## external_openstack_cloud_controller_cluster_name: "cluster-name"
external_openstack_cloud_controller_image_tag: "v1.25.3"

View file

@ -44,7 +44,11 @@ spec:
- --v=1
- --cloud-config=$(CLOUD_CONFIG)
- --cloud-provider=openstack
{% if external_openstack_cloud_controller_cluster_name is defined %}
- --cluster-name={{ external_openstack_cloud_controller_cluster_name }}
{% else %}
- --cluster-name={{ cluster_name }}
{% endif %}
- --use-service-account-credentials=true
- --bind-address=127.0.0.1
{% for key, value in external_openstack_cloud_controller_extra_args.items() %}