Skip to content
Merged
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
7 changes: 6 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
!**/*.go
**/*_test.go

# Re-include Go module files
# Re-include Go module files. Both patterns are needed: `!go.mod` matches the
# root module only, so a nested module's go.mod (sidecarapi/go.mod, which the
# root module resolves through a filesystem `replace`) stays excluded without
# the recursive form, and `go mod download` fails on the missing replace target.
!go.mod
!go.sum
!**/go.mod
!**/go.sum

# Re-include embedded shell scripts
!**/*.sh
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# One job per Go module. golangci-lint resolves packages with Go
# patterns, which stop at a nested module boundary — a root-only run
# would never lint sidecarapi/ and would pass while it was broken.
module: [".", "sidecarapi"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -17,10 +24,26 @@ jobs:
- uses: golangci/golangci-lint-action@v8
with:
version: v2.12.1
working-directory: ${{ matrix.module }}
Comment thread
cursor[bot] marked this conversation as resolved.
# Temporary override — pre-existing lint debt surfaced by the
# v2.8.0 → v2.12.1 bump. Tracked in #163; remove once paid down.
only-new-issues: true

hygiene:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
# Every module must be tidy. Without this, the failure mode that
# motivated sidecarapi is invisible in CI: `go build` succeeds while
# `go mod tidy` cannot resolve the graph at all.
- run: make tidy-check

test:
runs-on: ubuntu-latest
steps:
Expand Down
43 changes: 43 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ linters:
default: none
enable:
- bodyclose
- depguard
- copyloopvar
- dupl
- errcheck
Expand All @@ -25,6 +26,35 @@ linters:
- unparam
- unused
settings:
depguard:
rules:
# sidecarapi is the sidecar's wire contract, imported by the controller,
# the sidecar module, and the seictl CLI. Only the sidecar module may
# carry the sei-chain graph.
#
# `go mod tidy` walks the test closure of every package the main module
# imports, so a test-only import of a heavy package here — even from a
# _test.go file — makes the controller un-tidyable: sei-cosmos requires
# gogo/protobuf v1.3.3, which exists only in the regen-network fork, and
# a dependency module's replace directive is ignored. That is exactly how
# this broke once before (seictl#238 added such an import to a test).
contract-stays-light:
list-mode: lax
files:
- "**/sidecarapi/**"
deny:
- pkg: github.com/sei-protocol/sei-chain
desc: the chain graph belongs to the sidecar module; a test needing both sides of the wire boundary belongs there
# Trailing slash matters: `pkg` is a prefix match, and without it
# this also denies sidecarapi/* itself.
- pkg: github.com/sei-protocol/sei-k8s-controller/sidecar/
desc: the contract must not import its own implementation; the sidecar module imports this one, never the reverse
- pkg: github.com/cosmos/cosmos-sdk
desc: chain graph
- pkg: github.com/cometbft
desc: chain graph
- pkg: github.com/gogo/protobuf
desc: chain graph, and only resolvable through the regen-network replace
revive:
rules:
- name: comment-spacings
Expand All @@ -46,6 +76,19 @@ linters:
- dupl
- lll
path: sdk/*
- linters:
- dupl
- lll
path: sidecarapi/*
# goconst flags the JSON keys inside the request-params maps — chainId,
# keyName, fees, gas, title, initialDeposit, address. Those literals are
# the wire contract: reading a params map and seeing the JSON it produces
# is the property that makes the client reviewable against the server's
# struct tags. Hoisting them into constants would trade that away for a
# DRY score. The remaining hits are test fixtures (1usei, config.toml).
- linters:
- goconst
path: sidecarapi/client/*
paths:
- third_party$
- builtin$
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ ARG TARGETARCH
WORKDIR /workspace
COPY go.mod go.mod
COPY go.sum go.sum
# The root module resolves sidecarapi through a filesystem `replace`, so its
# go.mod must be present before `go mod download` — otherwise the replace target
# is missing and the prefetch fails. Copy the manifests only, so this layer
# still caches on dependency changes rather than on every source edit.
COPY sidecarapi/go.mod sidecarapi/go.mod
COPY sidecarapi/go.sum sidecarapi/go.sum
RUN go mod download

COPY . .
Expand Down
32 changes: 27 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,38 @@ CONTROLLER_GEN_VERSION ?= v0.20.1
LOCALBIN ?= $(CURDIR)/bin
SETUP_ENVTEST ?= $(LOCALBIN)/setup-envtest

.PHONY: build test test-integration test-all lint manifests generate verify-generated setup-envtest ci docker-build docker-push
# MODULES is every Go module in this repo. Go package patterns stop at a nested
# module boundary — `go list ./...` in the root does NOT descend into
# sidecarapi/ — so anything that walks packages must loop this list or the
# nested module goes unbuilt, unlinted and untested while CI stays green.
MODULES ?= . sidecarapi

.PHONY: build test test-modules test-integration test-all lint lint-modules tidy-check manifests generate verify-generated setup-envtest ci docker-build docker-push

build: ## Build manager binary.
go build -o bin/manager ./cmd/

test: ## Run tests.
test: test-modules ## Run tests (root module with coverage, then every other module).
go test $$(go list ./... | grep -v /e2e) -coverprofile cover.out

lint: ## Run golangci-lint.
$(GOLANGCI_LINT) run
test-modules: ## Run tests in every non-root module.
@set -e; for m in $(MODULES); do \
[ "$$m" = "." ] && continue; \
echo "==> go test ./... ($$m)"; \
(cd $$m && go test ./...); \
done

tidy-check: ## Fail if any module's go.mod/go.sum is not tidy.
@set -e; for m in $(MODULES); do \
echo "==> go mod tidy -diff ($$m)"; \
(cd $$m && go mod tidy -diff); \
done

lint: ## Run golangci-lint over every module.
@set -e; for m in $(MODULES); do \
echo "==> golangci-lint run ($$m)"; \
(cd $$m && $(GOLANGCI_LINT) run); \
done

manifests: ## Generate CRD and RBAC manifests.
controller-gen rbac:roleName=manager-role crd webhook paths="./..." \
Expand Down Expand Up @@ -59,7 +81,7 @@ verify-generated: manifests generate ## Fail if generated artifacts drift from c
echo "ERROR: generated artifacts out of date — run 'make manifests generate' and commit"; \
exit 1; }

ci: lint test verify-generated build ## Run lint, test, verify-generated, and build.
ci: lint tidy-check test verify-generated build ## Run lint, tidy-check, test, verify-generated, and build.

docker-build: ## Build docker image.
docker build --platform linux/amd64 -t ${IMG} .
Expand Down
3 changes: 1 addition & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import (
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"

sidecar "github.com/sei-protocol/seictl/sidecar/client"

seiv1alpha1 "github.com/sei-protocol/sei-k8s-controller/api/v1alpha1"
nodecontroller "github.com/sei-protocol/sei-k8s-controller/internal/controller/node"
nodetaskcontroller "github.com/sei-protocol/sei-k8s-controller/internal/controller/nodetask"
Expand All @@ -35,6 +33,7 @@ import (
"github.com/sei-protocol/sei-k8s-controller/internal/platform"
"github.com/sei-protocol/sei-k8s-controller/internal/sidecartransport"
"github.com/sei-protocol/sei-k8s-controller/internal/task"
sidecar "github.com/sei-protocol/sei-k8s-controller/sidecarapi/client"
)

var (
Expand Down
19 changes: 6 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ require (
github.com/google/uuid v1.6.0
github.com/onsi/gomega v1.39.1
github.com/sei-protocol/sei-config v0.0.25
github.com/sei-protocol/seictl v0.0.68
go.opentelemetry.io/otel v1.43.0
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.43.0
go.opentelemetry.io/otel/exporters/prometheus v0.65.0
go.opentelemetry.io/otel/metric v1.43.0
go.opentelemetry.io/otel/sdk v1.43.0
go.opentelemetry.io/otel/sdk/metric v1.43.0
golang.org/x/crypto v0.49.0
k8s.io/api v0.36.0
k8s.io/api v0.35.1
k8s.io/apiextensions-apiserver v0.35.0
k8s.io/apimachinery v0.36.0
k8s.io/client-go v0.36.0
k8s.io/apimachinery v0.35.1
k8s.io/client-go v0.35.1
k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2
sigs.k8s.io/controller-runtime v0.23.1
sigs.k8s.io/gateway-api v1.5.1
Expand Down Expand Up @@ -82,13 +81,14 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/oapi-codegen/runtime v1.2.0 // indirect
github.com/oapi-codegen/runtime v1.6.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_golang v1.23.2 // indirect
github.com/prometheus/client_model v0.6.2 // indirect
github.com/prometheus/common v0.67.5 // indirect
github.com/prometheus/otlptranslator v1.0.0 // indirect
github.com/prometheus/procfs v0.20.1 // indirect
github.com/sei-protocol/sei-k8s-controller/sidecarapi v0.0.0
github.com/spf13/cobra v1.10.2 // indirect
github.com/spf13/pflag v1.0.10 // indirect
github.com/stoewer/go-strcase v1.3.1 // indirect
Expand Down Expand Up @@ -129,11 +129,4 @@ require (
sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect
)

// Pin k8s deps to v0.35.0 — controller-runtime v0.23.1 is incompatible
// with v0.36.x. seictl's transitive constraints don't actually require
// the newer versions for what the controller uses (sidecar/client).
replace (
k8s.io/api => k8s.io/api v0.35.0
k8s.io/apimachinery => k8s.io/apimachinery v0.35.0
k8s.io/client-go => k8s.io/client-go v0.35.0
)
replace github.com/sei-protocol/sei-k8s-controller/sidecarapi => ./sidecarapi
28 changes: 12 additions & 16 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFF
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE=
github.com/klauspost/compress v1.18.3 h1:9PJRvfbmTabkOX8moIpXPbMMbYN60bWImDDU7L+/6zw=
github.com/klauspost/compress v1.18.3/go.mod h1:R0h/fSBs8DE4ENlcrlib3PsXS61voFxhIs2DeRhCvJ4=
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
Expand All @@ -146,8 +146,10 @@ github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFd
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/oapi-codegen/runtime v1.2.0 h1:RvKc1CVS1QeKSNzO97FBQbSMZyQ8s6rZd+LpmzwHMP4=
github.com/oapi-codegen/runtime v1.2.0/go.mod h1:Y7ZhmmlE8ikZOmuHRRndiIm7nf3xcVv+YMweKgG1DT0=
github.com/oapi-codegen/nullable v1.1.0 h1:eAh8JVc5430VtYVnq00Hrbpag9PFRGWLjxR1/3KntMs=
github.com/oapi-codegen/nullable v1.1.0/go.mod h1:KUZ3vUzkmEKY90ksAmit2+5juDIhIZhfDl+0PwOQlFY=
github.com/oapi-codegen/runtime v1.6.0 h1:7Xx+GlueD6nRuyKoCPzL434Jfi3BetbiJOrzCHp/VPU=
github.com/oapi-codegen/runtime v1.6.0/go.mod h1:GwV7hC2hviaMzj+ITfHVRESK5J2W/GefVwIND/bMGvU=
github.com/onsi/ginkgo/v2 v2.28.0 h1:Rrf+lVLmtlBIKv6KrIGJCjyY8N36vDVcutbGJkyqjJc=
github.com/onsi/ginkgo/v2 v2.28.0/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo=
github.com/onsi/gomega v1.39.1 h1:1IJLAad4zjPn2PsnhH70V4DKRFlrCzGBNrNaru+Vf28=
Expand All @@ -170,14 +172,8 @@ github.com/prometheus/procfs v0.20.1/go.mod h1:o9EMBZGRyvDrSPH1RqdxhojkuXstoe4Ul
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sei-protocol/sei-config v0.0.23 h1:pGFxRnKoXZLK3Ew/Vd5lgC5RvH9Wo58NnL19CuMgFIk=
github.com/sei-protocol/sei-config v0.0.23/go.mod h1:zcEdLzyIH2AyP0/QRBE3s4Y9eGn0C/qAUx1c4o4EROU=
github.com/sei-protocol/sei-config v0.0.24 h1:DqjehEjC24E7/vVQR6EDPjLOdOUOCegxFwZAeB7S23k=
github.com/sei-protocol/sei-config v0.0.24/go.mod h1:zcEdLzyIH2AyP0/QRBE3s4Y9eGn0C/qAUx1c4o4EROU=
github.com/sei-protocol/sei-config v0.0.25 h1:YHW6YOD3DWSF5QRo+Om4TLeQ9o8E8qnG9jcR8E8fjGo=
github.com/sei-protocol/sei-config v0.0.25/go.mod h1:zcEdLzyIH2AyP0/QRBE3s4Y9eGn0C/qAUx1c4o4EROU=
github.com/sei-protocol/seictl v0.0.68 h1:dCT94Ys4OjiPt5Y6TWqtgJ8GKTiWv7tN87D8HqIQxbk=
github.com/sei-protocol/seictl v0.0.68/go.mod h1:kI3HIAIWzuJSme8LqJH1WZiITrSIx5yDtJJea07Xt8Y=
github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU=
github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
Expand Down Expand Up @@ -284,16 +280,16 @@ gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
k8s.io/api v0.35.0 h1:iBAU5LTyBI9vw3L5glmat1njFK34srdLmktWwLTprlY=
k8s.io/api v0.35.0/go.mod h1:AQ0SNTzm4ZAczM03QH42c7l3bih1TbAXYo0DkF8ktnA=
k8s.io/api v0.35.1 h1:0PO/1FhlK/EQNVK5+txc4FuhQibV25VLSdLMmGpDE/Q=
k8s.io/api v0.35.1/go.mod h1:28uR9xlXWml9eT0uaGo6y71xK86JBELShLy4wR1XtxM=
k8s.io/apiextensions-apiserver v0.35.0 h1:3xHk2rTOdWXXJM+RDQZJvdx0yEOgC0FgQ1PlJatA5T4=
k8s.io/apiextensions-apiserver v0.35.0/go.mod h1:E1Ahk9SADaLQ4qtzYFkwUqusXTcaV2uw3l14aqpL2LU=
k8s.io/apimachinery v0.35.0 h1:Z2L3IHvPVv/MJ7xRxHEtk6GoJElaAqDCCU0S6ncYok8=
k8s.io/apimachinery v0.35.0/go.mod h1:jQCgFZFR1F4Ik7hvr2g84RTJSZegBc8yHgFWKn//hns=
k8s.io/apimachinery v0.35.1 h1:yxO6gV555P1YV0SANtnTjXYfiivaTPvCTKX6w6qdDsU=
k8s.io/apimachinery v0.35.1/go.mod h1:jQCgFZFR1F4Ik7hvr2g84RTJSZegBc8yHgFWKn//hns=
k8s.io/apiserver v0.35.0 h1:CUGo5o+7hW9GcAEF3x3usT3fX4f9r8xmgQeCBDaOgX4=
k8s.io/apiserver v0.35.0/go.mod h1:QUy1U4+PrzbJaM3XGu2tQ7U9A4udRRo5cyxkFX0GEds=
k8s.io/client-go v0.35.0 h1:IAW0ifFbfQQwQmga0UdoH0yvdqrbwMdq9vIFEhRpxBE=
k8s.io/client-go v0.35.0/go.mod h1:q2E5AAyqcbeLGPdoRB+Nxe3KYTfPce1Dnu1myQdqz9o=
k8s.io/client-go v0.35.1 h1:+eSfZHwuo/I19PaSxqumjqZ9l5XiTEKbIaJ+j1wLcLM=
k8s.io/client-go v0.35.1/go.mod h1:1p1KxDt3a0ruRfc/pG4qT/3oHmUj1AhSHEcxNSGg+OA=
k8s.io/component-base v0.35.0 h1:+yBrOhzri2S1BVqyVSvcM3PtPyx5GUxCK2tinZz1G94=
k8s.io/component-base v0.35.0/go.mod h1:85SCX4UCa6SCFt6p3IKAPej7jSnF3L8EbfSyMZayJR0=
k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

"github.com/google/uuid"
. "github.com/onsi/gomega"
sidecar "github.com/sei-protocol/seictl/sidecar/client"
apimeta "k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
Expand All @@ -24,6 +23,7 @@ import (
"github.com/sei-protocol/sei-k8s-controller/internal/planner"
"github.com/sei-protocol/sei-k8s-controller/internal/platform/platformtest"
"github.com/sei-protocol/sei-k8s-controller/internal/task"
sidecar "github.com/sei-protocol/sei-k8s-controller/sidecarapi/client"
)

// fakeSidecar is a controllable task.SidecarClient: every submitted task
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (

"github.com/google/uuid"
. "github.com/onsi/gomega"
sidecar "github.com/sei-protocol/seictl/sidecar/client"
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"

seiv1alpha1 "github.com/sei-protocol/sei-k8s-controller/api/v1alpha1"
"github.com/sei-protocol/sei-k8s-controller/internal/planner"
sidecar "github.com/sei-protocol/sei-k8s-controller/sidecarapi/client"
)

// driveTask submits one task and completes it via the full Reconcile pipeline.
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/node/plan_execution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/google/uuid"
. "github.com/onsi/gomega"
seiconfig "github.com/sei-protocol/sei-config"
sidecar "github.com/sei-protocol/seictl/sidecar/client"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand All @@ -26,6 +25,7 @@ import (
"github.com/sei-protocol/sei-k8s-controller/internal/planner"
"github.com/sei-protocol/sei-k8s-controller/internal/platform/platformtest"
"github.com/sei-protocol/sei-k8s-controller/internal/task"
sidecar "github.com/sei-protocol/sei-k8s-controller/sidecarapi/client"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions internal/controller/nodetask/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/predicate"

"github.com/sei-protocol/seictl/sidecar/wire"

seiv1alpha1 "github.com/sei-protocol/sei-k8s-controller/api/v1alpha1"
"github.com/sei-protocol/sei-k8s-controller/internal/controller/observability"
"github.com/sei-protocol/sei-k8s-controller/internal/platform"
"github.com/sei-protocol/sei-k8s-controller/internal/task"
"github.com/sei-protocol/sei-k8s-controller/sidecarapi/wire"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions internal/controller/nodetask/controller_gov_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ import (
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

sidecar "github.com/sei-protocol/seictl/sidecar/client"

seiv1alpha1 "github.com/sei-protocol/sei-k8s-controller/api/v1alpha1"
sidecar "github.com/sei-protocol/sei-k8s-controller/sidecarapi/client"
)

// setResultPayload stages a terminal task result carrying a structured result
Expand Down
Loading
Loading