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:
parent
47205db5b2
commit
51133b559a
@ -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",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user