Add hooks fields to restore context (#2755)

* Add hooks fields to restore context

Signed-off-by: Andrew Reed <andrew@replicated.com>

* Changelog

Signed-off-by: Andrew Reed <andrew@replicated.com>
This commit is contained in:
Andrew Reed
2020-07-24 11:43:44 -07:00
committed by GitHub
parent bbcbde084d
commit 9011b192e9
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
Add wait group and error channel for restore hooks to restore context.
+2
View File
@@ -317,6 +317,8 @@ type restoreContext struct {
pvRenamer func(string) (string, error)
discoveryHelper discovery.Helper
resourcePriorities []string
hooksWaitGroup sync.WaitGroup
hooksErrs chan error
}
type resourceClientKey struct {