Merge M3 into MCS (#187)
* Merge M3 into MCS * Fix Linting * Add missing cluster folder
This commit is contained in:
@@ -287,7 +287,7 @@ const AddTenant = ({
|
||||
};
|
||||
|
||||
api
|
||||
.invoke("POST", `/api/v1/mkube/tenants`, data)
|
||||
.invoke("POST", `/api/v1/tenants`, data)
|
||||
.then((res) => {
|
||||
const newSrvAcc: NewServiceAccount = {
|
||||
accessKey: res.access_key,
|
||||
@@ -337,7 +337,7 @@ const AddTenant = ({
|
||||
|
||||
const fetchStorageClassList = () => {
|
||||
api
|
||||
.invoke("GET", `/api/v1/mkube/storage-classes`)
|
||||
.invoke("GET", `/api/v1/storage-classes`)
|
||||
.then((res: string[]) => {
|
||||
let classes: string[] = [];
|
||||
if (res !== null) {
|
||||
|
||||
@@ -54,7 +54,7 @@ const DeleteTenant = ({
|
||||
useEffect(() => {
|
||||
if (deleteLoading) {
|
||||
api
|
||||
.invoke("DELETE", `/api/v1/mkube/tenants/${selectedTenant}`)
|
||||
.invoke("DELETE", `/api/v1/tenants/${selectedTenant}`)
|
||||
.then(() => {
|
||||
setDeleteLoading(false);
|
||||
setDeleteError("");
|
||||
|
||||
@@ -174,7 +174,7 @@ const ListTenants = ({ classes }: ITenantsList) => {
|
||||
api
|
||||
.invoke(
|
||||
"GET",
|
||||
`/api/v1/mkube/tenants?offset=${offset}&limit=${rowsPerPage}`
|
||||
`/api/v1/tenants?offset=${offset}&limit=${rowsPerPage}`
|
||||
)
|
||||
.then((res: ITenantsResponse) => {
|
||||
if (res === null) {
|
||||
|
||||
@@ -146,7 +146,7 @@ const TenantDetails = ({ classes, match }: ITenantDetailsProps) => {
|
||||
setLoading(true);
|
||||
|
||||
api
|
||||
.invoke("GET", `/api/v1/mkube/tenants/${tenantName}`)
|
||||
.invoke("GET", `/api/v1/tenants/${tenantName}`)
|
||||
.then((res: ITenant) => {
|
||||
const total = res.volume_count * res.volume_size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user