Skip to content
Snippets Groups Projects
Unverified Commit a31baf3c authored by Id2ndR's avatar Id2ndR Committed by GitHub
Browse files

Fix deployment without openstack cacert (#7723)

* fix group name

* fix external-openstack-cloud-config secret

* don't add ca.cert in the secret if not defined
parent e8372889
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
src: "{{ external_openstack_cacert }}"
register: external_openstack_cacert_b64
when:
- inventory_hostname == groups['k8s_control_plane'][0]
- inventory_hostname == groups['kube_control_plane'][0]
- external_openstack_cacert is defined
- external_openstack_cacert | length > 0
tags: external-openstack
......
......@@ -7,5 +7,7 @@ metadata:
name: external-openstack-cloud-config
namespace: kube-system
data:
cloud.conf: {{ external_openstack_cloud_config_secret.content }}
ca.cert: {{ external_openstack_cacert_b64.content | default("") }}
cloud.conf: {{ external_openstack_cloud_config_secret }}
{% if external_openstack_cacert_b64.content is defined %}
ca.cert: {{ external_openstack_cacert_b64.content }}
{% endif %}
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