From b292117cebee39ba6c59fe7dc152b213c2baa920 Mon Sep 17 00:00:00 2001 From: Yash Sethiya Date: Wed, 24 Jan 2024 13:35:02 +0530 Subject: [PATCH] Updated CR names in kind method Signed-off-by: Yash Sethiya --- pkg/app/app.go | 2 +- pkg/packageinstall/packageinstall.go | 2 +- pkg/pkgrepository/app.go | 2 +- test/e2e/kappcontroller/metrics_test.go | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg/app/app.go b/pkg/app/app.go index eeed9d676..e1e937074 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -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 } diff --git a/pkg/packageinstall/packageinstall.go b/pkg/packageinstall/packageinstall.go index 6b7fddba5..b5aba623d 100644 --- a/pkg/packageinstall/packageinstall.go +++ b/pkg/packageinstall/packageinstall.go @@ -61,7 +61,7 @@ type PackageInstallCR struct { // Kind return kind of pkg install func (pi *PackageInstallCR) Kind() string { - return "pkgi" + return "PackageInstall" } // nolint: revive diff --git a/pkg/pkgrepository/app.go b/pkg/pkgrepository/app.go index 32abcdfc5..fd94fd3c3 100644 --- a/pkg/pkgrepository/app.go +++ b/pkg/pkgrepository/app.go @@ -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 } diff --git a/test/e2e/kappcontroller/metrics_test.go b/test/e2e/kappcontroller/metrics_test.go index 09c7f7694..ab6526a38 100644 --- a/test/e2e/kappcontroller/metrics_test.go +++ b/test/e2e/kappcontroller/metrics_test.go @@ -12,8 +12,6 @@ import ( "os/exec" "strings" "sync" - //"fmt" - //"os/exec" "testing" "time"