mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Initialize field with name
Signed-off-by: Ke Li <kel@splunk.com>
This commit is contained in:
parent
1ef10c83c7
commit
da6944ec87
2 changed files with 9 additions and 3 deletions
|
@ -584,7 +584,13 @@ func (c *containerConfig) networkCreateRequest(name string) (clustertypes.Networ
|
||||||
options.IPAM.Config = append(options.IPAM.Config, c)
|
options.IPAM.Config = append(options.IPAM.Config, c)
|
||||||
}
|
}
|
||||||
|
|
||||||
return clustertypes.NetworkCreateRequest{na.Network.ID, types.NetworkCreateRequest{Name: name, NetworkCreate: options}}, nil
|
return clustertypes.NetworkCreateRequest{
|
||||||
|
ID: na.Network.ID,
|
||||||
|
NetworkCreateRequest: types.NetworkCreateRequest{
|
||||||
|
Name: name,
|
||||||
|
NetworkCreate: options,
|
||||||
|
},
|
||||||
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c containerConfig) eventFilter() filters.Args {
|
func (c containerConfig) eventFilter() filters.Args {
|
||||||
|
|
|
@ -114,8 +114,8 @@ func (e *executor) Configure(ctx context.Context, node *api.Node) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
return e.backend.SetupIngress(clustertypes.NetworkCreateRequest{
|
return e.backend.SetupIngress(clustertypes.NetworkCreateRequest{
|
||||||
na.Network.ID,
|
ID: na.Network.ID,
|
||||||
types.NetworkCreateRequest{
|
NetworkCreateRequest: types.NetworkCreateRequest{
|
||||||
Name: na.Network.Spec.Annotations.Name,
|
Name: na.Network.Spec.Annotations.Name,
|
||||||
NetworkCreate: options,
|
NetworkCreate: options,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue