Commit Graph

42 Commits

Author SHA1 Message Date
Fabian von Feilitzsch
9ccec43c6e Merge pull request #84 from willthames/k8s_apply_check_mode_fix
K8s apply check mode fix
2020-05-15 12:58:40 -04:00
Jeff Geerling
aad3ec7ad5 Add version_added to docs for each of the new collection modules. 2020-05-14 09:39:17 -05:00
Jeff Geerling
3e60ccacc3 Fixes #96: Sanity test finds incorrect deprecated usage. 2020-05-14 09:20:00 -05:00
Örjan Sjöholm
f45d33224f Remove ANSIBLE_METADATA
The meta data field is deprecated and is not used anymore.

See ansible-collections/overview#57 for more details.
2020-05-14 14:25:07 +02:00
Will Thames
34137c40c2 Fix apply patching results in check mode
apply_object returns only the patch - we need to actually
apply the patch to the existing object.

Fixes ansible/ansible#66780
2020-05-04 18:48:13 +10:00
LucasBoisserie
1a23994448 Add helm_repository module and fix review suggestion 2020-04-25 12:24:26 +02:00
LucasBoisserie
e89aa1c692 Fix englist grammar errors and rename modules to helm and helm_info 2020-04-23 16:29:34 +02:00
LucasBoisserie
438a30bd8e Remove Helm 2 support and add tests for helm_cli_info 2020-04-23 15:52:12 +02:00
LucasBoisserie
2e1b0f6817 t# This is a combination of 2 commits.
Add requested changes for helm
2020-04-23 15:52:12 +02:00
LucasBoisserie
720326ebb4 Add helm_cli & helm_cli_info 2020-04-23 15:52:12 +02:00
Fabian von Feilitzsch
0f87f2b826 Fix linting errors 2020-03-31 15:14:07 -04:00
Fabian von Feilitzsch
fe6480594e k8s_log no longer attempts to parse log as JSON
Fixes #68

Rather than relying on the default serialization logic (which attempts
    to parse a log as JSON and then load it into a wrapper class), we
now simply return the raw log data as expected. The previous behavior
worked in many cases because the log was serialized into a JSON string,
       but in the case of #68 the log was loaded as a JSON float, which
       made the error handling fail to fallback to returning the raw
       data.
2020-03-31 14:52:52 -04:00
Jeff Geerling
7aa071c98f Issue #49: Remaining fixes from diff on auto-migrated collection. 2020-03-20 15:42:13 -05:00
Jeff Geerling
78902af34a Merge pull request #56 from ansible-collections/49-missing-pr-65424
Fix examples to use from_yaml filter with lookup
2020-03-12 14:27:15 -05:00
Jeff Geerling
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 Geerling
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-Mathias
9b821a9333 Fix examples to use from_yaml filter with lookup 2020-03-12 13:55:07 -05:00
Fabrice Rabaute
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 Thames
d1c0b3a00d Add exception handling when retrieving k8s client 2020-03-12 13:44:06 -05:00
Danilo Riecken P. de Morais
3693656559 Fix docs for kubectl.py 2020-03-12 13:14:20 +01:00
Brian Coca
b75d6b7cc9 warn about disclosure when using certain options 2020-03-11 11:50:48 -04: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
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
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
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
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
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 Geerling
18fb76c695 Fixes #13: Fix missing 'elements' in list argument spec. 2020-02-11 16:38:05 -06:00
Jeff Geerling
99dcbcc32f Issue #2: Ignore return-syntax-error for now. 2020-01-30 16:42:22 -06:00
Jeff Geerling
21770a4fe2 Issue #2: Get the rest of the documentation errors fixed. 2020-01-30 16:35:24 -06:00
Jeff Geerling
3cba5969cc Fixes #5: Use proper FQCN for doc fragment refs. 2020-01-30 15:45:30 -06:00
Jeff Geerling
8e5a74f16a Issue #5: Add missing type on k8s_resource_options doc fragment. 2020-01-30 15:37:46 -06:00
Jeff Geerling
49fe926bb4 Issue #2, Issue #5: Migrate doc_fragments, fix missing types in docs. 2020-01-30 15:28:30 -06:00
Jeff Geerling
d94dd72ae6 Issue #1, Issue #2: Move more content into collection, fix tests. 2020-01-30 13:51:43 -06:00
Jeff Geerling
4b6fdb1615 Issue #1: Restructure role into collection using content_collector. 2020-01-30 10:50:44 -06:00