From c291116f03b432d300de823ac0e58b256072abcd Mon Sep 17 00:00:00 2001 From: Devanshu Date: Fri, 23 Aug 2024 16:24:52 +0530 Subject: [PATCH] Removed whitespace check Signed-off-by: Devanshu --- cli/pkg/kctrl/cmd/package/repository/add_or_update.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/pkg/kctrl/cmd/package/repository/add_or_update.go b/cli/pkg/kctrl/cmd/package/repository/add_or_update.go index 6ade05100..e42f9419f 100644 --- a/cli/pkg/kctrl/cmd/package/repository/add_or_update.go +++ b/cli/pkg/kctrl/cmd/package/repository/add_or_update.go @@ -260,7 +260,7 @@ func (o *AddOrUpdateOptions) updateExistingPackageRepository(pkgr *kcpkg.Package ImgpkgBundle: &kappctrl.AppFetchImgpkgBundle{Image: o.URL}, } - if strings.TrimSpace(o.Secret) != "" { + if o.Secret != "" { pkgr.Spec.Fetch.ImgpkgBundle.SecretRef = &kappctrl.AppFetchLocalRef{Name: o.Secret} } @@ -323,7 +323,7 @@ func (o AddOrUpdateOptions) dryRun() error { }, } - if strings.TrimSpace(o.Secret) != "" { + if o.Secret != "" { packageRepo.Spec.Fetch.ImgpkgBundle.SecretRef = &kappctrl.AppFetchLocalRef{Name: o.Secret} }