Skip to content

Commit

Permalink
Rephrasing 'kapp controller' => 'kapp-controller' while displaying co…
Browse files Browse the repository at this point in the history
…ntroller version
  • Loading branch information
100mik committed Jan 18, 2022
1 parent c4a7428 commit d48ec59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/pkg/kctrl/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (o *VersionOptions) showControllerVersion() error {
return err
}

o.ui.PrintBlock([]byte(fmt.Sprintf("kapp controller version %s\n", controllerDeployment.GetAnnotations()[kappControllerVersionAnn])))
o.ui.PrintBlock([]byte(fmt.Sprintf("kapp-controller version %s\n", controllerDeployment.GetAnnotations()[kappControllerVersionAnn])))

return nil
}
2 changes: 1 addition & 1 deletion cli/test/e2e/controller_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestControllerVersion(t *testing.T) {

out, _ := kappCtrl.RunWithOpts([]string{"version", "--controller"}, RunOpts{NoNamespace: true})

if !strings.Contains(out, "kapp controller version") {
if !strings.Contains(out, "kapp-controller version") {
t.Fatalf("Expected to find controller version")
}
}

0 comments on commit d48ec59

Please sign in to comment.