Change field to pointer so it will be parsed as nil (#15831)

This commit is contained in:
cskh 2022-12-19 10:25:36 -05:00 committed by GitHub
parent 1ff0906a3e
commit eff52f73be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -433,7 +433,7 @@ func TestDecodeConfigEntry(t *testing.T) {
OutboundListenerPort: 808,
DialedDirectly: true,
},
AccessLogs: AccessLogsConfig{
AccessLogs: &AccessLogsConfig{
Enabled: true,
DisableListenerLogs: true,
Type: FileLogSinkType,