openshift / openshift-velero-plugin

General Velero plugin for backup and restore of openshift workloads.
Apache License 2.0
48 stars 38 forks source link

Execute restore if pod have hooks even if pod has owners. #114

Closed kaovilai closed 2 years ago

kaovilai commented 2 years ago

This PR add checks for pod restore hooks on owned pods and to execute them if exists instead of skipping them.

Related to https://github.com/openshift/oadp-operator/issues/453 Related to https://github.com/openshift/oadp-operator/issues/103 Related to OADP-141 **closes when oadp uses this new image

Test via OADP 0.5.3 with unsupportedOverrides

apiVersion: oadp.openshift.io/v1alpha1
kind: DataProtectionApplication
metadata:
  name: velero-sample
spec:
  unsupportedOverrides:
    openshiftPluginImageFqin: quay.io/tkaovila/openshift-velero-plugin:executeRestorePodHooksEvenIfOwned
kaovilai commented 2 years ago

/hold forgot that need to check for each postHooks

kaovilai commented 2 years ago

/unhold