Abhijeet Kasurde
1f79a03edf
Adding sleep 0 as workaround when copying files with kubectl exec ( #378 )
...
Adding sleep 0 as workaround when copying files with kubectl exec
SUMMARY
For all the commands executed remotely, ** && sleep 0** will be
appended as a workaround for all the commands to terminate properly:
16def8050a/lib/ansible/plugins/action/__init__.py (L1243)
Workaround will be applied in case of kubectl exec too:
kubernetes.core/plugins/connection/kubectl.py
Line 300
in
b19ff9d
super(Connection, self).exec_command(cmd, in_data=in_data, sudoable=sudoable)
That is not the case in the case of the file copy executed by using kubectl exec, therefore it is possible for the kubectl exec to
terminate before dd finishes properly causing the file to be truncated.
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
changelogs/fragments/321-kubectl_sleep.yml
plugins/connection/kubectl.py
2022-02-14 06:21:25 +00:00
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
76a77aff1f
[connection plugin] add missing information from censored command ( #196 )
...
[connection plugin] add missing information from censored command
SUMMARY
when running playbook with vvv option, the censored command display is not reflecting the execution
ISSUE TYPE
Bugfix Pull Request
Reviewed-by: Mike Graves <mgraves@redhat.com >
Reviewed-by: None <None>
2021-08-04 13:56:27 +00:00
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
Abhijeet Kasurde
6b28ef3c17
kubectl: redacted token and password from console log ( #159 )
...
** SECURITY_FIX ** for CVE-2020-1753
kubectl connection plugin now redact kubectl_token and
kubectl_password from console log.
Fixes : #65
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2020-07-11 08:50:15 +05:30
Will Thames
59348066a0
F401: Remove unused imports
2020-06-09 19:00:21 +10:00
Jeff Geerling
7aa071c98f
Issue #49 : Remaining fixes from diff on auto-migrated collection.
2020-03-20 15:42:13 -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
d94dd72ae6
Issue #1 , Issue #2 : Move more content into collection, fix tests.
2020-01-30 13:51:43 -06:00