mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-04-09 12:09:23 -02:30
Fix undefined variable error for CiliumBGPAdvertisement labels (#13149)
This commit is contained in:
@@ -4,8 +4,9 @@ apiVersion: "cilium.io/v2"
|
|||||||
kind: CiliumBGPAdvertisement
|
kind: CiliumBGPAdvertisement
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ cilium_bgp_advertisement.name }}"
|
name: "{{ cilium_bgp_advertisement.name }}"
|
||||||
{% if cilium_bgp_advertisement.labels %}
|
{% if 'labels' in cilium_bgp_advertisement %}
|
||||||
labels: {{ cilium_bgp_advertisement.labels | to_yaml }}
|
labels:
|
||||||
|
{{ cilium_bgp_advertisement.labels | to_nice_yaml | indent(4, first=True) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
spec:
|
spec:
|
||||||
{{ cilium_bgp_advertisement.spec | to_yaml | indent(4) }}
|
{{ cilium_bgp_advertisement.spec | to_yaml | indent(4) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user