-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quadlet Kube - add support for PublishPort key
Move the handling of Publish key to a method use --publish instead of -p Use the new method for both .container and .kube files Adjust .container tests Add .kube tests Update the man page Signed-off-by: Ygal Blum <[email protected]>
- Loading branch information
Showing
7 changed files
with
186 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[Kube] | ||
Yaml=/opt/k8s/deployment.yml | ||
|
||
## assert-podman-args --publish 127.0.0.1:80:90 | ||
PublishPort=127.0.0.1:80:90 | ||
|
||
## assert-podman-args --publish 80:91 | ||
PublishPort=0.0.0.0:80:91 | ||
|
||
## assert-podman-args --publish 80:92 | ||
PublishPort=:80:92 | ||
|
||
## assert-podman-args --publish 127.0.0.1::93 | ||
PublishPort=127.0.0.1::93 | ||
|
||
## assert-podman-args --publish 94 | ||
PublishPort=0.0.0.0::94 | ||
|
||
## assert-podman-args --publish 95 | ||
PublishPort=::95 | ||
|
||
## assert-podman-args --publish 80:96 | ||
PublishPort=80:96 | ||
|
||
## assert-podman-args --publish 97 | ||
PublishPort=97 | ||
|
||
## assert-podman-args --publish 1234/udp | ||
PublishPort=1234/udp | ||
|
||
## assert-podman-args --publish 1234:1234/udp | ||
PublishPort=1234:1234/udp | ||
|
||
## assert-podman-args --publish 127.0.0.1:1234:1234/udp | ||
PublishPort=127.0.0.1:1234:1234/udp | ||
|
||
## assert-podman-args --publish 1234/tcp | ||
PublishPort=1234/tcp | ||
|
||
## assert-podman-args --publish 1234:1234/tcp | ||
PublishPort=1234:1234/tcp | ||
|
||
## assert-podman-args --publish 127.0.0.1:1234:1234/tcp | ||
PublishPort=127.0.0.1:1234:1234/tcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
[Container] | ||
Image=localhost/imagename | ||
## assert-podman-args -p=[::1]:80:90 | ||
## assert-podman-args --publish [::1]:80:90 | ||
PublishPort=[::1]:80:90 | ||
|
||
## assert-podman-args -p=[::]:80:91 | ||
## assert-podman-args --publish [::]:80:91 | ||
PublishPort=[::]:80:91 | ||
|
||
## assert-podman-args -p=[2001:DB8::23]:80:91 | ||
## assert-podman-args --publish [2001:DB8::23]:80:91 | ||
PublishPort=[2001:DB8::23]:80:91 | ||
|
||
## assert-podman-args -p=[::1]::93 | ||
## assert-podman-args --publish [::1]::93 | ||
PublishPort=[::1]::93 | ||
|
||
## assert-podman-args -p=[::]::94 | ||
## assert-podman-args --publish [::]::94 | ||
PublishPort=[::]::94 | ||
|
||
## assert-podman-args -p=[2001:db8::42]::94 | ||
## assert-podman-args --publish [2001:db8::42]::94 | ||
PublishPort=[2001:db8::42]::94 | ||
|
||
## assert-podman-args -p=[::1]:1234:1234/udp | ||
## assert-podman-args --publish [::1]:1234:1234/udp | ||
PublishPort=[::1]:1234:1234/udp | ||
|
||
## assert-podman-args -p=[::1]:1234:1234/tcp | ||
## assert-podman-args --publish [::1]:1234:1234/tcp | ||
PublishPort=[::1]:1234:1234/tcp | ||
|
||
## assert-podman-args -p=[2001:db8:c0:ff:ee::1]:1234:1234/udp | ||
## assert-podman-args --publish [2001:db8:c0:ff:ee::1]:1234:1234/udp | ||
PublishPort=[2001:db8:c0:ff:ee::1]:1234:1234/udp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[Kube] | ||
Yaml=/opt/k8s/deployment.yml | ||
|
||
## assert-podman-args --publish [::1]:80:90 | ||
PublishPort=[::1]:80:90 | ||
|
||
## assert-podman-args --publish [::]:80:91 | ||
PublishPort=[::]:80:91 | ||
|
||
## assert-podman-args --publish [2001:DB8::23]:80:91 | ||
PublishPort=[2001:DB8::23]:80:91 | ||
|
||
## assert-podman-args --publish [::1]::93 | ||
PublishPort=[::1]::93 | ||
|
||
## assert-podman-args --publish [::]::94 | ||
PublishPort=[::]::94 | ||
|
||
## assert-podman-args --publish [2001:db8::42]::94 | ||
PublishPort=[2001:db8::42]::94 | ||
|
||
## assert-podman-args --publish [::1]:1234:1234/udp | ||
PublishPort=[::1]:1234:1234/udp | ||
|
||
## assert-podman-args --publish [::1]:1234:1234/tcp | ||
PublishPort=[::1]:1234:1234/tcp | ||
|
||
## assert-podman-args --publish [2001:db8:c0:ff:ee::1]:1234:1234/udp | ||
PublishPort=[2001:db8:c0:ff:ee::1]:1234:1234/udp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters