Skip to content

Commit

Permalink
build: add k8s validation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Apr 23, 2024
1 parent d0eb742 commit 0b7ce34
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/testing/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DRYDOCK_INIT_JOBS: true
K8S_NAMESPACE: testing-openedx
PLUGINS:
- forum
- mfe
- minio
- drydock
1 change: 1 addition & 0 deletions .github/testing/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tutor[full]<18
39 changes: 39 additions & 0 deletions .github/workflows/validation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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

0 comments on commit 0b7ce34

Please sign in to comment.