remote: fix podman-remote kube play --publish-all

Fix `podman kube play --publish-all` to work in remote environment.

Signed-off-by: Tsubasa Watanabe <w.tsubasa@fujitsu.com>
This commit is contained in:
Tsubasa Watanabe
2023-12-29 12:41:54 +09:00
parent 7dc7cbfd9b
commit 4f94c96b9b
3 changed files with 18 additions and 0 deletions

View File

@@ -5644,6 +5644,18 @@ spec:
testHTTPServer("19003", false, "podman rulez")
})
It("podman play kube should publish containerPort with --publish-all", func() {
SkipIfRootless("rootlessport can't expose privileged port 80")
err := writeYaml(publishPortsPodWithContainerPort, kubeYaml)
Expect(err).ToNot(HaveOccurred())
kube := podmanTest.Podman([]string{"kube", "play", "--publish-all=true", kubeYaml})
kube.WaitWithDefaultTimeout()
Expect(kube).Should(Exit(0))
testHTTPServer("80", false, "podman rulez")
})
It("with Host Ports - curl should succeed", func() {
err := writeYaml(publishPortsPodWithContainerHostPort, kubeYaml)
Expect(err).ToNot(HaveOccurred())