Skip to content

Commit e377a8d

Browse files
committed
module manager as label
1 parent 6583431 commit e377a8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cyclops-ctrl/api/v1alpha1/module_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const (
4848
GitOpsWritePathAnnotation = "cyclops-ui.com/write-path"
4949
GitOpsWriteRevisionAnnotation = "cyclops-ui.com/write-revision"
5050

51-
ModuleManagerAnnotation = "cyclops-ui.com/module-manager"
51+
ModuleManagerLabel = "cyclops-ui.com/module-manager"
5252

5353
AddonModuleLabel = "cyclops-ui.com/addon"
5454
MCPServerModuleLabel = "cyclops-ui.com/mcp-server"

cyclops-ctrl/internal/modulecontroller/module_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (r *ModuleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
136136
return ctrl.Result{}, err
137137
}
138138

139-
if module.Annotations[cyclopsv1alpha1.ModuleManagerAnnotation] == "mcp" {
139+
if len(module.Labels) != 0 && module.Labels[cyclopsv1alpha1.ModuleManagerLabel] == "mcp" {
140140
r.telemetryClient.MCPModuleReconciliation()
141141
}
142142

0 commit comments

Comments
 (0)