diff --git a/.github/workflows/kubernetes_engine_test.yaml b/.github/workflows/kubernetes_engine_test.yaml index 1d49865bff..83924a742b 100644 --- a/.github/workflows/kubernetes_engine_test.yaml +++ b/.github/workflows/kubernetes_engine_test.yaml @@ -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/kind@v0.20.0 + - 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" \ No newline at end of file diff --git a/acto/kubernetes_engine/kind.py b/acto/kubernetes_engine/kind.py index 510b25b44d..cca097973b 100644 --- a/acto/kubernetes_engine/kind.py +++ b/acto/kubernetes_engine/kind.py @@ -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')