Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

chore(deps): update kubernetes packages to v0.31.2 #188

chore(deps): update kubernetes packages to v0.31.2

chore(deps): update kubernetes packages to v0.31.2 #188

Workflow file for this run

name: pr-build
on:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Setup Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 1.20.x
- name: Restore Go cache
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: fmt
run: make fmt
- name: vet
run: make vet
- name: lint
run: make lint
- name: test
run: make test
- name: build
run: make build
- name: Send go coverage report
uses: shogo82148/actions-goveralls@7b1bd2871942af030d707d6574e5f684f9891fb2 # v1.8.0
with:
path-to-profile: coverage.out
- name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
git --no-pager diff
echo 'run <make test> and commit changes'
exit 1
fi
- name: Build container image
run: |
make docker-build
- name: Setup Kubernetes
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 #v0.5.0
with:
version: v0.17.0
- name: e2e tests
run: |
make kind-test
- name: Logs
run: |
kubectl -n k8svault-system logs deploy/k8svault-controller
- name: Debug failure
if: failure()
run: |
kubectl -n kube-system describe pods
kubectl -n k8svault-system describe pods
kubectl -n k8svault-system get vaultbinding -oyaml
kubectl -n k8svault-system get vaultmirror -oyaml
kubectl -n k8svault-system get all
kubectl -n k8svault-system logs deploy/k8svault-controller
kubectl -n vault get all
kubectl -n vault exec -i sts/vault vault -- vault list /secret/
kubectl get serviceaccount vault -n vault -o go-template='{{ (index .secrets 0).name }}'