Skip to content

Commit

Permalink
fix(control-plane): Fixed a pointer mixmatch
Browse files Browse the repository at this point in the history
  • Loading branch information
isala404 committed Mar 16, 2022
1 parent d802f0a commit 247ee28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions control-plane/controllers/inspector_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,14 @@ func (r *InspectorReconciler) configureSherlock(ctx context.Context, inspector *
}

if append {
sherlockServiceList[inspector.Spec.DeploymentRef] = InferenceData{
sherlockServiceList[inspector.ObjectMeta.Name] = InferenceData{
ModelName: inspector.Spec.ModelName,
Namespace: inspector.Spec.Namespace,
}
modelsList[inspector.Spec.ModelName] = true
} else {
if _, ok := sherlockServiceList[inspector.Spec.DeploymentRef]; ok {
delete(sherlockServiceList, inspector.Spec.DeploymentRef)
if _, ok := sherlockServiceList[inspector.ObjectMeta.Name]; ok {
delete(sherlockServiceList, inspector.ObjectMeta.Name)
delete(modelsList, inspector.Spec.ModelName)
}
}
Expand Down
2 changes: 1 addition & 1 deletion gazer/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ spec:
app: prometheus
ports:
- protocol: TCP
port: 9090
port: 80
targetPort: 9090
---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down

0 comments on commit 247ee28

Please sign in to comment.