Commit Graph
791 Commits
Author SHA1 Message Date
Jeff GeerlingandGitHub 5924561afc Merge pull request #55 from ansible-collections/49-missing-pr-63219
k8s: persist refreshed tokens
2020-03-12 14:08:36 -05:00
Jeff GeerlingandGitHub c5ba4bb13a Merge pull request #54 from ansible-collections/49-missing-pr-60726
Add exception handling when retrieving k8s client
2020-03-12 14:07:23 -05:00
Baptiste Mille-MathiasandJeff Geerling 9b821a9333 Fix examples to use from_yaml filter with lookup 2020-03-12 13:55:07 -05:00
Fabrice RabauteandJeff Geerling 5cb93f16b6 k8s: persist refreshed tokens
When the ansible k8s module is refreshing the tokens from the local kube
config, it should save those token to the kube config file.

If this is not done, this might break the next kube client call as the
token in the local kube config file is not valid anymore and refreshing
can fail.

This commit is adding an env var K8S_AUTH_PERSIST_CONFIG that can be
used to set this flag to true (default is false, same as current
behavior).
2020-03-12 13:50:43 -05:00
Will ThamesandJeff Geerling d1c0b3a00d Add exception handling when retrieving k8s client 2020-03-12 13:44:06 -05:00
Jeff GeerlingandGitHub 49a0f2fecc Merge pull request #52 from danilo404/small-kubectl-docs-fix
Fix docs for kubectl.py
2020-03-12 09:11:04 -05:00
Danilo Riecken P. de Morais 3693656559 Fix docs for kubectl.py 2020-03-12 13:14:20 +01:00
Fabian von FeilitzschandGitHub afc6d9d753 Merge pull request #51 from ansible-collections/warn_cli_options
warn about disclosure when using certain options
2020-03-11 12:51:09 -04:00
Brian CocaandGitHub b75d6b7cc9 warn about disclosure when using certain options 2020-03-11 11:50:48 -04:00
Jeff GeerlingandGitHub 50557ac47c Merge pull request #47 from ansible-collections/code-coverage
Switch code coverage to use GitHub Action, tokenless
2020-03-05 09:32:06 -06:00
Jeff Geerling f5c9dcdd29 Use GitHub Action for code coverage reporting. 2020-03-05 09:26:46 -06:00
Jeff GeerlingandGitHub f7b951c475 Merge pull request #45 from ansible-collections/44-bare-var-fix
Fix bare variable deprecation warning and clean up test var
2020-03-04 14:38:12 -06:00
Jeff Geerling ac9ee36abb Fixes #44: Fix bare variable deprecation warning by cleaning up unnecessary variable. 2020-03-04 14:22:51 -06:00
Jeff Geerling 306bea8fe3 Ensure set -e is on molecule lint command. 2020-02-24 09:43:17 -06:00
Jeff GeerlingandGitHub 5491d5b4b2 Merge pull request #34 from ansible-collections/33-fix-sanity-checks
Fix failing CI tests by updating args in k8s_service
2020-02-21 11:13:34 -06:00
Jeff Geerling b32e2609c0 Issue #33: Fix python lint issue with spacing. 2020-02-20 10:54:24 -06:00
Jeff Geerling 5417177436 Fixes #33: Add missing args and docs for src and apply parameters in k8s_service.py. 2020-02-20 10:54:24 -06:00
Jeff GeerlingandGitHub 3deeabf2fe Merge pull request #32 from ansible-collections/30-molecule-3
Test with Molecule 3.0 alpha release.
2020-02-20 10:54:10 -06:00
Jeff Geerling c96f28581c Issue #30: Install molecule latest version since 3.0 is released. 2020-02-20 10:53:42 -06:00
Jeff Geerling eb81891577 Issue #30: Test with Molecule 3.0 alpha. 2020-02-19 11:03:14 -06:00
Jeff Geerling 6d49ef700a Issue #31: Add k8s_log and k8s_exec to list of modules in README. 2020-02-19 10:34:50 -06:00
Jeff GeerlingandGitHub 2ba9116fa7 Merge pull request #16 from fabianvf/k8s-log
Add k8s_log module
2020-02-18 14:38:36 -06:00
Fabian von Feilitzsch 875c5dfafe Update version 2020-02-18 15:20:30 -05:00
Fabian von Feilitzsch 14bc933a21 Add types to arguments 2020-02-18 13:26:56 -05:00
Fabian von Feilitzsch 75bf82d42c Fix paths to properly use FQCN where necessary 2020-02-18 12:04:29 -05:00
Fabian von Feilitzsch 4a29ce08de Add test 2020-02-17 16:17:53 -05:00
Fabian von Feilitzsch 373b0fc93c Also provide log_lines 2020-02-17 16:14:44 -05:00
Fabian von Feilitzsch b69e783b21 Add module for retrieving pod logs 2020-02-17 16:14:44 -05:00
Jeff GeerlingandGitHub 706770091c Merge pull request #14 from TristanCacqueray/master
Add k8s_exec module to execute command through the API
2020-02-14 14:16:17 -06:00
Tristan Cacqueray eb50e6f6cd Fix k8s_exec mode 2020-02-14 14:13:49 -05:00
Tristan Cacqueray 5f1b88ba6f Update test variable name and k8s_exec version_added attribute 2020-02-14 18:28:16 +00:00
Tristan Cacqueray ea0326eab1 Add integration test to molecule 2020-02-14 00:15:14 +00:00
Tristan Cacqueray fe88bc42cc Remove integration of integration test 2020-02-13 19:13:59 -05:00
Tristan Cacqueray b4c4a525aa Fix integration test 2020-02-13 19:13:59 -05:00
Tristan Cacqueray 9c80a5756c Integrate the integration test 2020-02-13 19:13:59 -05:00
Tristan Cacqueray 42cf348eeb Fix doc required and remove exec bit 2020-02-13 19:13:59 -05:00
Tristan Cacqueray 3bab767762 Fix doc-required-mismatch 2020-02-13 19:13:59 -05:00
Tristan Cacqueray c4f5d254ca Fix doc_fragments reference 2020-02-13 19:13:59 -05:00
Tristan Cacqueray c067a93886 Move k8s_exec test to a dedicated file 2020-02-13 19:13:59 -05:00
Tristan Cacqueray ad48d910fc Add k8s_exec test 2020-02-13 19:13:59 -05:00
Tristan Cacqueray 58d9bc13bb Add k8s_exec module to execute command through the API
This change adds a new module to execute command in a container
through the API:
https://docs.okd.io/latest/dev_guide/executing_remote_commands.html#protocol

Related: https://github.com/ansible/ansible/pull/55029
Closes: https://github.com/ansible-collections/kubernetes/issues/7
2020-02-13 19:13:59 -05:00
Jeff GeerlingandGitHub f0ecc4ceef Merge pull request #25 from ansible-collections/build-on-push-master
Build on pushes to the master branch
2020-02-13 17:42:51 -06:00
Jeff Geerling ae2a78815e Build on pushes to the master branch (including PR merges). 2020-02-13 17:12:25 -06:00
Jeff GeerlingandGitHub 53e2f971c7 Merge pull request #22 from ansible-collections/10-kind-tests
Use KinD cluster with Molecule for full integration tests
2020-02-13 16:19:12 -06:00
Jeff Geerling bc5121363b Issue #10: Grammar fixes for some test tasks. 2020-02-13 16:05:24 -06:00
Jeff Geerling a75593c36a Attempt to resolve #23 entirely without a json_query(). 2020-02-13 15:47:24 -06:00
Jeff Geerling 15641b6323 More debugging. 2020-02-13 15:29:45 -06:00
Jeff Geerling 6dafb4c1db Issue #10: Don't add dependent collections when installing community.general. 2020-02-13 15:05:22 -06:00
Jeff Geerling b2e639b823 Issue #10: Move integration tests into molecule playbook. 2020-02-13 15:03:47 -06:00
Jeff Geerling 1200460f26 Issue #10: Attempt setting up a KinD cluster in CI workflow.g 2020-02-13 15:01:47 -06:00