From 7f615f6c5a413c65df0adb63a00e226d02d9cf1e Mon Sep 17 00:00:00 2001 From: Ethan Mosbaugh Date: Mon, 2 Dec 2024 21:16:05 -0800 Subject: [PATCH] f --- pkg/kotsadmsnapshot/backup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/kotsadmsnapshot/backup.go b/pkg/kotsadmsnapshot/backup.go index 49cdc11ccf..333983f222 100644 --- a/pkg/kotsadmsnapshot/backup.go +++ b/pkg/kotsadmsnapshot/backup.go @@ -580,7 +580,7 @@ func getAppInstanceBackup(apps []*apptypes.App, kotsadmNamespace string) (*veler // - includedResources // - excludedResources // - labelSelector -func mergeAppBackupSpec(backup *velerov1.Backup, kotsKinds *kotsutil.KotsKinds, a *apptypes.App, kotsadmNamespace string) error { +func mergeAppBackupSpec(backup *velerov1.Backup, kotsKinds *kotsutil.KotsKinds, app *apptypes.App, kotsadmNamespace string) error { backupSpec, err := kotsKinds.Marshal("velero.io", "v1", "Backup") if err != nil { return errors.Wrap(err, "failed to get backup spec from kotskinds") @@ -596,7 +596,7 @@ func mergeAppBackupSpec(backup *velerov1.Backup, kotsKinds *kotsutil.KotsKinds, return nil } } else { - renderedBackup, err := helper.RenderAppFile(a, nil, []byte(backupSpec), kotsKinds, kotsadmNamespace) + renderedBackup, err := helper.RenderAppFile(app, nil, []byte(backupSpec), kotsKinds, kotsadmNamespace) if err != nil { return errors.Wrap(err, "failed to render backup") }