Skip to content

Commit

Permalink
update log for non-admin appwrapper permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammed Abdi <moabdi@Mohammeds-MacBook-Pro.local>
  • Loading branch information
Mohammed Abdi authored and Mohammed Abdi committed Oct 18, 2023
1 parent b65a39c commit 8ca2d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/MCADashboard/app-wrapper-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const callK8sApi = async (isAdmin: boolean) => {
let apiCall = '/api/k8s/apis/workload.codeflare.dev/v1beta1/namespaces/'.concat(projectName, '/appwrappers');
let response = await fetch(apiCall);
if (!response.ok) {
console.log("Set proper permissions for namespace [view] and resource Appwrapper [appwrappers-list]")
console.log(`Set proper permissions for namespace: ${projectName} - rolebinding [view] and for resource Appwrapper - rolebinding [appwrappers-list]`)
throw new Error(`HTTP error! status: ${response.status}`);
}
let appwrapperData = await response.json();
Expand Down

0 comments on commit 8ca2d38

Please sign in to comment.