Skip to content

Commit

Permalink
kubeobjects: disable hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
raghavendra-talur committed Sep 4, 2024
1 parent b9900a5 commit 95fbf66
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 95fbf66

Please sign in to comment.