Remove JSON tag from UseImageHosts in ContainerConfig

This did not have a JSON tag prior to being added by #25008. By
adding one we risk a breaking change in the DB (particularly
given the change in case - useImageHosts vs UseImageHosts) which
we should try to avoid.

Remove the tag given this.

Signed-off-by: Matt Heon <mheon@redhat.com>
This commit is contained in:
Matt Heon
2025-01-20 13:43:51 -05:00
parent a86034596e
commit cfeefb3219

View File

@ -292,7 +292,7 @@ type ContainerNetworkConfig struct {
// UseImageHosts indicates that /etc/hosts should not be
// bind-mounted inside the container.
// Conflicts with HostAdd.
UseImageHosts bool `json:"useImageHosts"`
UseImageHosts bool
// BaseHostsFile is the base file to create the `/etc/hosts` file inside the container.
// This must either be an absolute path to a file on the host system, or one of the
// special flags `image` or `none`.