plugin-barman-cloud/web/src/components/HelmInstallation/index.tsx
Krypton a8fc50e1c5 docs: add Helm chart installation
* Use built-in Docusaurus tabs for the Helm and kubectl install methods
* Rename the Helm release to plugin-barman-cloud, matching the chart's README and making the rollout verification command work
* Drop --create-namespace: the operator prerequisite guarantees the namespace exists
* Give each method its own verification step and example output

Signed-off-by: Krypton <root@krypton.ninja>
Signed-off-by: danishedb <danish.khan@enterprisedb.com>
Co-authored-by: danishedb <danish.khan@enterprisedb.com>
2026-08-27 18:43:47 +02:00

23 lines
720 B
TypeScript

import { ReactElement } from "react";
import CodeBlock from "@theme/CodeBlock";
type HelmInstallationProps = {
chartVersion?: string;
};
// HelmInstallationSnippet is the Helm incantation to install a specific
// or latest available version of the Barman Cloud Plugin.
export function HelmInstallationSnippet({
chartVersion,
}: HelmInstallationProps): ReactElement<null> {
const versionArg = chartVersion ? `\n --version ${chartVersion} \\` : "";
return (
<CodeBlock language="sh">
{`helm repo add cnpg https://cloudnative-pg.github.io/charts --force-update
helm upgrade --install plugin-barman-cloud \\
--namespace cnpg-system \\${versionArg}
cnpg/plugin-barman-cloud`}
</CodeBlock>
);
}