@@ -517,4 +520,4 @@ const HelmVMClusterManagement = ({
);
};
-export default HelmVMClusterManagement;
+export default EmbeddedClusterManagement;
diff --git a/web/src/components/apps/HelmVMViewNode.jsx b/web/src/components/apps/EmbeddedClusterViewNode.jsx
similarity index 92%
rename from web/src/components/apps/HelmVMViewNode.jsx
rename to web/src/components/apps/EmbeddedClusterViewNode.jsx
index 6bd7651568..a581009c3c 100644
--- a/web/src/components/apps/HelmVMViewNode.jsx
+++ b/web/src/components/apps/EmbeddedClusterViewNode.jsx
@@ -1,12 +1,12 @@
import { MaterialReactTable } from "material-react-table";
-import React, { useMemo, setState } from "react";
+import React, { useMemo } from "react";
import { useQuery } from "@tanstack/react-query";
import { Link, useParams } from "react-router-dom";
import Loader from "@components/shared/Loader";
const testData = undefined;
// const testData = {
-// name: "laverya-helmvm",
+// name: "laverya-embeddedcluster",
// isConnected: true,
// isReady: true,
// isPrimaryNode: true,
@@ -29,27 +29,30 @@ const testData = undefined;
// {
// name: "example-es-85fc9df74-8x8l6",
// status: "Running",
-// namespace: "helmvm",
+// namespace: "embeddedcluster",
// cpu: "0.0345789345 GB",
// memory: 0,
// },
// ],
// };
-const HelmVMViewNode = () => {
+const EmbeddedClusterViewNode = () => {
const { slug, nodeName } = useParams();
const { data: nodeData, isLoading: nodeLoading } = useQuery({
- queryKey: ["helmVmNode", nodeName],
+ queryKey: ["embeddedClusterNode", nodeName],
queryFn: async ({ queryKey }) => {
const [, nodeName] = queryKey;
return (
- await fetch(`${process.env.API_ENDPOINT}/helmvm/node/${nodeName}`, {
- headers: {
- Accept: "application/json",
- },
- credentials: "include",
- method: "GET",
- })
+ await fetch(
+ `${process.env.API_ENDPOINT}/embedded-cluster/node/${nodeName}`,
+ {
+ headers: {
+ Accept: "application/json",
+ },
+ credentials: "include",
+ method: "GET",
+ }
+ )
).json();
},
onError: (err) => {
@@ -239,4 +242,4 @@ const HelmVMViewNode = () => {
);
};
-export default HelmVMViewNode;
+export default EmbeddedClusterViewNode;
diff --git a/web/src/components/apps/HelmVMNodeRow.test.js b/web/src/components/apps/EmbeddedClustrNodeRow.test.js
similarity index 57%
rename from web/src/components/apps/HelmVMNodeRow.test.js
rename to web/src/components/apps/EmbeddedClustrNodeRow.test.js
index b7a4d8324c..18b6d130ad 100644
--- a/web/src/components/apps/HelmVMNodeRow.test.js
+++ b/web/src/components/apps/EmbeddedClustrNodeRow.test.js
@@ -1,3 +1,3 @@
-describe("HelmVMNodeRow", () => {
+describe("EmbeddedClusterNodeRow", () => {
it.todo("upgrade to react 18 and add unit tests");
});
diff --git a/web/src/components/shared/NavBar.tsx b/web/src/components/shared/NavBar.tsx
index 09c6dc2c9d..48ee8c0624 100644
--- a/web/src/components/shared/NavBar.tsx
+++ b/web/src/components/shared/NavBar.tsx
@@ -1,7 +1,7 @@
import React, { PureComponent } from "react";
import PropTypes from "prop-types";
import classNames from "classnames";
-import { withRouter, RouterProps } from "@src/utilities/react-router-utilities";
+import { RouterProps, withRouter } from "@src/utilities/react-router-utilities";
import { Link } from "react-router-dom";
import { Utilities } from "@src/utilities/utilities";
import ErrorModal from "../modals/ErrorModal";
@@ -19,7 +19,7 @@ type Props = {
isHelmManaged: boolean;
isIdentityServiceSupported: boolean;
isKurlEnabled: boolean;
- isHelmVMEnabled: boolean;
+ isEmbeddedClusterEnabled: boolean;
isSnapshotsSupported: boolean;
logo: string | null;
onLogoutError: (message: string) => void;
@@ -144,7 +144,7 @@ export class NavBar extends PureComponent