From 635f6c1ef2420434ef37aaf74060e2d4d2b94805 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 14 Oct 2020 20:21:36 +0200 Subject: [PATCH] ci: add k3d cluster for kubernetes controller tests --- azure-pipelines.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 28cbf55b9..8652bc56d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -169,9 +169,17 @@ stages: dockerComposeFile: 'scripts/ci.docker-compose.yml' action: 'Run services' buildImages: false + - task: CmdLine@2 + displayName: Install K3d and prepare + input: + script: | + wget -q -O - https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash + k3d cluster create + k3d kubeconfig write -o ~/.kube/config --overwrite - task: CmdLine@2 inputs: script: | + export PB_TEST_K8S=true sudo pip install -U wheel pipenv pipenv install --dev - task: CmdLine@2 @@ -203,9 +211,17 @@ stages: dockerComposeFile: 'scripts/ci.docker-compose.yml' action: 'Run services' buildImages: false + - task: CmdLine@2 + displayName: Install K3d and prepare + input: + script: | + wget -q -O - https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash + k3d cluster create + k3d kubeconfig write -o ~/.kube/config --overwrite - task: CmdLine@2 inputs: script: | + export PB_TEST_K8S=true sudo pip install -U wheel pipenv pipenv install --dev - task: DockerCompose@0