Skip to content

Commit

Permalink
kubeobjects: disable hooks
Browse files Browse the repository at this point in the history
So far, we don't have the ability to run hooks specified in a recipe. We
were wrongly passing these hooks to velero in the capture or recover
spec.

This commit disables the hooks completely by skipping them. In a later
PR, we will add the ability to run the hooks in the recipe natively in
Ramen.

Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
raghavendra-talur committed Sep 4, 2024
1 parent b9900a5 commit 6e0a45b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/controller/vrg_kubeobjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,10 @@ func getCaptureGroups(recipe Recipe.Recipe) ([]kubeobjects.CaptureSpec, error) {
for resourceType := range resource {
resourceName := resource[resourceType]

if resourceType == "hook" {
continue
}

captureInstance, err := getResourceAndConvertToCaptureGroup(recipe, resourceType, resourceName)
if err != nil {
return resources, err
Expand All @@ -737,6 +741,10 @@ func getRecoverGroups(recipe Recipe.Recipe) ([]kubeobjects.RecoverSpec, error) {
for resourceType := range resource {
resourceName := resource[resourceType]

if resourceType == "hook" {
continue
}

captureInstance, err := getResourceAndConvertToRecoverGroup(recipe, resourceType, resourceName)
if err != nil {
return resources, err
Expand Down

0 comments on commit 6e0a45b

Please sign in to comment.