Skip to content

Commit

Permalink
fix: knative model generator now correctly handles RawExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
iocanel committed Feb 24, 2021
1 parent 5bfb7d8 commit ab5c275
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* Fix #2748: Pass custom headers in kubernetes-client to watch api by modify WatchConnectionManager
* Fix #2745: Filtering Operations can't configure PropagationPolicy
* Fix #2672: WaitUntilReady for Service resource throws IllegalArgumentException
* Fix: Knative model genrator is now aligned with all other generators

#### Improvements
* Fix #2717: Remove edit() methods from RawCustomResourceOperationsImpl taking InputStream arguments
Expand Down
2 changes: 1 addition & 1 deletion extensions/knative/generator/cmd/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func main() {
manualTypeMap := map[reflect.Type]string{
reflect.TypeOf(apis.URL{}): "java.lang.String",
reflect.TypeOf(apis.VolatileTime{}): "java.lang.String",
reflect.TypeOf(runtime.RawExtension{}): "io.fabric8.kubernetes.api.model.HasMetadata",
reflect.TypeOf(runtime.RawExtension{}): "java.util.Map<String, Object>",
}

json := schemagen.GenerateSchema("http://fabric8.io/knative/KnativeSchema#", crdLists, providedPackages, manualTypeMap, packageMapping, mappingSchema, providedTypes, constraints)
Expand Down

0 comments on commit ab5c275

Please sign in to comment.