Skip to content

Commit

Permalink
fix: additional json tags for remaining fields
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
  • Loading branch information
cprivitere committed Apr 19, 2023
1 parent ed7b11a commit 66e1d70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions metal/loadbalancers/metallb/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
// configFile is the configuration as parsed out of the ConfigMap,
// without validation or useful high level types.
type ConfigFile struct {
Peers []Peer
Peers []Peer `json:"peers"`
BGPCommunities map[string]string `json:"bgp-communities"`
Pools []AddressPool `json:"address-pools"`
}
Expand Down Expand Up @@ -58,9 +58,9 @@ type SelectorRequirements struct {
}

type AddressPool struct {
Protocol Proto
Name string
Addresses []string
Protocol Proto `json:"protocol"`
Name string `json:"name"`
Addresses []string `json:"addresses"`
AvoidBuggyIPs bool `json:"avoid-buggy-ips"`
AutoAssign *bool `json:"auto-assign"`
BGPAdvertisements []BgpAdvertisement `json:"bgp-advertisements"`
Expand Down

0 comments on commit 66e1d70

Please sign in to comment.