Skip to content

Commit b7bfe29

Browse files
authored
Merge pull request #289 from keithchong/release-4.18-10780-DeleteActionDisabledFix
fix: release-4.18: enable Delete ApplicationSet (and Apps) for namespace-scoped users (#10780)
2 parents 0034442 + 0266c88 commit b7bfe29

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/gitops/hooks/useApplicationActionsProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export const useApplicationActionsProvider: UseApplicationActionsProvider = (app
148148
group: ApplicationModel.apiGroup,
149149
verb: 'delete' as K8sVerb,
150150
resource: ApplicationModel.plural,
151+
namespace: application?.metadata?.namespace,
151152
},
152153
cta: () => launchDeleteModal(),
153154
},

src/gitops/hooks/useApplicationSetActionsProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const useApplicationSetActionsProvider: UseApplicationSetActionsProvider
8181
group: ApplicationSetModel.apiGroup,
8282
verb: 'delete' as K8sVerb,
8383
resource: ApplicationSetModel.plural,
84+
namespace: applicationSet?.metadata?.namespace,
8485
},
8586
cta: () => launchDeleteModal(),
8687
},

0 commit comments

Comments
 (0)