mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 13:55:20 +00:00
remove deprecated hooks (replaced by pre hooks) (#1384)
Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
@@ -172,10 +172,21 @@ func DescribeBackupSpec(d *Describer, spec velerov1api.BackupSpec) {
|
||||
}
|
||||
d.Printf("\t\t\tLabel selector:\t%s\n", s)
|
||||
|
||||
for _, hook := range backupResourceHookSpec.Hooks {
|
||||
for _, hook := range backupResourceHookSpec.PreHooks {
|
||||
if hook.Exec != nil {
|
||||
d.Println()
|
||||
d.Printf("\t\t\tExec Hook:\n")
|
||||
d.Printf("\t\t\tPre Exec Hook:\n")
|
||||
d.Printf("\t\t\t\tContainer:\t%s\n", hook.Exec.Container)
|
||||
d.Printf("\t\t\t\tCommand:\t%s\n", strings.Join(hook.Exec.Command, " "))
|
||||
d.Printf("\t\t\t\tOn Error:\t%s\n", hook.Exec.OnError)
|
||||
d.Printf("\t\t\t\tTimeout:\t%s\n", hook.Exec.Timeout.Duration)
|
||||
}
|
||||
}
|
||||
|
||||
for _, hook := range backupResourceHookSpec.PostHooks {
|
||||
if hook.Exec != nil {
|
||||
d.Println()
|
||||
d.Printf("\t\t\tPost Exec Hook:\n")
|
||||
d.Printf("\t\t\t\tContainer:\t%s\n", hook.Exec.Container)
|
||||
d.Printf("\t\t\t\tCommand:\t%s\n", strings.Join(hook.Exec.Command, " "))
|
||||
d.Printf("\t\t\t\tOn Error:\t%s\n", hook.Exec.OnError)
|
||||
|
||||
Reference in New Issue
Block a user