Skip to content

Commit e26a330

Browse files
committed
add manager annotations on created modules
1 parent 0f785ac commit e26a330

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
start:
2+
CYCLOPS_MCP_TRANSPORT=sse go run -tags musl ./cmd/mcp-cyclops
3+
4+
group-imports:
5+
goimports -w .
6+
7+
unit-test:
8+
go test -v -tags musl,dynamic ./...

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/cyclops-ui/mcp-cyclops
33
go 1.23.8
44

55
require (
6-
github.com/cyclops-ui/cyclops/cyclops-ctrl v0.0.0-20250425140426-3fe1a1ecab1e
6+
github.com/cyclops-ui/cyclops/cyclops-ctrl v0.0.0-20250428101219-ce60d9962a4a
77
github.com/joho/godotenv v1.5.1
88
github.com/mark3labs/mcp-go v0.22.0
99
k8s.io/apiextensions-apiserver v0.32.3

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3
4949
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
5050
github.com/cyclops-ui/cyclops/cyclops-ctrl v0.0.0-20250425140426-3fe1a1ecab1e h1:H2I/WXA7FBfz6VNFdMt3IB2YZtzPbwzmMELdkRuDuRc=
5151
github.com/cyclops-ui/cyclops/cyclops-ctrl v0.0.0-20250425140426-3fe1a1ecab1e/go.mod h1:X9riUJ/32Bs2c3ZK2w1WXxHmZbpn/kh4YaLFICzbPuo=
52+
github.com/cyclops-ui/cyclops/cyclops-ctrl v0.0.0-20250428101219-ce60d9962a4a h1:X0tsu1VGVQzCbfWgIRX6iwBt6uBbvfKu0tWkaJKNJxY=
53+
github.com/cyclops-ui/cyclops/cyclops-ctrl v0.0.0-20250428101219-ce60d9962a4a/go.mod h1:X9riUJ/32Bs2c3ZK2w1WXxHmZbpn/kh4YaLFICzbPuo=
5254
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
5355
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
5456
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

internal/mapper/modules.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ func CreateModule(moduleName, repo, path, version, sourceType string, values []b
1616
},
1717
ObjectMeta: v1.ObjectMeta{
1818
Name: moduleName,
19+
Annotations: map[string]string{
20+
v1alpha1.ModuleManagerAnnotation: "mcp",
21+
},
1922
},
2023
Spec: v1alpha1.ModuleSpec{
2124
TemplateRef: v1alpha1.TemplateRef{

0 commit comments

Comments
 (0)