Sergey
4cb8404b7b
Fix issue with pushing podman image to repo name and org ( #771 )
...
If destination doesn't have image, but only repo name and org,
complete with image name and tag.
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-06-02 21:01:06 +03:00
Sergey
d75126d68a
Add path and env options for podman_secret ( #766 )
...
Fix #741
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-29 23:23:34 +03:00
Sergey
f9ab05b0ae
Add mount and unmount for volumes ( #764 )
...
Fix #603
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-29 18:28:44 +03:00
Sergey
4985d48415
Reapply "Fix transports issues in podman_image ( #619 )" ( #754 ) ( #755 )
...
This reverts commit 391e4c54ef .
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-29 18:27:07 +03:00
Oleg Bulatov
d5224b5323
Create podman secret when skip_existing=True and it does not exist ( #733 )
...
Signed-off-by: Oleg Bulatov <oleg@bulatov.me>
2024-05-29 10:34:12 +03:00
Sergey
863ac0e38a
Add docs, tests and more examples for podman_pod ( #763 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-29 10:24:01 +03:00
Sergey
9142efd82a
Add multiple subnets for networks ( #762 )
...
Improve idempotency.
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-28 18:36:52 +03:00
Sergey
2887be7289
Add route, dns and ipam_driver to podman_network ( #761 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-27 21:59:14 +03:00
Sergey
47fc4cc119
Redesign idempotency for Podman Pod module ( #759 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-27 17:49:32 +03:00
Sergey
b3dc57c1cf
Add autodiscovery for build context in podman_image ( #757 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-26 00:02:20 +03:00
Sergey
e29e2cfb19
Improve idempotency for networking in podman_container ( #756 )
...
Related: #555
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-23 13:33:01 +03:00
Sergey
e1e4e7516a
Add idempotency for mounts and volumes ( #753 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-22 22:08:57 +03:00
Sergey
391e4c54ef
Revert "Fix transports issues in podman_image ( #619 )" ( #754 )
...
This reverts commit 7ad3dc53d5 .
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-22 21:11:23 +03:00
Sergey
7ad3dc53d5
Fix transports issues in podman_image ( #619 )
...
Fix #218 #205 #264
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-22 20:01:32 +03:00
Sergey
2ae2309cb8
Add extra_args for podman_image push and pull ( #752 )
...
* Add extra_args for podman_image push
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
* Add extra_args to podman pull image
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
---------
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-22 19:50:36 +03:00
Sergey
2f5da14c30
Add new options for podman_container ( #750 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-22 14:30:28 +03:00
Marko Weltzer
9f34e8f78a
fix( #747 ): set correct HealthCmd ( #748 )
...
Signed-off-by: Marko Weltzer <marwel_github@bugga.de>
2024-05-19 22:27:52 +03:00
Sergey
b987120fa0
Add new options to pod module ( #745 )
...
Fix #742
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-16 14:50:47 +03:00
Sergey
4c987a1c22
Fix idempotency for pod with 0.0.0.0 ( #744 )
...
Fix #743
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-05-13 17:21:03 +03:00
Sagi Shnaidman
35cdaa1365
Release 1.13.0 version
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-04-22 21:20:28 +03:00
Sagi Shnaidman
4bfbabe727
Add more quadlet examples in docs
2024-04-22 21:20:28 +03:00
Sergey
1476ebe685
Add quadlet support for Podman modules ( #722 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-04-22 01:13:04 +03:00
Oliver Walsh
4591a44ef8
Fix pod info for non-existant pods ( #732 )
...
Do not try to deserialize json when out is empty
Fixes #731
Signed-off-by: Oliver Walsh <owalsh@redhat.com>
2024-04-12 16:24:13 +03:00
Sagi Shnaidman
cb74414e50
Fix pod for Podman v5
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-04-08 01:11:46 +03:00
Sagi Shnaidman
75c4834273
Fix kube play annotations
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-04-08 01:11:46 +03:00
Sagi Shnaidman
453be5c5fd
Add check and fixed for v5 network diff
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-04-08 01:11:46 +03:00
Sagi Shnaidman
ace1f5896a
Add pasta as default network mode after v5
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-04-08 01:11:46 +03:00
Sergey
7dce3c9c8e
Fix pasta networking idempotency for v5 ( #728 )
...
Fix #721
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-04-05 13:49:50 +03:00
nishipy
6e04b20bf4
Update the logic for deleting pods/containers in podman_play ( #727 )
...
* Add test case for deleting pod with podman_play
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update test case for deleting pod with podman_play
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Add tear_down_pods() for Podman 3.4.0 or later
Signed-off-by: nishipy <goodisonev4@gmail.com>
---------
Signed-off-by: nishipy <goodisonev4@gmail.com>
2024-03-28 13:31:56 +02:00
nishipy
44b2ce69e3
Add support for kube yaml files with multi-documents ( #724 )
...
* Add support for multi doc kube yaml
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update to skip yamllint
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update ignores for sanity tests
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update discover_pods()
Signed-off-by: nishipy <goodisonev4@gmail.com>
* Update test for podman_play
Signed-off-by: nishipy <goodisonev4@gmail.com>
---------
Signed-off-by: nishipy <goodisonev4@gmail.com>
2024-03-23 13:55:44 +02:00
Dawa Ometto
890ae35360
Update podman_login.py ( #725 )
...
Make tlsverify and certdir parameters no longer mutually exclusive.
Signed-off-by: Dawa Ometto <d.ometto@gmail.com>
2024-03-19 13:38:19 +02:00
Sagi Shnaidman
f2dcda6a1d
Remove unnecessary quotes in podman_container_exec module
...
Fix #714
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-02-28 17:55:19 +02:00
Sagi Shnaidman
de490b8b37
Fix wrong return data type in podman_image_info
...
Fix #689
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-02-19 15:08:52 +02:00
Sagi Shnaidman
90ac7e19ac
Return data for podman exec module
...
And add "executable" parameter to be aligned with other modules
Fix #711
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-02-18 18:41:14 +02:00
Sagi Shnaidman
129710a383
Fix broken info of pods in Podman v5
...
Fixing issue from:
https://github.com/containers/podman/pull/21514
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-02-18 13:13:57 +02:00
Sagi Shnaidman
42f10519ec
Fix podman pod v5 broken info issue
...
Fix breakig change introduced in Podman v5:
https://github.com/containers/podman/pull/21514
Related-to: #712
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-02-18 00:01:09 +02:00
Adam Williamson
7d7445d29b
podman pod info: handle return being list in Podman 5 ( #713 )
...
Fixes #712
Podman 5 changed the output of `podman pod info` (when run on a
single pod) from being a dict to being a list of dicts:
https://github.com/containers/podman/pull/21514
this should handle both ways. Unfortunately not sure how to add
a test for this as I can't see a unit test that mocks the output
of the command, only the integration test that gets real live
output, and I'm not sure how to get that test run with Podman 5.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-02-17 21:47:19 +02:00
Dan Campbell
efbfba7c3c
Fix broken example for podman_generate_systemd ( #708 )
...
Change the postgres_local example to use the scope of "user" so
the unit file saved to ~/.config/systemd/user/ will be used by systemd.
Signed-off-by: Dan Campbell <dan@compiledworks.com>
2024-02-04 11:58:28 +02:00
Sergey
da420f96d9
Add secrets info module ( #706 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-01-29 00:14:51 +02:00
ant-bl
2e661d1700
Update env_file to accept a list of files instead of a single file ( #702 )
...
* Update env_file to accept a list of files instead of a single file
Signed-off-by: antoine <antoine.blin@gandi.net>
* Update doc: add alias env_files
Signed-off-by: antoine <antoine.blin@gandi.net>
* Update plugins/module_utils/podman/podman_container_lib.py
Use real arg name and not alias
Co-authored-by: Sergey <6213510+sshnaidm@users.noreply.github.com>
---------
Signed-off-by: antoine <antoine.blin@gandi.net>
Co-authored-by: Sergey <6213510+sshnaidm@users.noreply.github.com>
2024-01-25 14:04:40 +02:00
Sergey
35cac483c9
Add new arguments to podman status commands ( #703 )
...
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-01-23 11:28:55 +02:00
Sergey
1fe9642576
Add option to parse CreateCommand easily for diff calc ( #698 )
...
We have a few calculations of given options and arguments from
CreateCommand, so let's do it in a more convinient way.
Define a function _createcommand which receives an argument
and returns all values for it in a command line of Podman.
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2024-01-11 15:30:24 +02:00
Andreas Seidl
eab26e5eba
Fix idempotency for podman_network ( #699 ) ( #700 )
...
* Fix idempotency for podman_network when explicitly definining disable_dns parameter for Podman driver other than type bridge
Signed-off-by: andreas.seidl <andreas.seidl@r-kom.de>
2024-01-11 14:13:32 +02:00
Sergey
f9cbca5582
Add idempotency for podman_secret ( #693 )
...
* Add idempotency for podman_secret
Fix #692
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
* Add lables support for podman_secret
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
---------
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-12-23 18:52:25 +02:00
Apollo3zehn
e4cf9f6133
Fix example name ( #687 )
...
Signed-off-by: Apollo3zehn <git@m1.apollo3zehn.net>
Co-authored-by: Apollo3zehn <git@m1.apollo3zehn.net>
2023-12-11 14:20:59 +02:00
Alessandro Fulgini
4d233a4146
Alias generate systemd options stop_timeout and time ( #685 )
...
* Alias generate systemd options `stop_timeout` and `time`
Closes #683
Option `time` was used before Podman v4, then it was renamed
`stop_timeout`.
Accept both names (the newer takes prirority) and set the correct
CLI argument name based on the detected Podman version.
Signed-off-by: Alessandro Fulgini <fuljo97@gmail.com>
* Fix typo in parameter name `--stop-timeout`
Signed-off-by: Alessandro Fulgini <fuljo97@gmail.com>
* Don't delete temporary variables at the end of block
Co-authored-by: Sergey <6213510+sshnaidm@users.noreply.github.com>
---------
Signed-off-by: Alessandro Fulgini <fuljo97@gmail.com>
Co-authored-by: Sergey <6213510+sshnaidm@users.noreply.github.com>
2023-12-07 11:24:28 +02:00
Sergey
e245e332f0
Fix volume inspection by name in podman_volume ( #684 )
...
Fix #661
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-12-03 20:54:52 +02:00
Sergey
edcb13dd8a
Fail if systemd generation failed and it's explicitly set ( #682 )
...
Fix #675
If we explicitly set to generate systemd with parameters, fail
the module if the generation failed.
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-11-30 16:04:51 +02:00
Sergey
c3b38b54a9
Catch exceptions when no JSON output in podman_image ( #680 )
...
Fix #676
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-11-30 15:12:38 +02:00
Sergey
2d006399b0
Fix idempotency when using 0.0.0.0 in ports ( #679 )
...
Fix #678
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2023-11-30 15:12:17 +02:00