Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
pkg/components/metallb: read peer config also from annotations
Browse files Browse the repository at this point in the history
Which are set by Packet CCM right now.

Refs #548

Signed-off-by: Mateusz Gozdek <[email protected]>
  • Loading branch information
invidian committed Dec 3, 2020
1 parent ed52211 commit a7217c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/components/metallb/component_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ component "metallb" {
src-address: metallb.lokomotive.io/src-address
hold-time: metallb.lokomotive.io/hold-time
router-id: metallb.lokomotive.io/router-id
from-annotations:
my-asn: metallb.lokomotive.io/my-asn
peer-address: metallb.lokomotive.io/peer-address
peer-asn: metallb.lokomotive.io/peer-asn
address-pools:
- name: default
protocol: bgp
Expand Down
4 changes: 4 additions & 0 deletions pkg/components/metallb/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,10 @@ data:
src-address: metallb.lokomotive.io/src-address
hold-time: metallb.lokomotive.io/hold-time
router-id: metallb.lokomotive.io/router-id
from-annotations:
my-asn: metallb.lokomotive.io/my-asn
peer-address: metallb.lokomotive.io/peer-address
peer-asn: metallb.lokomotive.io/peer-asn
address-pools:
{{- range $k, $v := .AddressPools }}
- name: {{ $k }}
Expand Down

0 comments on commit a7217c4

Please sign in to comment.