Skip to content

Commit

Permalink
docs: address suggestions, address appzi feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
caroldelwing committed Oct 17, 2024
1 parent 5db615e commit 53035bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/docs-content/clusters/pcg/pcg.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ existing Kubernetes cluster. Refer to the table below to learn more about the su
| Environment | Palette CLI Install? | Description | Install Guide |
| -------------- | -------------------- | ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| MAAS || The PCG cluster is deployed into a MAAS environment. | [Deploy to MAAS](deploy-pcg/maas.md) |
| OpenStack || The PCG cluster is deployed into an OpenStack environment. | [Deploy a OpenStack](deploy-pcg/openstack.md) |
| OpenStack || The PCG cluster is deployed into an OpenStack environment. | [Deploy to OpenStack](deploy-pcg/openstack.md) |
| VMware vSphere || The PCG is deployed into a VMware vSphere environment. | [Deploy to VMware vSphere](./deploy-pcg/vmware.md) |
| Other || The PCG cluster is deployed into an existing Kubernetes cluster that is not managed by Palette. | [Deploy a PCG to an Existing Kubernetes Cluster](./deploy-pcg-k8s.md) |
| VMware vSphere || The PCG is deployed into a VMware vSphere environment. | [Deploy a VMware vSphere](./deploy-pcg/vmware.md) |

## Resources

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ interface ComponentProperties {

export default function PaletteVertexUrlMapper(props: ComponentProperties) {
const { edition, text, url, palettePath, vertexPath } = props;
const isPalette = edition?.toLowerCase() === "palette";
const normalizedEdition = edition?.toLowerCase();

if (normalizedEdition !== "palette" && normalizedEdition !== "vertex") {
throw new Error("Invalid edition. Please provide either 'palette' or 'vertex'.");
}

const isPalette = normalizedEdition === "palette";
const baseUrl = isPalette ? "/enterprise-version" : "/vertex";

const mappedUrl =
Expand Down

0 comments on commit 53035bf

Please sign in to comment.