Skip to content

Commit a6e1e93

Browse files
authored
Merge pull request #1101 from ecordell/resolver-required-apis
feat(resolver): use provided and required apis from grpc
2 parents eb9a999 + 25901bc commit a6e1e93

File tree

75 files changed

+3022
-1325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+3022
-1325
lines changed

go.mod

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ require (
2424
github.com/munnerz/goautoneg v0.0.0-20190414153302-2ae31c8b6b30 // indirect
2525
github.com/openshift/api v3.9.1-0.20190924102528-32369d4db2ad+incompatible
2626
github.com/openshift/client-go v0.0.0-20190923180330-3b6373338c9b
27-
github.com/operator-framework/operator-registry v1.4.0
27+
github.com/operator-framework/operator-registry v1.5.1
2828
github.com/pkg/errors v0.8.1
29-
github.com/prometheus/client_golang v0.9.2
30-
github.com/prometheus/common v0.0.0-20190104105734-b1c43a6df3ae // indirect
31-
github.com/prometheus/procfs v0.0.0-20190104112138-b1a0a9a36d74 // indirect
29+
github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829
3230
github.com/sirupsen/logrus v1.4.2
3331
github.com/soheilhy/cmux v0.1.4 // indirect
3432
github.com/spf13/cobra v0.0.5

go.sum

Lines changed: 93 additions & 0 deletions
Large diffs are not rendered by default.

pkg/api/wrappers/wrappersfakes/fake_install_strategy_deployment_interface.go

Lines changed: 55 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/controller/operators/catalog/operator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ func (o *Operator) ensureSubscriptionCSVState(logger *logrus.Entry, sub *v1alpha
866866
}
867867
bundle, _, _ := querier.FindReplacement(&csv.Spec.Version.Version, sub.Status.CurrentCSV, sub.Spec.Package, sub.Spec.Channel, resolver.CatalogKey{Name: sub.Spec.CatalogSource, Namespace: sub.Spec.CatalogSourceNamespace})
868868
if bundle != nil {
869-
o.logger.Tracef("replacement %s bundle found for current bundle %s", bundle.Name, sub.Status.CurrentCSV)
869+
o.logger.Tracef("replacement %s bundle found for current bundle %s", bundle.CsvName, sub.Status.CurrentCSV)
870870
out.Status.State = v1alpha1.SubscriptionStateUpgradeAvailable
871871
} else {
872872
out.Status.State = v1alpha1.SubscriptionStateAtLatest

pkg/controller/registry/resolver/evolver.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package resolver
22

33
import (
4-
opregistry "github.com/operator-framework/operator-registry/pkg/registry"
54
"github.com/pkg/errors"
5+
6+
"github.com/operator-framework/operator-registry/pkg/api"
67
)
78

89
// TODO: this should take a cancellable context for killing long resolution
@@ -76,7 +77,7 @@ func (e *NamespaceGenerationEvolver) checkForUpdates() error {
7677

7778
func (e *NamespaceGenerationEvolver) addNewOperators(add map[OperatorSourceInfo]struct{}) error {
7879
for s := range add {
79-
var bundle *opregistry.Bundle
80+
var bundle *api.Bundle
8081
var key *CatalogKey
8182
var err error
8283
if s.StartingCSV != "" {

0 commit comments

Comments
 (0)