Make ResticIdentifier optional for kopia repositories (#8987)

The ResticIdentifier field in BackupRepository is only relevant for restic
repositories. For kopia repositories, this field is unused and should be
omitted. This change:

- Adds omitempty tag to ResticIdentifier field in BackupRepository CRD
- Updates controller to only populate ResticIdentifier for restic repos
- Adds tests to verify behavior for both restic and kopia repository types

This ensures backward compatibility while properly handling kopia repositories
that don't require a restic-compatible identifier.

Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
This commit is contained in:
Tiger Kaovilai
2025-07-24 21:25:09 -05:00
committed by GitHub
parent ddb3e3d33e
commit 1daa685e7d
6 changed files with 277 additions and 46 deletions

View File

@@ -0,0 +1 @@
Make ResticIdentifier optional for kopia BackupRepositories