Fix undefined variable error for CiliumBGPAdvertisement labels (#13149)

This commit is contained in:
Karim Farid
2026-04-09 04:43:31 +02:00
committed by GitHub
parent 65352fef39
commit 47bb0301e4

View File

@@ -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) }}