Skip to content

Commit

Permalink
Propagate conversion errors
Browse files Browse the repository at this point in the history
Kubernetes-commit: aeff924339a6f34e424a654227a8073e88a70b89
  • Loading branch information
liggitt authored and k8s-publishing-bot committed Sep 13, 2021
1 parent 9ea1b11 commit 068ccef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/apiextensions/v1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func Convert_apiextensions_CustomResourceDefinitionSpec_To_v1_CustomResourceDefi

func Convert_v1_CustomResourceDefinitionSpec_To_apiextensions_CustomResourceDefinitionSpec(in *CustomResourceDefinitionSpec, out *apiextensions.CustomResourceDefinitionSpec, s conversion.Scope) error {
if err := autoConvert_v1_CustomResourceDefinitionSpec_To_apiextensions_CustomResourceDefinitionSpec(in, out, s); err != nil {
return nil
return err
}

if len(out.Versions) == 0 {
Expand Down

0 comments on commit 068ccef

Please sign in to comment.