Skip to content

Commit

Permalink
Update support bundle wording (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajp-io authored Oct 29, 2024
1 parent 5b3168a commit 2e851b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/embedded-cluster/support_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
func supportBundleCommand() *cli.Command {
return &cli.Command{
Name: "support-bundle",
Usage: fmt.Sprintf("Generate a %s support bundle", defaults.BinaryName()),
Usage: fmt.Sprintf("Generate a support bundle for %s", defaults.BinaryName()),
Before: func(c *cli.Context) error {
if os.Getuid() != 0 {
return fmt.Errorf("support-bundle command must be run as root")
Expand All @@ -32,7 +32,7 @@ func supportBundleCommand() *cli.Command {

supportBundle := provider.PathToEmbeddedClusterBinary("kubectl-support_bundle")
if _, err := os.Stat(supportBundle); err != nil {
logrus.Errorf("Support bundle binary not found. The support-bundle command can only be run after an 'install' attempt.")
logrus.Errorf("support-bundle command can only be run after an install attempt")
return ErrNothingElseToAdd
}

Expand Down Expand Up @@ -64,7 +64,7 @@ func supportBundleCommand() *cli.Command {
)

spin := spinner.Start()
spin.Infof("Collecting support bundle (this may take a while)")
spin.Infof("Generating support bundle (this can take a while)")

stdout := bytes.NewBuffer(nil)
stderr := bytes.NewBuffer(nil)
Expand All @@ -77,7 +77,7 @@ func supportBundleCommand() *cli.Command {
supportBundle,
arguments...,
); err != nil {
spin.Infof("Failed to collect support bundle")
spin.Infof("Failed to generate support bundle")
spin.CloseWithError()
io.Copy(os.Stdout, stdout)
io.Copy(os.Stderr, stderr)
Expand Down

0 comments on commit 2e851b2

Please sign in to comment.