Commit Graph

230 Commits

Author SHA1 Message Date
Jeff Geerling
cc7d6afaf4 Prepare for release 0.11.1. 2020-07-01 14:31:12 -05:00
Jeff Geerling
efcf870743 Release 0.11.1 prep - add missing changelog fragments. 2020-07-01 14:26:43 -05:00
Jeff Geerling
4ffe372446 Merge pull request #146 from geerlingguy/145-fqcn
Fixes #145: Use FQCN in module docs and in plugin examples.
2020-07-01 12:21:20 -05:00
Jeff Geerling
881ca3d006 Fixes #145: Use FQCN in module docs and in plugin examples. 2020-06-29 16:25:42 -05:00
Abhijeet Kasurde
9fb808c7f3 k8s: Fix a bug when manifest file ends with '---' (#139)
Any kubernetes manifest file ending with '---' will
generate an error when applied using 'k8s' module.

Although this may not be 'legal' YAML, this is quite frequent,
specially on helm's generated manifest files.

migrated from https://github.com/ansible/ansible/pull/59160

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-06-25 09:11:03 +10:00
Jeff Geerling
10b332d0a3 Merge pull request #131 from geerlingguy/40-changelogs
Issue #40: Add changelog and fragments and document new changelog process.
2020-06-22 13:00:54 -05:00
Jeff Geerling
8674a449f7 Issue #40: Add PR and issue refs to fragments, and update CHANGELOG.rst. 2020-06-22 12:33:44 -05:00
Jeff Geerling
d3dc3e25a4 Issue #40: Manually override module namespace so extra info isn't output. 2020-06-18 15:16:10 -05:00
Jeff Geerling
938b01921a Issue #40: Generate CHANGELOG.rst in root dir. 2020-06-18 15:16:10 -05:00
Jeff Geerling
49e25c8eef Issue #40: gitignore the .plugin-cache.yml file. 2020-06-18 15:16:10 -05:00
Jeff Geerling
2dd81d6a39 Issue #40: Fix YAML lint issues from changelog configs. 2020-06-18 15:16:10 -05:00
Jeff Geerling
e80e3fa014 Issue #40: Add changelog and fragments and document new changelog process. 2020-06-18 15:16:10 -05:00
Jeff Geerling
e6773fdc66 Merge pull request #115 from Akasurde/i109
helm: Add option 'atomic'
2020-06-18 15:15:08 -05:00
Abhijeet Kasurde
5b7046470e helm: Add option 'atomic'
helm command provides option to remove installation on failure using
'atomic' flag.
This fix adds this parameter in helm module.

Fixes: #109

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-06-18 17:01:45 +05:30
Jeff Geerling
a9aab12e36 Merge pull request #130 from geerlingguy/129-2-11-sanity-ignore
Fixes #129: Add 2.11 sanity ignore file.
2020-06-16 15:45:18 -05:00
Jeff Geerling
c3796da76d Fixes #129: Add 2.11 sanity ignore file. 2020-06-16 15:19:05 -05:00
Jeff Geerling
9d46d7b7c8 Merge pull request #126 from geerlingguy/125-requires-ansible
Issue #125: Add requires_ansible version constraints to runtime.yml.
2020-06-16 15:06:21 -05:00
Abhijeet Kasurde
3004c8d3f0 Handle invalid kubeconfig parsing error (#119)
Provide message to user about invalid or empty kubeconfig
by handling exception raised by kubernetes Python API

Fixes: #90

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-06-16 11:03:08 +05:30
Jeff Geerling
0e92889d34 Merge pull request #123 from willthames/flake8
Flake8
2020-06-15 12:34:46 -05:00
Jeff Geerling
6588706a35 Merge pull request #127 from s-hertel/remove_unused_field
Remove action_groups_redirection entry from meta/runtime.yml
2020-06-13 06:07:52 -05:00
s-hertel
e3f138a530 Remove action_groups_redirection entry from meta/runtime.yml 2020-06-10 15:53:30 -04:00
Jeff Geerling
e55053c180 Issue #125: Add requires_ansible version constraints to runtime.yml. 2020-06-10 13:57:02 -05:00
Fabian von Feilitzsch
cdeab6303e Merge pull request #105 from willthames/improve_diffs
Use improved kubernetes diffs where possible
2020-06-09 12:21:14 -04:00
Will Thames
61c33724f3 Turn on flake8 checks in molecule tests 2020-06-09 19:24:37 +10:00
Will Thames
510a069de9 F841 remove unused variables 2020-06-09 19:00:21 +10:00
Will Thames
43ae9664fc W504 Move binary operator to start of line from end of line
PEP8 prefers binary operators at the start of a line
https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator
2020-06-09 19:00:21 +10:00
Will Thames
59348066a0 F401: Remove unused imports 2020-06-09 19:00:21 +10:00
Will Thames
1fb38fa982 Add setup.cfg
Start imposing some coding standards
2020-06-09 19:00:21 +10:00
Will Thames
4b7db6f7f9 Use improved kubernetes diffs where possible
Use information from strategic merges to improve
the quality of diffs, particularly for list items
(order no longer important, and adding/removing an
item from a list just shows that item in the diff,
not the whole list)
2020-06-08 19:35:59 +10:00
Abhijeet Kasurde
18dfb687e6 Handle set object retrieved from lookup plugin (#118)
api_groups is returned as "dict_keys()" which k8s lookip plugin does not handle.
Typecasting with list make it available to default callback plugin.
2020-06-05 12:18:57 +05:30
Abhijeet Kasurde
c8ef0ae1ad Minor refactor in helm_info and helm_repository (#117)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-06-05 12:16:56 +05:30
Abhijeet Kasurde
3078131db5 Minor doc fixes (#114)
* Spelling fixes
* Documentation update
* Example update to use FQCN

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-06-05 11:32:26 +05:30
Fabian von Feilitzsch
01399ea840 Merge pull request #110 from Akasurde/helm_fix
helm: minor code refactoring
2020-06-04 11:48:40 -04:00
Abhijeet Kasurde
9a952697a2 Minor documentation fix (#113)
Inventory plugin example should read 'api_key' instead of 'token'

Fixes: #101

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-06-02 15:49:04 +10:00
Jeff Geerling
86a2420efd Add helm and extra k8s modules to action_groups config. (#112) 2020-06-02 15:48:35 +10:00
Abhijeet Kasurde
641fbd92f5 helm: minor code refactoring
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-06-01 18:55:30 +05:30
Sloane Hertel
b46a5ee10e Add action groups for playbooks with module_defaults (#107)
* Keep backwards compatibility with playbooks using community.kubernetes content with module_defaults groups
2020-05-30 21:42:59 +10:00
Jeff Geerling
1ed3b659f3 Merge pull request #100 from willthames/scale_improvements
k8s_scale fixes
2020-05-29 10:27:10 -05:00
Will Thames
aa70416ae7 Fix scale wait and add tests
Move wait logic out of raw and into common and use that
logic in scale

Fix a few broken wait condition cases highlighted by scaling
up and down

Move scale-related tests into dedicated test task file

Additional service related tests
2020-05-29 23:38:30 +10:00
Will Thames
5aed26690d Update setup-kind action to 0.4.0
See https://github.com/engineerd/setup-kind/releases/tag/v0.4.0
for details of the EXDEV issue
2020-05-22 13:10:12 +10:00
Will Thames
beebe98ce6 Fix scale wait and add tests
Move wait logic out of raw and into common and use that
logic in scale

Fix a few broken wait condition cases highlighted by scaling
up and down

Move scale-related tests into dedicated test task file

Additional service related tests
2020-05-22 12:39:43 +10:00
Fabian von Feilitzsch
3bdfb4745a Merge pull request #94 from willthames/apply_nested_dict
Add test for openshift apply bug
2020-05-21 15:41:21 -04:00
Jeff Geerling
a519cee48e Merge pull request #103 from abadger/fix-docs
Fix the docs for the inventory plugins.
2020-05-21 13:14:00 -05:00
Will Thames
00200cf917 Add test for openshift apply bug
Fails using 0.11.0
2020-05-21 12:39:04 +10:00
Toshio Kuratomi
d9ece473dd Fix the docs for the inventory plugins.
Documenting the structure of the dictionary to pass in needs to be done
via suboptions rather than putting the structure directoly inside of the
toplevel option.
2020-05-20 07:48:35 -07:00
Fabian von Feilitzsch
2f7b55270d Merge pull request #35 from willthames/wait_conditions
Make deployments and daemonsets wait for pods to be ready
2020-05-19 13:38:35 -04:00
Jeff Geerling
8aea1b6589 Merge pull request #102 from willthames/remove_coverage_failure_check
Don't run project coverage on patches
2020-05-19 12:30:16 -05:00
Will Thames
e7736cb12d Don't run project coverage on patches
Coverage improvement for the project is not a requirement
of the collections projects. Don't fail builds on coverage reduction
2020-05-19 18:23:07 +10:00
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
Will Thames
35ffd0e431 Improve k8s Deployment and Daemonset wait conditions
Ensure that Deployments and Daemonsets properly await
all replicas to be available. Correctly handles the
subtle edge case when a service account no longer exists.

Note that this will dramatically slow Daemonset updates
2020-05-15 09:24:35 +10:00