Skip to content
Open
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
2 changes: 1 addition & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"github.com/rancher/rancher-ai-mcp/internal/middleware"
"github.com/rancher/rancher-ai-mcp/pkg/client"
"github.com/rancher/rancher-ai-mcp/pkg/toolsets"
"github.com/rancher/wrangler/pkg/generated/controllers/core"
"github.com/rancher/wrangler/v3/pkg/generated/controllers/core"
"github.com/spf13/cobra"
"go.uber.org/zap"
"k8s.io/client-go/rest"
Expand Down Expand Up @@ -108,7 +108,7 @@

ctx := context.Background()
err = server.ListenAndServe(ctx, port, 0, handler, &server.ListenOpts{
Secrets: factory.Core().V1().Secret(),

Check failure on line 111 in cmd/serve.go

View workflow job for this annotation

GitHub Actions / Run unit tests

cannot use factory.Core().V1().Secret() (value of interface type "github.com/rancher/wrangler/v3/pkg/generated/controllers/core/v1".SecretController) as "github.com/rancher/wrangler/pkg/generated/controllers/core/v1".SecretController value in struct literal: "github.com/rancher/wrangler/v3/pkg/generated/controllers/core/v1".SecretController does not implement "github.com/rancher/wrangler/pkg/generated/controllers/core/v1".SecretController (wrong type for method AddGenericHandler)
CertNamespace: certNamespace,
CertName: certName,
CAName: caName,
Expand Down
44 changes: 21 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/rancher/rancher-ai-mcp

go 1.25.8

toolchain go1.25.11
go 1.26.0

// required for rancher/rancher pkg/apis
// will need to be bumped alongside the rancher/rancher/pkg/apis
Expand All @@ -22,15 +20,15 @@ require (
github.com/rancher/fleet v0.15.0-rc.1.0.20260309094116-5553b4101a80
github.com/rancher/fleet/pkg/apis v0.15.2
github.com/rancher/rancher/pkg/apis v0.0.0-20260304125340-d81ccc23a894
github.com/rancher/wrangler v1.1.1-0.20230831050635-df1bd5aae9df
github.com/rancher/wrangler/v3 v3.7.0
github.com/spf13/cobra v1.10.2
github.com/stretchr/testify v1.11.1
go.uber.org/zap v1.27.1
k8s.io/api v0.35.4
k8s.io/apimachinery v0.35.4
k8s.io/api v0.36.0
k8s.io/apimachinery v0.36.0
k8s.io/client-go v12.0.0+incompatible
k8s.io/metrics v0.35.2
k8s.io/utils v0.0.0-20260108192941-914a6e750570
k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2
sigs.k8s.io/controller-runtime v0.23.1
)

Expand Down Expand Up @@ -144,9 +142,9 @@ require (
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/procfs v0.17.0 // indirect
github.com/rancher/lasso v0.2.6 // indirect
github.com/rancher/wrangler/v3 v3.5.0-rc.2 // indirect
github.com/prometheus/procfs v0.19.2 // indirect
github.com/rancher/lasso v0.2.9 // indirect
github.com/rancher/wrangler v1.1.1-0.20230831050635-df1bd5aae9df // indirect
github.com/reugn/go-quartz v0.15.2 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rubenv/sql-migrate v1.8.1 // indirect
Expand All @@ -168,32 +166,32 @@ require (
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xlab/treeprint v1.2.0 // indirect
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
go.opentelemetry.io/proto/otlp v1.9.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.yaml.in/yaml/v2 v2.4.3 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/crypto v0.48.0 // indirect
golang.org/x/net v0.50.0 // indirect
golang.org/x/crypto v0.50.0 // indirect
golang.org/x/net v0.53.0 // indirect
golang.org/x/oauth2 v0.35.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.41.0 // indirect
golang.org/x/term v0.40.0 // indirect
golang.org/x/text v0.34.0 // indirect
golang.org/x/sys v0.43.0 // indirect
golang.org/x/term v0.42.0 // indirect
golang.org/x/text v0.36.0 // indirect
golang.org/x/time v0.14.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af // indirect
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
helm.sh/helm/v4 v4.1.1 // indirect
k8s.io/apiextensions-apiserver v0.35.2 // indirect
k8s.io/apiserver v0.35.2 // indirect
k8s.io/apiextensions-apiserver v0.36.0 // indirect
k8s.io/apiserver v0.36.0 // indirect
k8s.io/cli-runtime v0.35.2 // indirect
k8s.io/component-base v0.35.2 // indirect
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/kube-openapi v0.0.0-20251125145642-4e65d59e963e // indirect
k8s.io/component-base v0.36.0 // indirect
k8s.io/klog/v2 v2.140.0 // indirect
k8s.io/kube-openapi v0.0.0-20260317180543-43fb72c5454a // indirect
k8s.io/kubectl v0.35.2 // indirect
oras.land/oras-go/v2 v2.6.0 // indirect
sigs.k8s.io/cli-utils v0.37.2 // indirect
Expand All @@ -202,6 +200,6 @@ require (
sigs.k8s.io/kustomize/api v0.21.1 // indirect
sigs.k8s.io/kustomize/kyaml v0.21.1 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
sigs.k8s.io/structured-merge-diff/v6 v6.3.2-0.20260122202528-d9cc6641c482 // indirect
sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect
sigs.k8s.io/yaml v1.6.0 // indirect
)
Loading
Loading