Merge M3 into MCS (#187)

* Merge M3 into MCS

* Fix Linting

* Add missing cluster folder
This commit is contained in:
Daniel Valdivia
2020-07-01 18:03:22 -07:00
committed by GitHub
parent be069eddd5
commit b7614b66d2
125 changed files with 9877 additions and 325 deletions

View File

@@ -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) {

View File

@@ -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("");

View File

@@ -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) {

View File

@@ -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;