Skip to content

build: add k8s validation workflow #5

build: add k8s validation workflow

build: add k8s validation workflow #5

Workflow file for this run

name: Kubernetes Validation
on:
pull_request:
branches:
- main
env:
TUTOR_ROOT: ./.github/testing
jobs:
validation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install python reqs
run: |
pip install -r ./.github/testing/requirements.txt
pip install -e .
tutor plugins list
pip show setuptools
- name: Tutor config save
run: tutor config save
- name: Run Kubernetes tools
uses: alexellis/arkade-get@master
with:
kubectl: latest
kustomize: latest
helm: latest
kubeconform: latest
- name: Check k8s manifests
run: |
kustomize build $TUTOR_ROOT/env | kubeconform -strict -ignore-missing-schemas -kubernetes-version latest