Skip to content

style: run pre-commit on all files #211

style: run pre-commit on all files

style: run pre-commit on all files #211

---
name: Kubernetes CI
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
lint:
name: Lint manifests
strategy:
fail-fast: false
matrix:
kubernetes-version:
- '1.30'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: '1.22'
- name: Install kubectl-validate
run: go install -ldflags='-s -w' -race -trimpath sigs.k8s.io/kubectl-validate@latest
- name: Lint manifests
run: |-
kubectl-validate kubernetes/manifests/ \
--local-crds kubernetes/crds/ \
--version '${{ matrix.kubernetes-version }}'