Change field to pointer so it will be parsed as nil (#15831)
This commit is contained in:
parent
1ff0906a3e
commit
eff52f73be
|
@ -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
|
||||
|
|
|
@ -433,7 +433,7 @@ func TestDecodeConfigEntry(t *testing.T) {
|
|||
OutboundListenerPort: 808,
|
||||
DialedDirectly: true,
|
||||
},
|
||||
AccessLogs: AccessLogsConfig{
|
||||
AccessLogs: &AccessLogsConfig{
|
||||
Enabled: true,
|
||||
DisableListenerLogs: true,
|
||||
Type: FileLogSinkType,
|
||||
|
|
Loading…
Reference in New Issue