mirror of
https://github.com/containers/podman.git
synced 2025-11-29 09:37:38 +08:00
Fix deprecation notice to make gocritic happy.
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
@@ -253,11 +253,13 @@ type ContainerNetworkConfig struct {
|
||||
// StaticIP is a static IP to request for the container.
|
||||
// This cannot be set unless CreateNetNS is set.
|
||||
// If not set, the container will be dynamically assigned an IP by CNI.
|
||||
//
|
||||
// Deprecated: Do no use this anymore, this is only for DB backwards compat.
|
||||
StaticIP net.IP `json:"staticIP,omitempty"`
|
||||
// StaticMAC is a static MAC to request for the container.
|
||||
// This cannot be set unless CreateNetNS is set.
|
||||
// If not set, the container will be dynamically assigned a MAC by CNI.
|
||||
//
|
||||
// Deprecated: Do no use this anymore, this is only for DB backwards compat.
|
||||
StaticMAC types.HardwareAddr `json:"staticMAC,omitempty"`
|
||||
// PortMappings are the ports forwarded to the container's network
|
||||
@@ -314,6 +316,7 @@ type ContainerNetworkConfig struct {
|
||||
// Please note that these can be altered at runtime. The actual list is
|
||||
// stored in the DB and should be retrieved from there; this is only the
|
||||
// set of networks the container was *created* with.
|
||||
//
|
||||
// Deprecated: Do no use this anymore, this is only for DB backwards compat.
|
||||
// Also note that we need to keep the old json tag to decode from DB correctly
|
||||
NetworksDeprecated []string `json:"networks,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user