Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
deps: bump api repo to v0.3.8 (operator-framework#3282)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Stroczynski authored and estroz committed Jun 24, 2020
1 parent e22d2ab commit 2b65b7c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog/fragments/validation-bug-bump-api-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
entries:
- description: >
Fix bug in `bundle validate` that erroneously causes errors when a CRD manifest contains versions
not present in a bundled CSV by bumping the api library version.
kind: bugfix
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/mitchellh/mapstructure v1.1.2
github.com/onsi/ginkgo v1.12.0
github.com/onsi/gomega v1.9.0
github.com/operator-framework/api v0.3.7-0.20200602203552-431198de9fc2
github.com/operator-framework/api v0.3.8
github.com/operator-framework/operator-registry v1.12.6-0.20200611222234-275301b779f8
github.com/pborman/uuid v1.2.0
github.com/pkg/errors v0.9.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,8 @@ github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFSt
github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw=
github.com/operator-framework/api v0.3.7-0.20200602203552-431198de9fc2 h1:2KtDe3jI6ftXGj5M875WVvv6pBIk4K9DyrwPuE+XfOc=
github.com/operator-framework/api v0.3.7-0.20200602203552-431198de9fc2/go.mod h1:Xbje9x0SHmh0nihE21kpesB38vk3cyxnE6JdDS8Jo1Q=
github.com/operator-framework/api v0.3.8 h1:tJykTCmwGKZBsPVTCfxbwz6nTF6dzmKydWJtC40erc8=
github.com/operator-framework/api v0.3.8/go.mod h1:Xbje9x0SHmh0nihE21kpesB38vk3cyxnE6JdDS8Jo1Q=
github.com/operator-framework/operator-registry v1.12.6-0.20200611222234-275301b779f8 h1:F3zzxoBJJANdKMxmSOi5z/HWiVT+gwOdhROkEwDWD2M=
github.com/operator-framework/operator-registry v1.12.6-0.20200611222234-275301b779f8/go.mod h1:loVINznYhgBIkmv83kU4yee88RS0BBk+hqOw9r4bhJk=
github.com/otiai10/copy v1.2.0 h1:HvG945u96iNadPoG2/Ja2+AUJeW5YuFQMixq9yirC+k=
Expand Down
4 changes: 3 additions & 1 deletion internal/scorecard/alpha/tests/olm.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func BundleValidationTest(dir string) scapiv1alpha2.ScorecardTestResult {
if err != nil {
r.State = scapiv1alpha2.FailState
r.Errors = append(r.Errors, err.Error())
r.Log = buf.String()
return r
}

objs := []interface{}{bundle, bundle.CSV}
Expand All @@ -97,7 +99,7 @@ func BundleValidationTest(dir string) scapiv1alpha2.ScorecardTestResult {
for _, crd := range bundle.V1beta1CRDs {
objs = append(objs, crd)
}
validationResults := apivalidation.AllValidators.Validate(objs...)
validationResults := apivalidation.DefaultBundleValidators.Validate(objs...)
for _, result := range validationResults {
for _, e := range result.Errors {
r.Errors = append(r.Errors, e.Error())
Expand Down
2 changes: 1 addition & 1 deletion internal/scorecard/plugins/olm_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (t *BundleValidationTest) Run(ctx context.Context) *schelpers.TestResult {
for _, crd := range bundle.V1beta1CRDs {
objs = append(objs, crd)
}
validationResults := apivalidation.AllValidators.Validate(objs...)
validationResults := apivalidation.DefaultBundleValidators.Validate(objs...)
for _, result := range validationResults {
for _, e := range result.Errors {
res.Errors = append(res.Errors, &e)
Expand Down

0 comments on commit 2b65b7c

Please sign in to comment.