File tree 1 file changed +1
-1
lines changed
pkg/controller/operators/catalog
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ func (b *builder) NewCRDV1Step(client apiextensionsv1client.ApiextensionsV1Inter
144
144
// if the conversion strategy in the new CRD is "None" OR the error is not a ValidationError
145
145
// return an error. This will catch and return any errors that occur unrelated to actual validation.
146
146
// For example, the API server returning an error when performing a list operation
147
- if crd .Spec .Conversion .Strategy == apiextensionsv1 .NoneConverter || ! errors .As (err , vErr ) {
147
+ if crd .Spec .Conversion == nil || crd . Spec . Conversion .Strategy == apiextensionsv1 .NoneConverter || ! errors .As (err , vErr ) {
148
148
return fmt .Errorf ("error validating existing CRs against new CRD's schema for %q: %w" , step .Resource .Name , err )
149
149
}
150
150
// If the conversion strategy in the new CRD is not "None" and the error that occurred
You can’t perform that action at this time.
0 commit comments