Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Dec 3, 2024
1 parent 87fc2db commit 7f615f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kotsadmsnapshot/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
}
Expand Down

0 comments on commit 7f615f6

Please sign in to comment.