@@ -29,10 +29,11 @@ export default class NamespaceSelector extends Component<PropsType, StateType> {
api
.getNamespaces(
"<token>",
+ {},
{
+ id: currentProject.id,
cluster_id: currentCluster.id,
- },
- { id: currentProject.id }
+ }
)
.then((res) => {
if (this._isMounted) {
@@ -113,10 +113,11 @@ export default class CreateEnvGroup extends Component<PropsType, StateType> {
cluster_id: this.props.currentCluster.id,
if (res.data) {
@@ -91,10 +91,11 @@ class SettingsPage extends Component<PropsType, StateType> {
cluster_id: id,
@@ -611,12 +611,13 @@ const getMetrics = baseApi<
});
const getNamespaces = baseApi<
+ id: number;
cluster_id: number;
- { id: number }
>("GET", (pathParams) => {
- return `/api/projects/${pathParams.id}/k8s/namespaces`;
+ return `/api/projects/${pathParams.id}/clusters/${pathParams.cluster_id}/namespaces`;
const getNGINXIngresses = baseApi<