Skip to content

Commit

Permalink
fix(ui): Patch Resource missing appNamespace (#13839) (#13841)
Browse files Browse the repository at this point in the history
Signed-off-by: Geoffrey Muselli <geoffrey.muselli@gmail.com>
Co-authored-by: Geoffrey MUSELLI <geoffrey.muselli@gmail.com>
  • Loading branch information
gcp-cherry-pick-bot[bot] and speedfl committed Jun 1, 2023
1 parent 8bc460f commit 822788f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/app/shared/services/applications-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,12 @@ export class ApplicationsService {
.then(res => (res.body.actions as models.ResourceAction[]) || []);
}

public patchResource(name: string, appNamspace: string, resource: models.ResourceNode, patch: string, patchType: string): Promise<models.State> {
public patchResource(name: string, appNamespace: string, resource: models.ResourceNode, patch: string, patchType: string): Promise<models.State> {
return requests
.post(`/applications/${name}/resource`)
.query({
name: resource.name,
appNamespace,
namespace: resource.namespace,
resourceName: resource.name,
version: resource.version,
Expand Down

0 comments on commit 822788f

Please sign in to comment.