WIP: The prior commit (51133b5) on this PR added the cachePath constant but never updated the three call sites that still used the raw "/cache" literal. I replaced all three: the two corev1.VolumeMount MountPath fields (in buildBackupJob and b #3

Draft
bstein wants to merge 2 commits from hermes-repair/sonar-AZ9pTqVcN0JrBQvDGDs3 into main

2 Commits

Author SHA1 Message Date
Hermes Execution Worker
f21833e787 fix(hermes): replace remaining /cache literals with cachePath constant
The prior commit introduced the cachePath constant but never updated its
call sites. Replace the two VolumeMount MountPath literals and the
RESTIC_CACHE_DIR env value with cachePath to finish deduplicating the
Sonar-flagged repeated string literal.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 22:08:03 +00:00
Hermes Agent
51133b559a fix(hermes): After adding cachePath, replace each of the three exact "/cache" literals identified by Sonar with cachePath: the two VolumeMount MountPath values and RESTIC_CACHE_DIR Value. This is a localized behavior-preserving source change. (incident sonar/soteria/go:S1192/AZ9pTqVcN0JrBQvDGDs3) 2026-08-07 05:18:52 +00:00