Skip to content

Commit

Permalink
fix: allow action on the argo application
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh16 committed Apr 2, 2024
1 parent 405949b commit ca6dbcd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -2136,7 +2136,12 @@ func (s *Server) getUnstructuredLiveResourceOrApp(ctx context.Context, rbacReque
if err != nil {
return nil, nil, nil, nil, fmt.Errorf("error getting application cluster config: %w", err)
}
app.TypeMeta = metav1.TypeMeta{
Kind: applicationType.ApplicationKind,
APIVersion: "argoproj.io/v1alpha1",
}
obj, err = kube.ToUnstructured(app)

} else {
res, config, app, err = s.getAppLiveResource(ctx, rbacRequest, q)
if err != nil {
Expand Down

0 comments on commit ca6dbcd

Please sign in to comment.