Skip to content

Add logic to allow restricting namespaces or watching full cluster #77

Add logic to allow restricting namespaces or watching full cluster

Add logic to allow restricting namespaces or watching full cluster #77

Workflow file for this run

name: mloperator
on: [push, pull_request]
jobs:
operator:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.0
- uses: actions/checkout@v4
- uses: helm/kind-action@v1
- name: test
env:
KUBEBUILDER_CONTROLPLANE_START_TIMEOUT: 600s
run: |
OS=$(go env GOOS)
ARCH=$(go env GOARCH)
KUBEBUILDER_VERSION=4.1.0
# download kubebuilder and extract it to tmp
curl -L -o /tmp/kubebuilder https://go.kubebuilder.io/dl/latest/${OS}/${ARCH}
sudo mv /tmp/kubebuilder /usr/local/kubebuilder
export PATH=$PATH:/usr/local/kubebuilder/bin
go version
go install
make test