Skip to content

Commit

Permalink
Install kind and minikube in the github action for cluster setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeng21 committed Oct 16, 2023
1 parent 7c47db9 commit 21be516
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/kubernetes_engine_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
make
- name: Install Kind
run: |
go install sigs.k8s.io/[email protected]
- name: Install minikube
run: |
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
- name: Run unittest
run: |
pytest -m "kubernetes_engine"
7 changes: 3 additions & 4 deletions acto/kubernetes_engine/kind.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,9 @@ def create_cluster(self, name: str, kubeconfig: str):
logging.debug(f.read())
raise e

# comment out to pass the testing for cluster set up
# if self.posthooks:
# for posthook in self.posthooks:
# posthook(apiclient=apiclient)
if self.posthooks:
for posthook in self.posthooks:
posthook(apiclient=apiclient)

def load_images(self, images_archive_path: str, name: str):
logging.info('Loading preload images')
Expand Down

0 comments on commit 21be516

Please sign in to comment.