Skip to content

Commit

Permalink
add omit empty to metadata (istio#35347)
Browse files Browse the repository at this point in the history
Signed-off-by: Rama Chavali <[email protected]>
  • Loading branch information
ramaraochavali authored Sep 28, 2021
1 parent e06118d commit f7fb3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pilot/pkg/xds/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ type AdsClient struct {
ConnectionID string `json:"connectionId"`
ConnectedAt time.Time `json:"connectedAt"`
PeerAddress string `json:"address"`
Metadata *model.NodeMetadata `json:"metadata"`
Metadata *model.NodeMetadata `json:"metadata,omitempty"`
Watches map[string][]string `json:"watches,omitempty"`
}

Expand Down

0 comments on commit f7fb3e3

Please sign in to comment.