Skip to content

🌱 (ci) add GitHub Action to validate installation #14

🌱 (ci) add GitHub Action to validate installation

🌱 (ci) add GitHub Action to validate installation #14

Workflow file for this run

name: Install
on:
workflow_dispatch:
pull_request:
merge_group:
push:
branches:
- main
jobs:
kind-deploy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
kind-url:
- https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
- https://kind.sigs.k8s.io/dl/latest/kind-darwin-amd64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install the latest version of kind
run: |
curl -Lo ./kind ${{ matrix.kind-url }}
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Create Kind cluster for operator-controller
run: |
kind create cluster --name operator-controller
- name: Build the project
run: |
make build docker-build
- name: Load image into Kind cluster and deploy
run: |
make kind-load kind-deploy
- name: Logs and Details
if: always()
run: |
# Capture high-level information
echo "Gathering details for all resources in namespace olmv1-system..."
kubectl get all -n olmv1-system
# Describe each pod in the namespace for more details
for pod in $(kubectl get pods -n olmv1-system -o jsonpath='{.items[*].metadata.name}'); do
echo "Describing pod $pod..."
kubectl describe pod $pod -n olmv1-system
echo "Logs for pod $pod:"
kubectl logs $pod -n olmv1-system --all-containers=true
done