From f1a7e512e8dd093de26a6df457db37a5f28c211f Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Tue, 23 Nov 2021 01:01:24 +0800 Subject: [PATCH] Update issue template to reference velero debug (#4384) Signed-off-by: Daniel Jiang --- .github/ISSUE_TEMPLATE/bug_report.md | 7 +++++-- pkg/cmd/cli/bug/bug.go | 9 +++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 131b6ccb5c..18cd57a9a5 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -10,10 +10,13 @@ about: Tell us about a problem you are experiencing **What did you expect to happen:** +**The following information will help us better understand what's going on**: -**The output of the following commands will help us better understand what's going on**: -(Pasting long output into a [GitHub gist](https://gist.github.com) or other pastebin is fine.) +_If you are using velero v1.7.0+:_ +Please use `velero debug --backup --restore ` to generate the support bundle, and attach to this issue, more options please refer to `velero debug --help` +_If you are using earlier versions:_ +Please provide the output of the following commands (Pasting long output into a [GitHub gist](https://gist.github.com) or other pastebin is fine.) - `kubectl logs deployment/velero -n velero` - `velero backup describe ` or `kubectl get backup/ -n velero -o yaml` - `velero backup logs ` diff --git a/pkg/cmd/cli/bug/bug.go b/pkg/cmd/cli/bug/bug.go index e5d0952aa8..ea775ec316 100644 --- a/pkg/cmd/cli/bug/bug.go +++ b/pkg/cmd/cli/bug/bug.go @@ -55,10 +55,15 @@ about: Tell us about a problem you are experiencing **What did you expect to happen:** +**The following information will help us better understand what's going on**: -**The output of the following commands will help us better understand what's going on**: -(Pasting long output into a [GitHub gist](https://gist.github.com) or other pastebin is fine.) +_If you are using velero v1.7.0+:_ +Please use ` + "`velero debug --backup --restore ` " + + `to generate the support bundle, and attach to this issue, more options please refer to ` + + "`velero debug --help` " + ` +_If you are using earlier versions:_ +Please provide the output of the following commands (Pasting long output into a [GitHub gist](https://gist.github.com) or other pastebin is fine.) - ` + "`kubectl logs deployment/velero -n velero`" + ` - ` + "`velero backup describe ` or `kubectl get backup/ -n velero -o yaml`" + ` - ` + "`velero backup logs `" + `