DNM:nriplugin: env var for isolated cpus #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI E2E | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
pull_request: | |
branches: | |
- 'main' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
e2e-ci: | |
runs-on: ubuntu-latest | |
env: | |
MIXED_CPUS_CONTAINER_IMAGE: quay.io/titzhak/mixedcpus:ci | |
RUNTIME: docker | |
E2E_SHARED_CPUS: 0 | |
steps: | |
- name: checkout sources | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: setup golang | |
uses: actions/setup-go@v2 | |
id: go | |
with: | |
go-version: 1.20.3 | |
- name: show tool versions | |
run: | | |
go version | |
kind version | |
- name: run unit-tests | |
run: | | |
make test-unit | |
- name: build test binary | |
run: | | |
make build-e2e | |
- name: build image | |
run: | | |
MIXED_CPUS_CONTAINER_IMAGE=${MIXED_CPUS_CONTAINER_IMAGE} RUNTIME=${RUNTIME} make image | |
- name: create K8S kind cluster | |
run: | | |
# kind is part of 20.04 image, see: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md | |
# kind image used for this setup is under the config.yaml file | |
kind create cluster --config=test/kind/config.yaml | |
kind load docker-image ${MIXED_CPUS_CONTAINER_IMAGE} | |
- name: label workers | |
run: | | |
kubectl label node kind-worker kind-worker2 node-role.kubernetes.io/worker="" | |
- name: deploy mixed-cpus plugin | |
run: | | |
make deploy | |
- name: wait for daemonset to be ready | |
run: | | |
make e2e-wait-for-ds | |
- name: setup-info | |
run: | | |
kubectl describe -l app=mixedcpus-plugin daemonsets || : | |
kubectl describe nodes || : | |
- name: run e2e test | |
run: | | |
make test-e2e |