From ab6e1eb64dc1e209968dbedf379baef0ea220b75 Mon Sep 17 00:00:00 2001 From: Jian Zhang Date: Tue, 19 Mar 2019 18:27:11 +0800 Subject: [PATCH] fix labels.provider issue --- pkg/package-server/provider/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/package-server/provider/registry.go b/pkg/package-server/provider/registry.go index 85dc251fa0..b0acfeed98 100644 --- a/pkg/package-server/provider/registry.go +++ b/pkg/package-server/provider/registry.go @@ -327,7 +327,7 @@ func toPackageManifest(pkg *api.Package, client registryClient) (*operators.Pack CurrentCSVDesc: operators.CreateCSVDescription(&csv), } - if manifest.Status.DefaultChannel != "" && csv.GetName() == manifest.Status.DefaultChannel || i == 0 { + if manifest.Status.DefaultChannel != "" && pkgChannel.GetName() == manifest.Status.DefaultChannel || i == 0 { manifest.Status.Provider = operators.AppLink{ Name: csv.Spec.Provider.Name, URL: csv.Spec.Provider.URL,