Skip to content

Bump k8s.io/client-go from 0.35.3 to 0.36.0 #11

Bump k8s.io/client-go from 0.35.3 to 0.36.0

Bump k8s.io/client-go from 0.35.3 to 0.36.0 #11

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Check formatting
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "Files not formatted:"
echo "$unformatted"
exit 1
fi
test:
needs: format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: go test -v ./...
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: go build -o kubernetes-eager-oom-killer .
helm-validate:
runs-on: ubuntu-latest
strategy:
matrix:
mode: [kubelet, cgroup]
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4
- name: Install kubeconform
run: |
curl -fsSL https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar xz
sudo mv kubeconform /usr/local/bin/
- name: Render and validate (${{ matrix.mode }} mode)
run: |
helm template test-release ./helm --set mode=${{ matrix.mode }} > rendered.yaml
echo "--- Rendered manifests (${{ matrix.mode }} mode) ---"
cat rendered.yaml
echo "--- Validating ---"
kubeconform -strict -summary rendered.yaml