2022-01-21 04:31:09 +08:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: "{{ external_hcloud_cloud.token_secret_name }}"
|
|
|
|
namespace: kube-system
|
|
|
|
data:
|
2022-04-12 01:26:06 +08:00
|
|
|
token: "{{ external_hcloud_cloud.hcloud_api_token | b64encode }}"
|
2023-08-16 20:14:27 +08:00
|
|
|
{% if external_hcloud_cloud.with_networks or external_hcloud_cloud.network_name is defined %}
|
|
|
|
{% if network_id is defined%}
|
2023-07-05 11:36:54 +08:00
|
|
|
network: "{{ network_id | b64encode }}"
|
2023-08-16 20:14:27 +08:00
|
|
|
{% else %}
|
|
|
|
network: "{{ external_hcloud_cloud.network_name | b64encode }}"
|
|
|
|
{% endif %}
|
2022-04-12 01:26:06 +08:00
|
|
|
{% endif %}
|