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)

This commit is contained in:
Hermes Agent 2026-08-07 05:18:52 +00:00
parent 47205db5b2
commit 51133b559a

View File

@ -14,6 +14,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
const cachePath = "/cache"
func buildBackupJob(cfg *config.Config, req api.BackupRequest, jobName, secretName, repository string, dedupeEnabled bool, keepLast int) *batchv1.Job { func buildBackupJob(cfg *config.Config, req api.BackupRequest, jobName, secretName, repository string, dedupeEnabled bool, keepLast int) *batchv1.Job {
labels := map[string]string{ labels := map[string]string{
labelAppName: "soteria", labelAppName: "soteria",