File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/KubeOps/Operator/Entities/Extensions
tests/KubeOps.Test/Operator/Entities Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ private static V1JSONSchemaProps MapProperty(
180
180
// check if embedded resource is set
181
181
if ( info . GetCustomAttribute < EmbeddedResourceAttribute > ( ) != null )
182
182
{
183
- props . Type = null ;
183
+ props . Type = Object ;
184
184
props . Properties = null ;
185
185
props . XKubernetesPreserveUnknownFields = true ;
186
186
props . XKubernetesEmbeddedResource = true ;
Original file line number Diff line number Diff line change @@ -338,6 +338,7 @@ public void Should_Map_Embedded_Resources()
338
338
var crd = _testSpecEntity . CreateCrd ( ) ;
339
339
340
340
var specProperties = crd . Spec . Versions . First ( ) . Schema . OpenAPIV3Schema . Properties [ "spec" ] ;
341
+ specProperties . Properties [ "kubernetesObject" ] . Type . Should ( ) . Be ( "object" ) ;
341
342
specProperties . Properties [ "kubernetesObject" ] . Properties . Should ( ) . BeNull ( ) ;
342
343
specProperties . Properties [ "kubernetesObject" ] . XKubernetesPreserveUnknownFields . Should ( ) . BeTrue ( ) ;
343
344
specProperties . Properties [ "kubernetesObject" ] . XKubernetesEmbeddedResource . Should ( ) . BeTrue ( ) ;
You can’t perform that action at this time.
0 commit comments