Kubernetes Binaries Versions Inspector (k8s_bin_versions_inspector
) is a python module for verifying versions of CPython and OpenJDK binaries installed in the kubernetes cluster containers.
All development and testing process, should be done in prepared virtual machine, that is containing development environment for this project. Vagrant plugins, that are required to start virtual machine: vagrant-libvirt
, vagrant-reload
, vagrant-sshfs
.
cd env
vagrant up
vagrant ssh
To install dependencies for normal usage of script, run this command.
pip3 install -r env/requirements.txt
black src tests
pylint -d C0330 src
To running the automated tests is required to have properly configured kubernetes cluster, which is in the virtual machine, that is containing development environment.
PYTHONPATH=src pytest -vv -s tests
find -name __pycache__ -exec rm -Rf {} + find -name .pytest_cache -exec rm -Rf {} +
Example of the acceptable file format:
python: - 3.6.9 - 3.7.3 java: - 11.0.7
Commands to research for the paths of the software binaries in multiple docker images:
docker run --entrypoint /bin/sh python:buster -c "which python" docker run --entrypoint /bin/sh python:alpine -c "which python" docker run --entrypoint /bin/sh python:slim -c "which python" docker run --entrypoint /bin/sh python:2-buster -c "which python" docker run --entrypoint /bin/sh python:2-alpine -c "which python" docker run --entrypoint /bin/sh python:2-slim -c "which python" docker run --entrypoint /bin/sh ubuntu:bionic -c "apt-get update && apt-get install -y python && which python" docker run --entrypoint /bin/sh ubuntu:bionic -c "apt-get update && apt-get install -y python3 && which python3" docker run --entrypoint /bin/sh openjdk -c "type java"
List of features, that should be implemented:
-version
).