Skip to content

Commit

Permalink
fix labels.provider issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jianzhangbjz committed Apr 15, 2019
1 parent 33ccf62 commit ea1dc01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/package-server/provider/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ func toPackageManifest(pkg *api.Package, client registryClient) (*operators.Pack
CurrentCSVDesc: operators.CreateCSVDescription(&csv),
}

if manifest.Status.DefaultChannel != "" && csv.GetName() == manifest.Status.DefaultChannel || i == 0 {
manifest.Status.Provider = operators.AppLink{
if manifest.Status.DefaultChannel != "" && pkgChannel.GetName() == manifest.Status.DefaultChannel || i == 0 {
manifest.Status.Provider = v1alpha1.AppLink{
Name: csv.Spec.Provider.Name,
URL: csv.Spec.Provider.URL,
}
Expand Down

0 comments on commit ea1dc01

Please sign in to comment.