From b6667e563766980be26dd7f2759ef0ea17a20ae5 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 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/app/app.go b/pkg/app/app.go index eeed9d6763..e1e9370748 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 6b7fddba58..b5aba623d3 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 32abcdfc56..fd94fd3c33 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 }