mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-12 12:32:05 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8538ffed3 | ||
|
|
bc168a5727 | ||
|
|
dc5a1e6dd1 | ||
|
|
72536fe286 |
10
.zuul.d/network-ee-sanity-tests_non-voting.yaml
Normal file
10
.zuul.d/network-ee-sanity-tests_non-voting.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
- project:
|
||||||
|
name: github.com/ansible-collections/kubernetes.core
|
||||||
|
check:
|
||||||
|
jobs:
|
||||||
|
- network-ee-sanity-tests:
|
||||||
|
voting: false
|
||||||
|
gate:
|
||||||
|
jobs:
|
||||||
|
- network-ee-sanity-tests:
|
||||||
|
voting: false
|
||||||
@@ -5,6 +5,14 @@ Kubernetes Collection Release Notes
|
|||||||
.. contents:: Topics
|
.. contents:: Topics
|
||||||
|
|
||||||
|
|
||||||
|
v2.2.2
|
||||||
|
======
|
||||||
|
|
||||||
|
Bugfixes
|
||||||
|
--------
|
||||||
|
|
||||||
|
- remove binary file from k8s_cp test suite (https://github.com/ansible-collections/kubernetes.core/pull/298).
|
||||||
|
|
||||||
v2.2.1
|
v2.2.1
|
||||||
======
|
======
|
||||||
|
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -1,5 +1,5 @@
|
|||||||
# Also needs to be updated in galaxy.yml
|
# Also needs to be updated in galaxy.yml
|
||||||
VERSION = 2.2.1
|
VERSION = 2.2.2
|
||||||
|
|
||||||
TEST_ARGS ?= ""
|
TEST_ARGS ?= ""
|
||||||
PYTHON_VERSION ?= `python -c 'import platform; print(".".join(platform.python_version_tuple()[0:2]))'`
|
PYTHON_VERSION ?= `python -c 'import platform; print(".".join(platform.python_version_tuple()[0:2]))'`
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ You can also include it in a `requirements.yml` file and install it via `ansible
|
|||||||
---
|
---
|
||||||
collections:
|
collections:
|
||||||
- name: kubernetes.core
|
- name: kubernetes.core
|
||||||
version: 2.2.1
|
version: 2.2.2
|
||||||
```
|
```
|
||||||
|
|
||||||
### Installing the Kubernetes Python Library
|
### Installing the Kubernetes Python Library
|
||||||
|
|||||||
@@ -494,3 +494,10 @@ releases:
|
|||||||
- 0-copy_ignore_txt.yml
|
- 0-copy_ignore_txt.yml
|
||||||
- _wait_for_label_selector_optional.yaml
|
- _wait_for_label_selector_optional.yaml
|
||||||
release_date: '2021-10-18'
|
release_date: '2021-10-18'
|
||||||
|
2.2.2:
|
||||||
|
changes:
|
||||||
|
bugfixes:
|
||||||
|
- remove binary file from k8s_cp test suite (https://github.com/ansible-collections/kubernetes.core/pull/298).
|
||||||
|
fragments:
|
||||||
|
- 298-remove-binary-file.yaml
|
||||||
|
release_date: '2021-12-07'
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ tags:
|
|||||||
- openshift
|
- openshift
|
||||||
- okd
|
- okd
|
||||||
- cluster
|
- cluster
|
||||||
version: 2.2.1
|
version: 2.2.2
|
||||||
build_ignore:
|
build_ignore:
|
||||||
- .DS_Store
|
- .DS_Store
|
||||||
- '*.tar.gz'
|
- '*.tar.gz'
|
||||||
|
|||||||
Binary file not shown.
@@ -34,50 +34,65 @@
|
|||||||
kubectl_path: "{{ kubectl_path }}"
|
kubectl_path: "{{ kubectl_path }}"
|
||||||
|
|
||||||
# Binary file
|
# Binary file
|
||||||
- name: Generate random content
|
|
||||||
set_fact:
|
- name: Create temp binary file
|
||||||
hello_arg: "{{ lookup('password', '/dev/null chars=ascii_lowercase,digits length=16') }}"
|
tempfile:
|
||||||
|
state: file
|
||||||
|
register: binfile
|
||||||
|
|
||||||
|
- name: Generate random binary content
|
||||||
|
command: dd if=/dev/urandom of={{ binfile.path }} bs=1M count=1
|
||||||
|
|
||||||
- name: Copy executable into Pod
|
- name: Copy executable into Pod
|
||||||
k8s_cp:
|
k8s_cp:
|
||||||
namespace: '{{ copy_namespace }}'
|
namespace: '{{ copy_namespace }}'
|
||||||
pod: '{{ pod_with_one_container.name }}'
|
pod: '{{ pod_with_one_container.name }}'
|
||||||
remote_path: /tmp/hello.exe
|
remote_path: /tmp/hello.exe
|
||||||
local_path: files/hello
|
local_path: "{{ binfile.path }}"
|
||||||
state: to_pod
|
state: to_pod
|
||||||
|
|
||||||
- name: Compare executable
|
- name: Get remote hash
|
||||||
kubectl_file_compare:
|
kubernetes.core.k8s_exec:
|
||||||
namespace: '{{ copy_namespace }}'
|
namespace: "{{ copy_namespace }}"
|
||||||
pod: '{{ pod_with_one_container.name }}'
|
pod: "{{ pod_with_one_container.name }}"
|
||||||
remote_path: /tmp/hello.exe
|
command: sha256sum -b /tmp/hello.exe
|
||||||
local_path: "{{ role_path }}/files/hello"
|
register: remote_hash
|
||||||
kubectl_path: "{{ kubectl_path }}"
|
|
||||||
args:
|
- name: Get local hash
|
||||||
- "{{ hello_arg }}"
|
command: sha256sum -b {{ binfile.path }}
|
||||||
|
register: local_hash
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- remote_hash.stdout.split()[0] == local_hash.stdout.split()[0]
|
||||||
|
|
||||||
|
- name: Generate tempfile
|
||||||
|
tempfile:
|
||||||
|
state: file
|
||||||
|
register: binfile
|
||||||
|
|
||||||
- name: Copy executable from Pod
|
- name: Copy executable from Pod
|
||||||
k8s_cp:
|
k8s_cp:
|
||||||
namespace: '{{ copy_namespace }}'
|
namespace: '{{ copy_namespace }}'
|
||||||
pod: '{{ pod_with_one_container.name }}'
|
pod: '{{ pod_with_one_container.name }}'
|
||||||
remote_path: /tmp/hello.exe
|
remote_path: /tmp/hello.exe
|
||||||
local_path: /tmp/hello
|
local_path: "{{ binfile.path }}"
|
||||||
state: from_pod
|
state: from_pod
|
||||||
|
|
||||||
- name: update executable permission
|
- name: Get remote hash
|
||||||
file:
|
kubernetes.core.k8s_exec:
|
||||||
path: /tmp/hello
|
namespace: "{{ copy_namespace }}"
|
||||||
mode: '0755'
|
pod: "{{ pod_with_one_container.name }}"
|
||||||
|
command: sha256sum -b /tmp/hello.exe
|
||||||
|
register: remote_hash
|
||||||
|
|
||||||
- name: Compare executable
|
- name: Get local hash
|
||||||
kubectl_file_compare:
|
command: sha256sum -b {{ binfile.path }}
|
||||||
namespace: '{{ copy_namespace }}'
|
register: local_hash
|
||||||
pod: '{{ pod_with_one_container.name }}'
|
|
||||||
remote_path: /tmp/hello.exe
|
- assert:
|
||||||
local_path: /tmp/hello
|
that:
|
||||||
kubectl_path: "{{ kubectl_path }}"
|
- remote_hash.stdout.split()[0] == local_hash.stdout.split()[0]
|
||||||
args:
|
|
||||||
- "{{ hello_arg }}"
|
|
||||||
|
|
||||||
# zip files
|
# zip files
|
||||||
- name: copy zip file into remote pod
|
- name: copy zip file into remote pod
|
||||||
|
|||||||
@@ -28,6 +28,6 @@ options:
|
|||||||
- Reads from the local file system. To read from the Ansible controller's file system, including vaulted files, use the file lookup
|
- Reads from the local file system. To read from the Ansible controller's file system, including vaulted files, use the file lookup
|
||||||
plugin or template lookup plugin, combined with the from_yaml filter, and pass the result to
|
plugin or template lookup plugin, combined with the from_yaml filter, and pass the result to
|
||||||
I(resource_definition). See Examples below.
|
I(resource_definition). See Examples below.
|
||||||
- Mutually exclusive with I(template) in case of M(k8s) module.
|
- Mutually exclusive with I(template) in case of M(kubernetes.core.k8s) module.
|
||||||
type: path
|
type: path
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user