Skip to content

Commit

Permalink
Merge pull request #2767 from weaveworks/fix-details-filtering
Browse files Browse the repository at this point in the history
Use the correct labels to get reconciled objects
  • Loading branch information
Robin Sonefors authored Sep 21, 2022
2 parents 2778ebc + 2279813 commit 2cabcc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/server/fluxruntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,13 @@ func (cs *coreServer) GetReconciledObjects(ctx context.Context, msg *pb.GetRecon
switch msg.AutomationKind {
case pb.FluxObjectKind_KindKustomization:
opts = client.MatchingLabels{
KustomizeNameKey: msg.AutomationName,
KustomizeNameKey: msg.AutomationName,
KustomizeNamespaceKey: msg.Namespace,
}
case pb.FluxObjectKind_KindHelmRelease:
opts = client.MatchingLabels{
HelmNameKey: msg.AutomationName,
HelmNameKey: msg.AutomationName,
HelmNamespaceKey: msg.Namespace,
}
default:
return nil, fmt.Errorf("unsupported application kind: %s", msg.AutomationKind.String())
Expand Down

0 comments on commit 2cabcc7

Please sign in to comment.