Skip to content

Commit 6bd85d4

Browse files
committed
fix(controller): Remove unused pvc label causing 422 errors for long PVC names
- Removed unused 'pvc' label from clone PVC metadata (line 316) - Kubernetes label values limited to 63 characters - Clone names for HedgeDoc exceed limit (65 chars) - Label was unused (cleanup uses _tracked_resources list) - Fixes backup failures for apps with long PVC base names Release v5.0.8
1 parent e67997a commit 6bd85d4

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [5.0.8] - 2025-10-28
11+
12+
### Fixed
13+
14+
- **CRITICAL: Clone PVC Creation Failure for Long PVC Names**
15+
- Removed unused `pvc` label from clone PVCs that was causing 422 errors
16+
- Kubernetes label values limited to 63 characters, clone names could exceed this (e.g., HedgeDoc: 65 chars)
17+
- Label was unused in codebase (cleanup uses `_tracked_resources` list, not labels)
18+
- Affects apps with long PVC base names (hedgedoc-uploads-pvc-enc, hedgedoc-postgres-pvc-enc)
19+
- Fix: apps/controller/kube_snapshot_borgbackup/main.py:324-328
20+
1021
## [5.0.7] - 2025-10-26
1122

1223
### Added

apps/backup-runner/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.7
1+
5.0.8

apps/controller/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.7
1+
5.0.8

apps/controller/kube_snapshot_borgbackup/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ def create_clone_pvc(
313313
"namespace": namespace,
314314
"labels": {
315315
"app": "kube-borg-backup",
316-
"pvc": clone_name,
317316
"managed-by": "kube-borg-backup"
318317
}
319318
},

charts/kube-borg-backup/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: kube-borg-backup
33
description: "Kubernetes PVC snapshot and BorgBackup automation tool"
44
type: application
5-
version: 5.0.7
6-
appVersion: "5.0.7"
5+
version: 5.0.8
6+
appVersion: "5.0.8"
77
kubeVersion: ">=1.25.0-0"
88
home: https://github.com/frederikb96/kube-borg-backup
99
sources:

0 commit comments

Comments
 (0)