Skip to content

Commit 247ee28

Browse files
committed
fix(control-plane): Fixed a pointer mixmatch
1 parent d802f0a commit 247ee28

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

control-plane/controllers/inspector_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,14 @@ func (r *InspectorReconciler) configureSherlock(ctx context.Context, inspector *
297297
}
298298

299299
if append {
300-
sherlockServiceList[inspector.Spec.DeploymentRef] = InferenceData{
300+
sherlockServiceList[inspector.ObjectMeta.Name] = InferenceData{
301301
ModelName: inspector.Spec.ModelName,
302302
Namespace: inspector.Spec.Namespace,
303303
}
304304
modelsList[inspector.Spec.ModelName] = true
305305
} else {
306-
if _, ok := sherlockServiceList[inspector.Spec.DeploymentRef]; ok {
307-
delete(sherlockServiceList, inspector.Spec.DeploymentRef)
306+
if _, ok := sherlockServiceList[inspector.ObjectMeta.Name]; ok {
307+
delete(sherlockServiceList, inspector.ObjectMeta.Name)
308308
delete(modelsList, inspector.Spec.ModelName)
309309
}
310310
}

gazer/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ spec:
201201
app: prometheus
202202
ports:
203203
- protocol: TCP
204-
port: 9090
204+
port: 80
205205
targetPort: 9090
206206
---
207207
apiVersion: rbac.authorization.k8s.io/v1

0 commit comments

Comments
 (0)