Abhijeet Kasurde
91b80b1d1d
Enable black formatting test ( #259 )
...
Enable black formatting test
SUMMARY
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
plugins/action/k8s_info.py
plugins/connection/kubectl.py
plugins/doc_fragments/helm_common_options.py
plugins/doc_fragments/k8s_auth_options.py
plugins/doc_fragments/k8s_delete_options.py
plugins/doc_fragments/k8s_name_options.py
plugins/doc_fragments/k8s_resource_options.py
plugins/doc_fragments/k8s_scale_options.py
plugins/doc_fragments/k8s_state_options.py
plugins/doc_fragments/k8s_wait_options.py
plugins/filter/k8s.py
plugins/inventory/k8s.py
plugins/lookup/k8s.py
plugins/lookup/kustomize.py
plugins/module_utils/ansiblemodule.py
plugins/module_utils/apply.py
plugins/module_utils/args_common.py
plugins/module_utils/client/discovery.py
plugins/module_utils/client/resource.py
plugins/module_utils/common.py
plugins/module_utils/exceptions.py
plugins/module_utils/hashes.py
plugins/module_utils/helm.py
plugins/module_utils/k8sdynamicclient.py
plugins/module_utils/selector.py
plugins/modules/helm.py
plugins/modules/helm_info.py
plugins/modules/helm_plugin.py
plugins/modules/helm_plugin_info.py
plugins/modules/helm_repository.py
plugins/modules/helm_template.py
plugins/modules/k8s.py
plugins/modules/k8s_cluster_info.py
plugins/modules/k8s_cp.py
plugins/modules/k8s_drain.py
plugins/modules/k8s_exec.py
plugins/modules/k8s_info.py
plugins/modules/k8s_json_patch.py
plugins/modules/k8s_log.py
plugins/modules/k8s_rollback.py
plugins/modules/k8s_scale.py
plugins/modules/k8s_service.py
tests/integration/targets/kubernetes/library/test_tempfile.py
tests/unit/module_utils/test_apply.py
tests/unit/module_utils/test_common.py
tests/unit/module_utils/test_discoverer.py
tests/unit/module_utils/test_hashes.py
tests/unit/module_utils/test_marshal.py
tests/unit/module_utils/test_selector.py
tox.ini
Reviewed-by: None <None>
Reviewed-by: Mike Graves <mgraves@redhat.com >
Reviewed-by: None <None>
2021-10-18 15:32:05 +00:00
abikouo
c65512357d
k8s - allow resource definition using generateName ( #238 )
...
k8s - allow resource definition using generateName
SUMMARY
#35
ISSUE TYPE
Feature Pull Request
COMPONENT NAME
k8s
ADDITIONAL INFORMATION
- name: create pod using generateName
k8s:
namespace: test
generate_name: pod-
definition:
kind: Pod
spec:
containers:
- name: py
image: python:3.7-alpine
- name: create pod using generateName
k8s:
namespace: test
definition:
kind: Pod
metadata:
generateName: pod-
spec:
containers:
- name: py
image: python:3.7-alpine
Reviewed-by: Mike Graves <mgraves@redhat.com >
Reviewed-by: None <None>
Reviewed-by: None <None>
2021-09-30 14:58:50 +00:00
Abhijeet Kasurde
688cff4ea8
k8s: document multi template feature ( #209 )
...
k8s: document multi template feature
SUMMARY
template parameter allows user to provide multiple
template files.
Fixes : #207
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE
Docs Pull Request
COMPONENT NAME
plugins/modules/k8s.py
Reviewed-by: None <None>
Reviewed-by: Mike Graves <mgraves@redhat.com >
Reviewed-by: None <None>
2021-08-19 14:52:46 +00:00
abikouo
4b682666f1
k8s - add label_selectors options ( #158 )
...
k8s - add label_selectors options
SUMMARY
k8s now support label_selectors options same as k8s_info
Resolves #43
ISSUE TYPE
Feature Pull Request
COMPONENT NAME
k8s
Reviewed-by: Mike Graves <mgraves@redhat.com >
Reviewed-by: None <None>
2021-07-29 09:56:34 +00:00
abikouo
46494a18bd
Revert "k8s ability to wait on arbitrary property ( #105 )" ( #133 )
...
This reverts commit 4ccb15d4ad .
2021-06-15 14:32:21 +02:00
abikouo
4ccb15d4ad
k8s ability to wait on arbitrary property ( #105 )
...
* missing implementation of jsonpath library
* not tested
* sanity
* save
* updates
* Update args_common.py
* lint validation
* fix
* Update k8s.py
* attribute should match for all
* select wait
* Revert "select wait"
This reverts commit a20a1f6f01 .
* sanity
* Update molecule/default/tasks/waiter.yml
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
* Update jsonpath_extractor.py
* Update k8s_wait_options.py
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
2021-06-15 10:44:26 +02:00
Mike Graves
5b5777d202
Split JSON patch out into a new module ( #99 )
...
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
2021-05-24 18:05:48 +05:30
abikouo
192cae1507
k8s - patch existing resource ( #90 )
...
* patch only
* add changelogs
* Rename 89-k8s-add-parameter-patch_only.yml to 90-k8s-add-parameter-patch_only.yml
* Update 90-k8s-add-parameter-patch_only.yml
* patch_only parameter changed to state=patched
* Update 90-k8s-add-parameter-patch_only.yml
* Update plugins/modules/k8s.py
Co-authored-by: Fabian von Feilitzsch <fabian@fabianism.us >
* Update molecule/default/tasks/patched.yml
Co-authored-by: John Mazzitelli <mazz@redhat.com >
* Update molecule/default/tasks/patched.yml
Co-authored-by: John Mazzitelli <mazz@redhat.com >
* sanity issue
Co-authored-by: Fabian von Feilitzsch <fabian@fabianism.us >
Co-authored-by: John Mazzitelli <mazz@redhat.com >
2021-05-19 11:03:11 +02:00
Mike Graves
01a0815e56
Replace openshift client with kubernetes client ( #96 )
...
* Replace openshift client with kubernetes client
This commit primarily just removes mentions of openshift from the docs
and updates the requirements. Most of the work to replace the client has
been done through the following commits:
edc48ee577
c214376cac
48c5170018
2b6a989cf9
* Add changelog fragment
* Update changelogs/fragments/96-replace-openshift-client.yaml
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
* Update plugins/modules/k8s.py
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
* Update plugins/modules/k8s_info.py
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
* Update plugins/modules/k8s_service.py
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
* Bump minimum kubernetes version to 12.0.0
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
2021-05-06 14:44:17 -04:00
abikouo
fc80540db5
drop python 2 support (breaking changes) ( #86 )
...
* drop python 2 support
* change log
* Update changelogs/fragments/86_drop_python2_support.yaml
Co-authored-by: Mike Graves <mgraves@redhat.com >
* Update k8s.py
Co-authored-by: Mike Graves <mgraves@redhat.com >
2021-05-04 18:07:22 +02:00
abikouo
963aa3fbe6
support merge_type`json` ( #83 )
...
Fixes #54
2021-04-28 09:06:43 -04:00
abikouo
361061c727
k8s loop flattening for template argument ( #49 )
...
* repo migration
* Update and rename 411-k8s-loop-flattening-and-continue_on_error.yaml to 49-k8s-loop-flattening-and-continue_on_error.yaml
* Update plugins/modules/k8s.py
Co-authored-by: Mike Graves <mgraves@redhat.com >
* split into multiple lines
* linting
* Update .gitignore
* Update template.yml
* merge
* Update template.yml
* deep copy environment
* deepcopy
* lint
* remove useless comment
* multiple definition
* tests update
* jmespath
* Update ci.yml
* Update template.yml
Co-authored-by: Mike Graves <mgraves@redhat.com >
2021-04-22 19:28:07 +02:00
Mike Graves
ba586a8ed8
Rename from community.kubernetes to kubernetes.core ( #6 )
...
* Rename from community.kubernetes to kubernetes.core
This goes through and renames community.kubernetes to kubernetes.core.
Most of this was generated from the downstream build script that was
used on the community repository, plus whatever hand edits I could find
that were needed.
The downstream build and test process has also been removed as this
repository is now the downstream repository.
* Fix CONTRIBUTING.md
2021-04-08 08:48:27 -04:00
Timothy Appnel
5fc3dd02bf
Adds a wait example to k8s.py ( #386 )
...
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
2021-03-18 14:48:07 +05:30
Gonéri Le Bouder
39660dd40e
refactoring for ansible_module.turbo integration ( #313 )
...
* refactoring for ansible_module.turbo integration
This refactoring prepares the integration of `ansible_module.turbo`
- Delay the loading of `common.py`, move the shared structure in
`args_common`.
- Avoid the use of one single object per module, this to increase the
amount of Python structure that we can cache.
- Cache the Kubernetes client.
See: https://github.com/ansible-collections/community.kubernetes/pull/270
Co-authored-by: Jill Rouleau <jill.rouleau@bespokess.com >
2021-03-16 17:16:18 -04:00
Abhijeet Kasurde
92e373239c
k8s: Add example for download and apply manifest from URL ( #359 )
...
Fixes : #352
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2021-02-03 21:16:44 +05:30
Mike Graves
a9b8cc68d5
Add support for configuring garbage collection ( #334 )
...
* Add support for configuring garbage collection
This surfaces deleteOptions functionality in a top-level delete_options
parameter.
* Add changelog fragment
* Remove kind and apiVersion from delete_options
* Add release version to docs
2021-01-12 14:17:18 -05:00
Gonéri Le Bouder
486a179c7a
add 3 doc-default-does-not-match-spec errors ( #325 )
...
Address the following error with the test-suite:
- plugins/modules/k8s.py:0:0: doc-default-does-not-match-spec: Argument 'append_hash' in argument_spec defines default as (False) but documentation defines default as (None)
- plugins/modules/k8s.py:0:0: doc-default-does-not-match-spec: Argument 'apply' in argument_spec defines default as (False) but documentation defines default as (None)
- plugins/modules/k8s_service.py:0:0: doc-default-does-not-match-spec: Argument 'apply' in argument_spec defines default as (False) but documentation defines default as (None)
2020-12-08 09:20:20 +05:30
Jeff Geerling
cbd3a2554e
Issue #260 : Sanity test 'compile' failing because of positional args. ( #261 )
...
* Issue #260 : Sanity test 'compile' failing because of positional args.
* Issue #260 : Run integration tests on older Python 3.6 still.
* Issue #260 : Add changelog fragment.
2020-10-09 10:17:52 -05:00
Timothy Appnel
f0dacc083c
Embedded docs clarifications and refinements. ( #258 )
...
* Another embedded docs clarifications in k8s_rollback
* Embedded docs clarification in helm_pljugin_info
* Embedded docs clarification in k8s
* More embedded docs clarification in k8s inventory plugin
* Fixed markdown formatting to RST in k8s_rollback
2020-10-08 15:32:54 -05:00
Abhijeet Kasurde
00fa8789a2
k8s: add support for template ( #230 )
...
Fixes : #37
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2020-09-28 11:35:26 +05:30
Abhijeet Kasurde
f03d2ce243
k8s_info: Add support for wait ( #235 )
...
Fixes : #18
2020-09-28 10:52:00 +05:30
Abhijeet Kasurde
308956b313
Replace KubernetesRawModule class ( #231 )
...
* Migrate from KubernetesRawModule to K8sAnsibleMixin
* Modified k8s.py
* Modified k8s_service.py
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2020-09-19 09:54:40 +05:30
Yaakov Selkowitz
9aa85e8eb5
Update openshift requirements in k8s module doc
2020-07-06 11:10:59 -04: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
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
Ö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
Jeff Geerling
7aa071c98f
Issue #49 : Remaining fixes from diff on auto-migrated collection.
2020-03-20 15:42:13 -05:00
Baptiste Mille-Mathias
9b821a9333
Fix examples to use from_yaml filter with lookup
2020-03-12 13:55:07 -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
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