Commit Graph

314 Commits

Author SHA1 Message Date
Fabian von Feilitzsch
0f3fef927e SelfSubjectAccessReviews now work with the k8s module (#237)
* SelfSubjectAccessReviews now work with the k8s module
2020-09-28 12:20:01 -04:00
Abhijeet Kasurde
5de49373b7 k8s_cluster_info: new module (#160)
Get information about k8s APIs

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-09-28 14:01:37 +05:30
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
Timothy Appnel
70a4b068ff Fixed CHANGELOG underlining 2020-09-27 15:29:44 -04:00
Timothy Appnel
d06dfc37d4 Added release dates to CHANGELOG 2020-09-27 15:24:46 -04:00
tima
833ac7c4b0 Merge pull request #99 into main 2020-09-22 17:00:12 -04:00
tima
e85fd25eed Fixed merge conflict in module_utils/raw during rebase 2020-09-22 16:59:54 -04:00
Alan Rominger
7e31231e7b Add execution environment metadata (#211)
Add python requirements
Add kubectl system requirement strictly for Fedora
2020-09-22 14:28:26 -05:00
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
Shaun Smiley
608734a6c9 Merge pull request #3 from XevoInc/merge-upstream
Merge upstream
2020-09-18 14:00:00 -07:00
Shaun Smiley
46fdbe0eff Merge remote-tracking branch 'upstream/main' into merge-upstream 2020-09-18 13:22:53 -07:00
Abhijeet Kasurde
51cadb7150 Replace KubernetesAnsibleModule class with dummy class (#227)
* Make an AnsibleMixin parent class for every module
* Replace KubernetesAnsibleModule class with dummy class
* Modified k8s_log
* k8s_exec refactor
* k8s_info refactor
* k8s_service refactor
* k8s_scale refactor
* Fix integration tests
* Add a warning about the deprecation of KubernetesAnsibleModule
* Add a dummy class for backward compatibility

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-09-16 20:35:05 +05:30
Fabian von Feilitzsch
28dcf76cfb Merge pull request #228 from fabianvf/ignore-diff-with-warning
Do not mark task as changed when diff is irrelevant
2020-09-15 14:42:08 -04:00
Fabian von Feilitzsch
1ea0fa1c70 Merge pull request #229 from Akasurde/helm_kubeconfig_fix
helm: Support vaulted kubeconfig
2020-09-15 14:41:54 -04:00
Fabian von Feilitzsch
571406ce47 Merge pull request #224 from Akasurde/handle_exc
handle exception raised due to DynamicClient
2020-09-15 14:40:59 -04:00
Abhijeet Kasurde
f2b1b267a5 helm: Support vaulted kubeconfig
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-09-15 13:56:43 +05:30
Fabian von Feilitzsch
0afe40e657 Do not mark task as changed when diff is irrelevant
When the diff contains changes only to the fields `metadata.generation`
or `metadata.resourceVersion`, do not mark the task as changed. Instead,
   emit a warning highlighting that the API itself may not be
   idempotent, but that there was no meaningful difference between the
   desired and actual state of the resource.
2020-09-14 15:51:08 -04:00
Abhijeet Kasurde
527859c9cd Refactor module_utils (#223)
Moved a bunch of common things to module_utils.
2020-09-08 20:37:16 +05:30
Abhijeet Kasurde
ffb7032dc2 handle exception raised due to DynamicClient
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-09-07 19:03:28 +05:30
Abhijeet Kasurde
c49f896fa0 helm: Add replace parameter (#214)
Fixes: #106

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-09-07 12:42:00 +05:30
Adam Miller
60c762bb37 fix downstream collection name kubernetes.base -> kubernetes.core (#213)
Signed-off-by: Adam Miller <admiller@redhat.com>
2020-08-31 09:58:06 +05:30
Abhijeet Kasurde
23f9588732 kubectl: correct usage in console (#204)
kubectl exec is printed twice in the console log.

Fixes: #200

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-08-31 09:29:27 +05:30
Jeff Geerling
c6fe654853 Merge pull request #212 from maxamillion/downstream/fix_ci_round_2
fix downstream ci names (round 2)
2020-08-28 14:28:32 -05:00
Adam Miller
d17858c6dd fix downstream ci names
Signed-off-by: Adam Miller <admiller@redhat.com>
2020-08-28 13:58:39 -05:00
Jeff Geerling
e9d8bf703b Merge pull request #210 from maxamillion/heml/fix_sanity_tests
fix CI tests, helm picked up the same argspec addition as some k8s mo…
2020-08-28 07:21:09 -05:00
Adam Miller
827807392d fix CI tests, helm picked up the same argspec addition as some k8s modules
Signed-off-by: Adam Miller <admiller@redhat.com>
2020-08-27 22:08:01 -05:00
Fabian von Feilitzsch
91c16216cc Merge pull request #208 from fabianvf/inventory_set_connection_plugin
Set the connection plugin and transport separately, add tests
2020-08-27 12:14:53 -04:00
Jeff Geerling
604cae993b Merge pull request #197 from maxamillion/downstream_build
add Makefile and downstream build script
2020-08-27 10:41:28 -05:00
Jeff Geerling
20bd37fab2 Merge pull request #206 from geerlingguy/stale-exempt-labels
PR #196 follow-up: Adjust stale bot exemptLabels.
2020-08-27 08:17:35 -05:00
Adam Miller
8c7ea12024 only test downstream against Ansible 2.9.x
Signed-off-by: Adam Miller <admiller@redhat.com>
2020-08-26 15:10:29 -05:00
Fabian von Feilitzsch
1c5a8fd49f Set the connection plugin and transport separately, add tests 2020-08-26 14:48:40 -04:00
Adam Miller
ec74038a1e need flake8 setup.cfg for downstream tests also
Signed-off-by: Adam Miller <admiller@redhat.com>
2020-08-26 13:07:14 -05:00
Adam Miller
f205348091 fix downstream molecule tests
Signed-off-by: Adam Miller <admiller@redhat.com>
2020-08-26 12:55:56 -05:00
Adam Miller
b5eba332c9 fix makefile
Signed-off-by: Adam Miller <admiller@redhat.com>
2020-08-26 11:49:50 -05:00
Adam Miller
f9fc0f7d69 fix README, use Makefile everywhere
Signed-off-by: Adam Miller <admiller@redhat.com>
2020-08-26 11:33:00 -05:00
Jeff Geerling
5f34d84f67 PR #196 follow-up: Adjust stale bot exemptLabels. 2020-08-26 11:19:05 -05:00
Adam Miller
3885eb1a84 add Makefile, downstream build script, enable CI for downstream
Signed-off-by: Adam Miller <admiller@redhat.com>
2020-08-26 09:39:42 -05:00
Abhijeet Kasurde
16059a8111 k8s_*: Group argument_spec accroding to usage (#199)
Partially fix #36

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-08-26 19:48:07 +05:30
Abhijeet Kasurde
d39fcfc2d8 k8s_*: Add support for vaulted kubeconfig and src (#193) 2020-08-26 10:22:47 +05:30
Jeff Geerling
b4a3ef3409 Merge pull request #194 from geerlingguy/43-zuul-new-versions
Issue #43: Update README to reflect new Zuul automated tag build and push.
2020-08-25 10:07:08 -05:00
Fabian von Feilitzsch
2d50bb09fb Merge pull request #203 from Akasurde/k8s_info
k8s_info: Update documentation
2020-08-24 12:07:07 -04:00
Fabian von Feilitzsch
fec3d17640 Merge pull request #196 from geerlingguy/53-probot-stale
Issue #53: Add probot/stale bot configuration to ID and close stale issues.
2020-08-24 11:23:25 -04:00
Abhijeet Kasurde
ab77b79f9c k8s_info: Update documentation
* Used name_option doc_fragments
* Updated doc formatting
* Updated k8s_info example for custom resource

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-08-24 15:47:00 +05:30
Jeff Geerling
7acd460bdc Issue #53: Add probot/stale bot configuration to ID and close stale issues. 2020-08-18 10:46:35 -05:00
Jeff Geerling
d3dd21b67e Merge pull request #191 from Akasurde/contrib
Add contrib page
2020-08-18 10:34:28 -05:00
Jeff Geerling
4eea323bb6 Issue #43: Update README to reflect new Zuul automated tag build and push. 2020-08-18 10:26:00 -05:00
Abhijeet Kasurde
f58e6489ce Add contrib page
Fixes: #120

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-08-12 17:57:54 +05:30
Abhijeet Kasurde
4f33ba7b39 raw: Handle exception raised by underlying APIs (#180)
kind can be provided by number of ways. It is diffcult to
find all cases. So, handle exceptions raised by underlying
APIs and provide good error message to user.

Fixes: ansible/ansible#63652

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-08-11 11:12:53 +05:30
Jeff Geerling
666b75eba4 Fix typo in Readme. (#182) 2020-08-06 09:57:24 +05:30