Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions operator/.golangci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,20 @@
version: "2"

run:
timeout: 5m
allow-parallel-runners: true
# go version is set to 1.25 for compatibility with golangci-lint v2.10.1
# which was built with go1.25; update when a newer linter release is available.
go: "1.25"

issues:
# don't skip warning about doc comments
# don't exclude the default set of lint
exclude-use-default: false
# restore some of the defaults
# (fill in the rest as needed)
exclude-rules:
- path: "api/*"
linters:
- lll
- path: "internal/*"
linters:
- dupl
- lll
linters:
disable-all: true
enable:
- dupl
- errcheck
- exportloopref
- ginkgolinter
- goconst
- gocyclo
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- lll
Expand All @@ -36,10 +23,24 @@ linters:
- prealloc
- revive
- staticcheck
- typecheck
- unconvert
- unparam
- unused
exclusions:
rules:
- path: "^api/"
linters:
- lll
- path: "^internal/"
linters:
- dupl
- lll
- path: "(^internal/|^test/|^cmd/)"
linters:
- revive
- path: "^test/"
linters:
- staticcheck

linters-settings:
revive:
Expand Down
36 changes: 36 additions & 0 deletions operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ kind: ClusterRole
metadata:
name: manager-role
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- testbench.agentic-layer.ai
resources:
Expand All @@ -30,3 +42,27 @@ rules:
- get
- patch
- update
- apiGroups:
- tests.testkube.io
resources:
- testtriggers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- testworkflows.testkube.io
resources:
- testworkflows
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
4 changes: 2 additions & 2 deletions operator/go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module github.com/agentic-layer/testbench/operator

go 1.26.0
go 1.25.0

require (
github.com/onsi/ginkgo/v2 v2.28.1
github.com/onsi/gomega v1.39.1
k8s.io/api v0.35.2
k8s.io/apimachinery v0.35.2
k8s.io/client-go v0.35.2
sigs.k8s.io/controller-runtime v0.23.3
Expand Down Expand Up @@ -85,7 +86,6 @@ require (
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/api v0.35.2 // indirect
k8s.io/apiextensions-apiserver v0.35.0 // indirect
k8s.io/apiserver v0.35.0 // indirect
k8s.io/component-base v0.35.0 // indirect
Expand Down
Loading