DataWorkz-NL / KubeETL

ETL controller for Kubernetes
Apache License 2.0
4 stars 0 forks source link

Conflicting types in WorkflowSpec cause controller-gen to generate unstructural OpenAPI schema #26

Closed Blokje5 closed 3 years ago

Blokje5 commented 3 years ago

controller-gen generated unstructural OpenAPI schemas with the introduction of #14. This was caused by the fact that both the embedded inline wfv1.WorkflowSpec and the v1alpha1.Template (embedding wfv1.Template) lead to a conflict of the templates field in the CRD. Both the v1alpha1.WorkflowSpec.Templates as well as the v1alpha1.WorkflowSpec.ArgoWorkflowSpec.Templates ended up as templates in the generated OpenAPI spec.

See: https://github.com/kubernetes-sigs/controller-tools/issues/558 for more details.