Skip to content

Commit

Permalink
fix: ManagedResources API should not return diff for hooks (argoproj#…
Browse files Browse the repository at this point in the history
…14816)

Signed-off-by: Alexander Matyushentsev <[email protected]>
Signed-off-by: Jimmy Neville <[email protected]>
  • Loading branch information
alexmt authored and Jneville0815 committed Sep 30, 2023
1 parent 86b046e commit 3e2d88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ func (s *Server) ManagedResources(ctx context.Context, q *application.ResourcesQ
res := &application.ManagedResourcesResponse{}
for i := range items {
item := items[i]
if isMatchingResource(q, kube.ResourceKey{Name: item.Name, Namespace: item.Namespace, Kind: item.Kind, Group: item.Group}) {
if !item.Hook && isMatchingResource(q, kube.ResourceKey{Name: item.Name, Namespace: item.Namespace, Kind: item.Kind, Group: item.Group}) {
res.Items = append(res.Items, item)
}
}
Expand Down

0 comments on commit 3e2d88e

Please sign in to comment.