Skip to content

Commit

Permalink
Updated CR names in kind method
Browse files Browse the repository at this point in the history
Signed-off-by: Yash Sethiya <[email protected]>
  • Loading branch information
Yash Sethiya authored and Yash Sethiya committed Jan 25, 2024
1 parent f9b21d3 commit b292117
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (a *App) Name() string { return a.app.Name }
func (a *App) Namespace() string { return a.app.Namespace }

// Kind return kind of App
func (a *App) Kind() string { return "app" }
func (a *App) Kind() string { return "App" }

func (a *App) Status() v1alpha1.AppStatus { return a.app.Status }

Expand Down
2 changes: 1 addition & 1 deletion pkg/packageinstall/packageinstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type PackageInstallCR struct {

// Kind return kind of pkg install
func (pi *PackageInstallCR) Kind() string {
return "pkgi"
return "PackageInstall"
}

// nolint: revive
Expand Down
2 changes: 1 addition & 1 deletion pkg/pkgrepository/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (a *App) Name() string { return a.app.Name }
func (a *App) Namespace() string { return a.app.Namespace }

// Kind return kind of pkg repo
func (a *App) Kind() string { return "pkgr" }
func (a *App) Kind() string { return "PackageRepository" }

func (a *App) Status() v1alpha1.AppStatus { return a.app.Status }

Expand Down
2 changes: 0 additions & 2 deletions test/e2e/kappcontroller/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import (
"os/exec"
"strings"
"sync"
//"fmt"
//"os/exec"
"testing"
"time"

Expand Down

0 comments on commit b292117

Please sign in to comment.