ci: add k3d cluster for kubernetes controller tests

This commit is contained in:
Jens Langhammer 2020-10-14 20:21:36 +02:00
parent 18da7565c2
commit 635f6c1ef2
1 changed files with 16 additions and 0 deletions

View File

@ -169,9 +169,17 @@ stages:
dockerComposeFile: 'scripts/ci.docker-compose.yml' dockerComposeFile: 'scripts/ci.docker-compose.yml'
action: 'Run services' action: 'Run services'
buildImages: false 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 - task: CmdLine@2
inputs: inputs:
script: | script: |
export PB_TEST_K8S=true
sudo pip install -U wheel pipenv sudo pip install -U wheel pipenv
pipenv install --dev pipenv install --dev
- task: CmdLine@2 - task: CmdLine@2
@ -203,9 +211,17 @@ stages:
dockerComposeFile: 'scripts/ci.docker-compose.yml' dockerComposeFile: 'scripts/ci.docker-compose.yml'
action: 'Run services' action: 'Run services'
buildImages: false 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 - task: CmdLine@2
inputs: inputs:
script: | script: |
export PB_TEST_K8S=true
sudo pip install -U wheel pipenv sudo pip install -U wheel pipenv
pipenv install --dev pipenv install --dev
- task: DockerCompose@0 - task: DockerCompose@0