Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ charts/**/*.lock
PRIVATEKEY
PUBLICKEY
.cursorindexingignore
.specstory/
.specstory/

.claude
8 changes: 6 additions & 2 deletions charts/sn-platform-slim/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,9 @@ bookkeeper:
# parameters:
# key1: "value1"
# key2: "value2"
# metadata to add onto PVCs for journal storage
# Add custom annotations and labels to PVCs.
# Currently only BookKeeper PVCs support this feature.
# See docs/pulsar/pvc-metadata.md for more details.
# metadata:
# annotations:
# example.com/annotation-key: "annotation-value"
Expand Down Expand Up @@ -990,7 +992,9 @@ bookkeeper:
# parameters:
# key1: "value1"
# key2: "value2"
# metadata to add onto PVCs for ledgers storage
# Add custom annotations and labels to PVCs.
# Currently only BookKeeper PVCs support this feature.
# See docs/pulsar/pvc-metadata.md for more details.
# metadata:
# annotations:
# example.com/annotation-key: "annotation-value"
Expand Down
8 changes: 6 additions & 2 deletions charts/sn-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,9 @@ bookkeeper:
# parameters:
# key1: "value1"
# key2: "value2"
# metadata to add onto PVCs for journal storage
# Add custom annotations and labels to PVCs.
# Currently only BookKeeper PVCs support this feature.
# See docs/pulsar/pvc-metadata.md for more details.
# metadata:
# annotations:
# example.com/annotation-key: "annotation-value"
Expand Down Expand Up @@ -1065,7 +1067,9 @@ bookkeeper:
# parameters:
# key1: "value1"
# key2: "value2"
# metadata to add onto PVCs for ledgers storage
# Add custom annotations and labels to PVCs.
# Currently only BookKeeper PVCs support this feature.
# See docs/pulsar/pvc-metadata.md for more details.
# metadata:
# annotations:
# example.com/annotation-key: "annotation-value"
Expand Down
48 changes: 48 additions & 0 deletions docs/pulsar/pvc-metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# PVC Metadata Configuration

You can add custom annotations and labels to PersistentVolumeClaim (PVC) resources. Currently, only BookKeeper PVCs support this feature.

## BookKeeper PVC Metadata

BookKeeper uses two types of PVCs: `journal` and `ledgers`. You can configure metadata for each separately.

Example:

```yaml
bookkeeper:
volumes:
journal:
metadata:
annotations:
example.com/annotation-key: "annotation-value"
labels:
example.com/label-key: "label-value"
ledgers:
metadata:
annotations:
example.com/annotation-key: "annotation-value"
labels:
example.com/label-key: "label-value"
```


The configured annotations and labels will be added to the PVC resources created by the BookKeeperCluster CR.

Example:

```yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: journal-0
annotations:
example.com/annotation-key: "annotation-value"
labels:
example.com/label-key: "label-value"
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
```
Loading