-
Notifications
You must be signed in to change notification settings - Fork 492
Integrate mkube storageclass api with UI #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
restapi/mkube.go
Outdated
| // serverMkube handles calls for mkube | ||
| func serverMkube(client *http.Client, w http.ResponseWriter, req *http.Request) { | ||
| // destination of the request, the mkube server | ||
| req.URL.Path = fmt.Sprintf("/api/v1/%s", strings.TrimPrefix(req.URL.Path, "/api/v1/mkube")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps, you only need to remove the /mkube/ with / that way you don't have the /v1/ in multiple places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes but they can potentially be different one is hitting mkube apis and the other one is mcs api.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Open mcs with flag
MCS_OPERATOR_ONLY=onthen when adding a new Tenant, the storage classes listed should be the same as if you were doingkubectl get storageclasses.storage.k8s.io