1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
clean:
rm -rfv magnum_cluster_api/charts/cluster-autoscaler
vendor: clean
helm repo add autoscaler https://kubernetes.github.io/autoscaler
helm repo update
helm fetch autoscaler/cluster-autoscaler --version 9.29.1 --untar --untardir magnum_cluster_api/charts
patch -p0 magnum_cluster_api/charts/cluster-autoscaler/templates/clusterrole.yaml < hack/add-omt-to-clusterrole.patch
poetry:
pipx install poetry
build: vendor poetry
poetry build
install: build poetry
poetry install
unit-tests: install poetry
poetry run pytest magnum_cluster_api/tests/unit/
functional-tests: install poetry
poetry run pytest magnum_cluster_api/tests/functional/
|