Skip to content

Commit

Permalink
Fix preserve crd conversion config
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jun 6, 2024
1 parent 48f7b1d commit bc671fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiextensions/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func transform(crd *CustomResourceDefinition, preserveConversion bool) func(in *
conversion := in.Spec.Conversion
in.Spec = crd.V1.Spec
// preserve conversion
if preserveConversion && in.Spec.Conversion == nil && conversion != nil {
if preserveConversion && crd.V1.Spec.Conversion == nil && conversion != nil {
in.Spec.Conversion = conversion
}
return in
Expand Down

0 comments on commit bc671fa

Please sign in to comment.