mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-09-04 22:22:21 +02:00
Compare commits
3 Commits
13b545f5c0
...
ea3aff1765
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea3aff1765 | ||
|
|
cd71e7d5fd | ||
|
|
a95197e648 |
@ -1,3 +1,3 @@
|
||||
{
|
||||
".": "0.14.0"
|
||||
".": "0.15.0"
|
||||
}
|
||||
|
||||
14
CHANGELOG.md
14
CHANGELOG.md
@ -1,5 +1,19 @@
|
||||
# Changelog
|
||||
|
||||
## [0.15.0](https://github.com/cloudnative-pg/plugin-barman-cloud/compare/v0.14.0...v0.15.0) (2026-08-31)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Serve restore hooks from the instance sidecar ([#1025](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/1025)) ([7bb01a8](https://github.com/cloudnative-pg/plugin-barman-cloud/commit/7bb01a865b15c0f5f608c8bfbc7561daadf2de3d))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** Update all non-major go dependencies ([#1041](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/1041)) ([9a3cc0d](https://github.com/cloudnative-pg/plugin-barman-cloud/commit/9a3cc0d35492697a31ddc13b87f269cca3e83ea5))
|
||||
* **deps:** Update kubernetes monorepo to v0.37.0 ([#1084](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/1084)) ([b15b661](https://github.com/cloudnative-pg/plugin-barman-cloud/commit/b15b661648792cb2cb899ee628b8a3aa909c3fc8))
|
||||
* **deps:** Update module google.golang.org/grpc to v1.83.2 ([#1073](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/1073)) ([b3d948c](https://github.com/cloudnative-pg/plugin-barman-cloud/commit/b3d948ce821c68be1d99c84c679e020b5f3db363))
|
||||
|
||||
## [0.14.0](https://github.com/cloudnative-pg/plugin-barman-cloud/compare/v0.13.0...v0.14.0) (2026-07-29)
|
||||
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ const (
|
||||
// Data is the metadata of this plugin.
|
||||
var Data = identity.GetPluginMetadataResponse{
|
||||
Name: PluginName,
|
||||
Version: "0.14.0", // x-release-please-version
|
||||
Version: "0.15.0", // x-release-please-version
|
||||
DisplayName: "BarmanCloudInstance",
|
||||
ProjectUrl: "https://github.com/cloudnative-pg/plugin-barman-cloud",
|
||||
RepositoryUrl: "https://github.com/cloudnative-pg/plugin-barman-cloud",
|
||||
|
||||
@ -35,7 +35,7 @@ object storage system. It allows you to configure:
|
||||
- **Base backup options**—with similar settings for compression, concurrency,
|
||||
and encryption—under `.spec.configuration.data`
|
||||
- **Retention policies** to manage the life-cycle of archived WALs and backups
|
||||
via `.spec.configuration.retentionPolicy`
|
||||
via `.spec.retentionPolicy`
|
||||
|
||||
WAL files are archived in the `wals` directory, while base backups are stored
|
||||
as **tarballs** in the `base` directory, following the
|
||||
|
||||
@ -54,10 +54,9 @@ Both checks are required before proceeding with the installation.
|
||||
|
||||
## Installing the Barman Cloud Plugin
|
||||
|
||||
import { InstallationSnippet } from '@site/src/components/Installation';
|
||||
import { InstallationSnippet, ManifestVersion } from '@site/src/components/Installation';
|
||||
|
||||
Install the plugin using `kubectl` by applying the manifest for the latest
|
||||
release:
|
||||
Install the plugin using `kubectl` by applying the manifest for <ManifestVersion />:
|
||||
|
||||
<InstallationSnippet />
|
||||
|
||||
@ -100,10 +99,6 @@ This confirms that the plugin is deployed and ready to use.
|
||||
|
||||
## Testing the latest development snapshot
|
||||
|
||||
You can also test the latest development snapshot of the plugin with the
|
||||
following command:
|
||||
import { DevSnapshotSection } from '@site/src/components/Installation';
|
||||
|
||||
```sh
|
||||
kubectl apply -f \
|
||||
https://raw.githubusercontent.com/cloudnative-pg/plugin-barman-cloud/refs/heads/main/manifest.yaml
|
||||
```
|
||||
<DevSnapshotSection />
|
||||
|
||||
@ -1,16 +1,55 @@
|
||||
import {ReactElement} from 'react';
|
||||
import CodeBlock from '@theme/CodeBlock';
|
||||
import {useCurrentVersion} from '@site/src/hooks/versions';
|
||||
import {useActiveVersion} from '@docusaurus/plugin-content-docs/client';
|
||||
|
||||
// InstallationSnippet is the kubectl incantation to install the lastest
|
||||
// available version of the Barman Cloud Plugin.
|
||||
// DEV_MANIFEST_URL is the URL of the manifest.yaml on the main branch of the plugin repo.
|
||||
const DEV_MANIFEST_URL =
|
||||
'https://raw.githubusercontent.com/cloudnative-pg/plugin-barman-cloud/refs/heads/main/manifest.yaml';
|
||||
|
||||
// InstallationSnippet is the kubectl incantation to install the Barman
|
||||
// Cloud Plugin: the manifest matching the doc version being viewed, or
|
||||
// (on the unreleased "current" docs) the latest manifest on main.
|
||||
export function InstallationSnippet(): ReactElement<null> {
|
||||
const latest = useCurrentVersion('latestReleased');
|
||||
const activeVersion = useActiveVersion('default');
|
||||
const url = activeVersion && activeVersion.name !== 'current'
|
||||
? `https://github.com/cloudnative-pg/plugin-barman-cloud/releases/download/v${activeVersion.name}/manifest.yaml`
|
||||
: DEV_MANIFEST_URL;
|
||||
return (
|
||||
<CodeBlock language="sh">
|
||||
{`kubectl apply -f \\
|
||||
https://github.com/cloudnative-pg/plugin-barman-cloud/releases/download/v${latest}/manifest.yaml`}
|
||||
${url}`}
|
||||
</CodeBlock>
|
||||
);
|
||||
}
|
||||
|
||||
// ManifestVersion names the manifest the snippet below installs: the
|
||||
// release tag for a versioned docs page, or the main branch on Dev docs.
|
||||
export function ManifestVersion(): ReactElement<null> {
|
||||
const activeVersion = useActiveVersion('default');
|
||||
return activeVersion && activeVersion.name !== 'current'
|
||||
? <code>v{activeVersion.name}</code>
|
||||
: <>the latest development snapshot from the <code>main</code> branch</>;
|
||||
}
|
||||
|
||||
// DevSnapshotSection offers the main-branch manifest as an alternative;
|
||||
// on the Dev docs the main install already is that manifest, so hide it.
|
||||
export function DevSnapshotSection(): ReactElement {
|
||||
const activeVersion = useActiveVersion('default');
|
||||
if (!activeVersion || activeVersion.name === 'current') {
|
||||
return (
|
||||
<p>The <a href="#installing-the-barman-cloud-plugin">install
|
||||
command above</a> already applies the latest development
|
||||
snapshot from the <code>main</code> branch.</p>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<p>You can also test the latest development snapshot of the plugin
|
||||
with the following command:</p>
|
||||
<CodeBlock language="sh">
|
||||
{`kubectl apply -f \\
|
||||
${DEV_MANIFEST_URL}`}
|
||||
</CodeBlock>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@ -1,36 +0,0 @@
|
||||
import {useActiveVersion, useLatestVersion, useVersions} from '@docusaurus/plugin-content-docs/client';
|
||||
|
||||
|
||||
export function useCurrentVersion(fallback: 'latest' | 'latestReleased' = 'latest'): string {
|
||||
switch (fallback) {
|
||||
case 'latestReleased':
|
||||
return useLatestReleasedVersion();
|
||||
case 'latest': {
|
||||
const version = useActiveVersion('default');
|
||||
return version?.name ?? useLatestVersion('default')?.name;
|
||||
}
|
||||
default:
|
||||
// The following line ensures that if `fallback` is not 'latest' or 'latestReleased',
|
||||
// an error is thrown. This can be useful for catching unexpected states.
|
||||
throw new Error(`Unhandled fallback type: ${fallback}`);
|
||||
}
|
||||
}
|
||||
|
||||
export function useLatestReleasedVersion(): string {
|
||||
const allVersions = useVersions('default');
|
||||
|
||||
// Filter out "current" to only consider versioned docs
|
||||
const versionedDocs = allVersions.filter(version => version.name !== 'current');
|
||||
|
||||
// Handle the case where no versioned documents are found
|
||||
if (versionedDocs.length === 0) {
|
||||
return "unknown_version";
|
||||
}
|
||||
|
||||
const sortedVersions = versionedDocs.sort((a, b) => {
|
||||
return b.name.localeCompare(a.name, undefined, { numeric: true, sensitivity: 'base' });
|
||||
});
|
||||
|
||||
// The latest version is the first in the sorted list since versionedDocs was not empty,
|
||||
return sortedVersions[0].name;
|
||||
}
|
||||
@ -54,10 +54,9 @@ Both checks are required before proceeding with the installation.
|
||||
|
||||
## Installing the Barman Cloud Plugin
|
||||
|
||||
import { InstallationSnippet } from '@site/src/components/Installation';
|
||||
import { InstallationSnippet, ManifestVersion } from '@site/src/components/Installation';
|
||||
|
||||
Install the plugin using `kubectl` by applying the manifest for the latest
|
||||
release:
|
||||
Install the plugin using `kubectl` by applying the manifest for <ManifestVersion />:
|
||||
|
||||
<InstallationSnippet />
|
||||
|
||||
@ -100,10 +99,6 @@ This confirms that the plugin is deployed and ready to use.
|
||||
|
||||
## Testing the latest development snapshot
|
||||
|
||||
You can also test the latest development snapshot of the plugin with the
|
||||
following command:
|
||||
import { DevSnapshotSection } from '@site/src/components/Installation';
|
||||
|
||||
```sh
|
||||
kubectl apply -f \
|
||||
https://raw.githubusercontent.com/cloudnative-pg/plugin-barman-cloud/refs/heads/main/manifest.yaml
|
||||
```
|
||||
<DevSnapshotSection />
|
||||
|
||||
@ -54,10 +54,9 @@ Both checks are required before proceeding with the installation.
|
||||
|
||||
## Installing the Barman Cloud Plugin
|
||||
|
||||
import { InstallationSnippet } from '@site/src/components/Installation';
|
||||
import { InstallationSnippet, ManifestVersion } from '@site/src/components/Installation';
|
||||
|
||||
Install the plugin using `kubectl` by applying the manifest for the latest
|
||||
release:
|
||||
Install the plugin using `kubectl` by applying the manifest for <ManifestVersion />:
|
||||
|
||||
<InstallationSnippet />
|
||||
|
||||
@ -100,10 +99,6 @@ This confirms that the plugin is deployed and ready to use.
|
||||
|
||||
## Testing the latest development snapshot
|
||||
|
||||
You can also test the latest development snapshot of the plugin with the
|
||||
following command:
|
||||
import { DevSnapshotSection } from '@site/src/components/Installation';
|
||||
|
||||
```sh
|
||||
kubectl apply -f \
|
||||
https://raw.githubusercontent.com/cloudnative-pg/plugin-barman-cloud/refs/heads/main/manifest.yaml
|
||||
```
|
||||
<DevSnapshotSection />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user