Skip to content

Commit b292117

Browse files
Yash SethiyaYash Sethiya
authored andcommitted
Updated CR names in kind method
Signed-off-by: Yash Sethiya <[email protected]>
1 parent f9b21d3 commit b292117

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

pkg/app/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (a *App) Name() string { return a.app.Name }
7777
func (a *App) Namespace() string { return a.app.Namespace }
7878

7979
// Kind return kind of App
80-
func (a *App) Kind() string { return "app" }
80+
func (a *App) Kind() string { return "App" }
8181

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

pkg/packageinstall/packageinstall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type PackageInstallCR struct {
6161

6262
// Kind return kind of pkg install
6363
func (pi *PackageInstallCR) Kind() string {
64-
return "pkgi"
64+
return "PackageInstall"
6565
}
6666

6767
// nolint: revive

pkg/pkgrepository/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (a *App) Name() string { return a.app.Name }
5050
func (a *App) Namespace() string { return a.app.Namespace }
5151

5252
// Kind return kind of pkg repo
53-
func (a *App) Kind() string { return "pkgr" }
53+
func (a *App) Kind() string { return "PackageRepository" }
5454

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

test/e2e/kappcontroller/metrics_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import (
1212
"os/exec"
1313
"strings"
1414
"sync"
15-
//"fmt"
16-
//"os/exec"
1715
"testing"
1816
"time"
1917

0 commit comments

Comments
 (0)