Skip to content

Commit

Permalink
Vendoring
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Giloux <fgiloux@redhat.com>
  • Loading branch information
fgiloux authored and timflannagan committed Feb 3, 2022
1 parent b09701e commit ea20484
Show file tree
Hide file tree
Showing 338 changed files with 37,917 additions and 22,264 deletions.
22 changes: 13 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/onsi/gomega v1.15.0
github.com/openshift/api v0.0.0-20200331152225-585af27e34fd
github.com/openshift/client-go v0.0.0-20200326155132-2a6cd50aedd0
github.com/operator-framework/api v0.12.0
github.com/operator-framework/api v0.13.0
github.com/operator-framework/operator-registry v1.17.5
github.com/otiai10/copy v1.2.0
github.com/pkg/errors v0.9.1
Expand Down Expand Up @@ -77,6 +77,7 @@ require (
github.com/NYTimes/gziphandler v1.1.1 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/adrg/xdg v0.4.0 // indirect
github.com/alessio/shellescape v1.4.1 // indirect
github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20210826220005-b48c857c3a0e // indirect
github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 // indirect
Expand All @@ -85,7 +86,7 @@ require (
github.com/bshuster-repo/logrus-logstash-hook v1.0.0 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/containerd/cgroups v0.0.0-20200531161412-0dbf7f05ba59 // indirect
github.com/containerd/containerd v1.4.4 // indirect
github.com/containerd/containerd v1.4.11 // indirect
github.com/containerd/continuity v0.0.0-20201208142359-180525291bb7 // indirect
github.com/containerd/ttrpc v1.0.1 // indirect
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
Expand All @@ -110,7 +111,6 @@ require (
github.com/go-logr/zapr v0.4.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.5 // indirect
github.com/go-openapi/spec v0.19.5 // indirect
github.com/go-openapi/swag v0.19.14 // indirect
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
github.com/gobuffalo/flect v0.2.3 // indirect
Expand Down Expand Up @@ -151,7 +151,7 @@ require (
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/mattn/go-sqlite3 v1.14.6 // indirect
github.com/mattn/go-sqlite3 v1.14.10 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mitchellh/copystructure v1.1.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
Expand Down Expand Up @@ -208,7 +208,7 @@ require (
golang.org/x/mod v0.4.2 // indirect
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e // indirect
golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359 // indirect
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.1.5 // indirect
Expand All @@ -223,14 +223,14 @@ require (
gopkg.in/op/go-logging.v1 v1.0.0-20160211212156-b2cb9fa56473 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
k8s.io/cli-runtime v0.21.0 // indirect
k8s.io/cli-runtime v0.22.0 // indirect
k8s.io/gengo v0.0.0-20201214224949-b6c5ce23f027 // indirect
k8s.io/klog/v2 v2.9.0 // indirect
k8s.io/kubectl v0.21.0 // indirect
k8s.io/kubectl v0.22.0 // indirect
rsc.io/letsencrypt v0.0.3 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.22 // indirect
sigs.k8s.io/kustomize/api v0.8.5 // indirect
sigs.k8s.io/kustomize/kyaml v0.10.15 // indirect
sigs.k8s.io/kustomize/api v0.8.11 // indirect
sigs.k8s.io/kustomize/kyaml v0.11.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.1.2 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
)
Expand All @@ -240,6 +240,10 @@ replace (
github.com/openshift/api => github.com/openshift/api v0.0.0-20211014063134-be2a7fb8aa44
github.com/openshift/client-go => github.com/openshift/client-go v0.0.0-20200326155132-2a6cd50aedd0 // release-4.5

// Temporary for optional manifests before the changes get merged in the API and operator-registry repo
// github.com/operator-framework/api v0.11.1 => github.com/fgiloux/api v0.10.8-0.20220118162926-a11336b43231
github.com/operator-framework/operator-registry v1.17.5 => github.com/fgiloux/operator-registry v1.19.6-0.20220203163525-fae39646821a

// Patch for a race condition involving metadata-only
// informers until it can be resolved upstream:
sigs.k8s.io/controller-runtime v0.10.0 => github.com/timflannagan/controller-runtime v0.10.1-0.20211210161403-6756a4203e70
Expand Down
102 changes: 26 additions & 76 deletions go.sum

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion pkg/controller/operators/catalog/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2329,7 +2329,6 @@ func (o *Operator) ExecutePlan(plan *v1alpha1.InstallPlan) error {
metav1.StatusReasonConflict:
o.logger.WithFields(logrus.Fields{"kind": step.Resource.Kind, "name": step.Resource.Name}).WithError(err).Warnf("Optional manifest could not be created. Optional capabilities of the operator may not be available.")
status = v1alpha1.StepStatusNotCreated
err = nil
default:
o.logger.WithFields(logrus.Fields{"kind": step.Resource.Kind, "name": step.Resource.Name}).WithError(err).Warnf("Optional manifest could not be created, possibly due to a recoverable error, retrying")
return err
Expand Down
6 changes: 2 additions & 4 deletions pkg/controller/registry/resolver/steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ func NewStepsFromBundle(bundle *api.Bundle, namespace, replaces, catalogSourceNa

// NewQualifiedStepsFromBundle returns the steps to be populated into the InstallPlan for a bundle
// Qualified means that steps may have been flaged as optional.
func NewQualifiedStepsFromBundle(bundle *api.Bundle, filenames []string, namespace, replaces, catalogSourceName, catalogSourceNamespace string,
logger *logrus.Logger) ([]*v1alpha1.Step, error) {

func NewQualifiedStepsFromBundle(bundle *api.Bundle, filenames []string, namespace, replaces, catalogSourceName, catalogSourceNamespace string, logger *logrus.Logger) ([]*v1alpha1.Step, error) {
bundleSteps, err := NewStepResourceFromBundle(bundle, namespace, replaces, catalogSourceName, catalogSourceNamespace)
if err != nil {
return nil, err
Expand Down Expand Up @@ -220,7 +218,7 @@ func NewQualifiedStepsFromBundle(bundle *api.Bundle, filenames []string, namespa
}
// CSV should be positioned first
if s.Kind == v1alpha1.ClusterServiceVersionKind {
steps = append([]*v1alpha1.Step{&v1alpha1.Step{
steps = append([]*v1alpha1.Step{{
Resolving: bundle.CsvName,
Resource: s,
Optional: optional,
Expand Down
2 changes: 0 additions & 2 deletions pkg/controller/registry/resolver/steps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const (
)

func TestIsOptional(t *testing.T) {

type isOptionalTests struct {
filenames []string
results []bool
Expand Down Expand Up @@ -46,5 +45,4 @@ func TestIsOptional(t *testing.T) {
t.Errorf("filename: %s, got %t; want %t", filename, result, ioTests.results[i])
}
}

}
80 changes: 75 additions & 5 deletions pkg/fakes/fake_registry_store.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ea20484

Please sign in to comment.