mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-06-10 18:46:12 +00:00
k8scopy: rely on existing kubectl binary (#369)
k8scopy: rely on existing kubectl binary SUMMARY Signed-off-by: Abhijeet Kasurde akasurde@redhat.com ISSUE TYPE Bugfix Pull Request COMPONENT NAME molecule/default/roles/k8scopy/defaults/main.yml molecule/default/roles/k8scopy/tasks/main.yml molecule/default/roles/k8scopy/tasks/test_copy_directory.yml molecule/default/roles/k8scopy/tasks/test_copy_file.yml molecule/default/roles/k8scopy/tasks/test_copy_large_file.yml molecule/default/roles/k8scopy/tasks/test_multi_container_pod.yml molecule/default/tasks/lookup_kustomize.yml
This commit is contained in:
@@ -1,15 +1,5 @@
|
||||
---
|
||||
- block:
|
||||
- name: Download kubeclt executable used to compare results
|
||||
get_url:
|
||||
url: https://dl.k8s.io/release/v1.21.3/bin/linux/amd64/kubectl
|
||||
dest: "{{ kubectl_path }}"
|
||||
|
||||
- name: make kubectl executable
|
||||
ansible.builtin.file:
|
||||
path: "{{ kubectl_path }}"
|
||||
mode: "+x"
|
||||
|
||||
# Ensure namespace and create pod to perform tests on
|
||||
- name: Ensure namespace exists
|
||||
k8s:
|
||||
@@ -32,11 +22,6 @@
|
||||
- include_tasks: test_copy_large_file.yml
|
||||
|
||||
always:
|
||||
- name: Remove kubectl executable
|
||||
ansible.builtin.file:
|
||||
path: "{{ kubectl_path }}"
|
||||
state: absent
|
||||
ignore_errors: true
|
||||
|
||||
- name: Remove namespace
|
||||
k8s:
|
||||
|
||||
Reference in New Issue
Block a user