Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Fix cluster subscribe endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Jul 1, 2022
1 parent 84053e7 commit 7812a33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/ui/server/resources/cluster/cluster_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (e *ClusterStore) Watch(apiOp *types.APIRequest, schema *types.APISchema, w
clusters, err := ListClusters(apiOp.Context())
if err == nil {
for _, cluster := range clusters {
cluster := cluster
result <- types.APIEvent{
Name: cluster.Name,
Namespace: "",
Expand All @@ -86,7 +87,7 @@ func (e *ClusterStore) Watch(apiOp *types.APIRequest, schema *types.APISchema, w
Object: types.APIObject{
Type: schema.ID,
ID: cluster.Name,
Object: cluster,
Object: &cluster,
},
}
}
Expand Down

0 comments on commit 7812a33

Please sign in to comment.