armada/tools/helm-hapi.sh

14 lines
597 B
Bash
Executable File

#!/usr/bin/env bash
HELM_BRANCH='release-2.12'
git clone https://github.com/helm/helm ./helm -b $HELM_BRANCH
python -m grpc_tools.protoc -I helm/_proto --python_out=. --grpc_python_out=. helm/_proto/hapi/chart/*
python -m grpc_tools.protoc -I helm/_proto --python_out=. --grpc_python_out=. helm/_proto/hapi/services/*
python -m grpc_tools.protoc -I helm/_proto --python_out=. --grpc_python_out=. helm/_proto/hapi/release/*
python -m grpc_tools.protoc -I helm/_proto --python_out=. --grpc_python_out=. helm/_proto/hapi/version/*
find ./hapi/ -type d -exec touch {}/__init__.py \;
rm -rf ./helm