mirror of
https://github.com/containers/podman.git
synced 2025-12-05 12:52:12 +08:00
Merge pull request #15823 from rhatdan/dns-opt
Default to --dns-option to match Docker and Buildah
This commit is contained in:
@@ -912,7 +912,7 @@ var _ = Describe("Podman generate kube", func() {
|
||||
})
|
||||
|
||||
It("podman generate kube on a container with dns options", func() {
|
||||
top := podmanTest.Podman([]string{"run", "-dt", "--name", "top", "--dns", "8.8.8.8", "--dns-search", "foobar.com", "--dns-opt", "color:blue", ALPINE, "top"})
|
||||
top := podmanTest.Podman([]string{"run", "-dt", "--name", "top", "--dns", "8.8.8.8", "--dns-search", "foobar.com", "--dns-option", "color:blue", ALPINE, "top"})
|
||||
top.WaitWithDefaultTimeout()
|
||||
Expect(top).Should(Exit(0))
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ EOF
|
||||
--add-host "$add_host_n:$add_host_ip" \
|
||||
--dns "$dns_server" \
|
||||
--dns-search "$dns_search" \
|
||||
--dns-opt "$dns_opt" \
|
||||
--dns-option "$dns_opt" \
|
||||
--publish "$port_out:$port_in" \
|
||||
--label "${labelname}=${labelvalue}" \
|
||||
--infra-image "$infra_image" \
|
||||
@@ -262,7 +262,7 @@ EOF
|
||||
run_podman run --rm --pod mypod $IMAGE cat /etc/resolv.conf
|
||||
is "$output" ".*nameserver $dns_server" "--dns [server] was added"
|
||||
is "$output" ".*search $dns_search" "--dns-search was added"
|
||||
is "$output" ".*options $dns_opt" "--dns-opt was added"
|
||||
is "$output" ".*options $dns_opt" "--dns-option was added"
|
||||
|
||||
# pod inspect
|
||||
run_podman pod inspect --format '{{.Name}}: {{.ID}} : {{.NumContainers}} : {{.Labels}}' mypod
|
||||
|
||||
Reference in New Issue
Block a user