mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-09-04 22:22:21 +02:00
* 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>
23 lines
720 B
TypeScript
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>
|
|
);
|
|
}
|