Skip to content

Commit

Permalink
Change field to pointer so it will be parsed as nil (#15831)
Browse files Browse the repository at this point in the history
  • Loading branch information
huikang authored Dec 19, 2022
1 parent ab199a1 commit 252a08e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/config_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ type ProxyConfigEntry struct {
Config map[string]interface{} `json:",omitempty"`
MeshGateway MeshGatewayConfig `json:",omitempty" alias:"mesh_gateway"`
Expose ExposeConfig `json:",omitempty"`
AccessLogs AccessLogsConfig `json:",omitempty"`
AccessLogs *AccessLogsConfig `json:",omitempty"`

Meta map[string]string `json:",omitempty"`
CreateIndex uint64
Expand Down
2 changes: 1 addition & 1 deletion api/config_entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ func TestDecodeConfigEntry(t *testing.T) {
OutboundListenerPort: 808,
DialedDirectly: true,
},
AccessLogs: AccessLogsConfig{
AccessLogs: &AccessLogsConfig{
Enabled: true,
DisableListenerLogs: true,
Type: FileLogSinkType,
Expand Down

0 comments on commit 252a08e

Please sign in to comment.