Add --no-hostname option

Fixes: https://github.com/containers/podman/issues/25002

Also add the ability to inspect containers for
UseImageHosts and UseImageHostname.

Finally fixed some bugs in handling of --no-hosts for Pods,
which I descovered.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2025-01-13 12:05:25 -05:00
parent 04e6488315
commit 6565bde6e8
35 changed files with 160 additions and 21 deletions

View File

@ -109,6 +109,7 @@ func KubePlay(w http.ResponseWriter, r *http.Request) {
LogDriver string `schema:"logDriver"`
LogOptions []string `schema:"logOptions"`
Network []string `schema:"network"`
NoHostname bool `schema:"noHostname"`
NoHosts bool `schema:"noHosts"`
NoTrunc bool `schema:"noTrunc"`
Replace bool `schema:"replace"`
@ -182,6 +183,7 @@ func KubePlay(w http.ResponseWriter, r *http.Request) {
LogDriver: logDriver,
LogOptions: query.LogOptions,
Networks: query.Network,
NoHostname: query.NoHostname,
NoHosts: query.NoHosts,
Password: password,
PublishPorts: query.PublishPorts,