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.
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 (embeddingwfv1.Template
) lead to a conflict of the templates field in the CRD. Both thev1alpha1.WorkflowSpec.Templates
as well as thev1alpha1.WorkflowSpec.ArgoWorkflowSpec.Templates
ended up astemplates
in the generated OpenAPI spec.See: https://github.com/kubernetes-sigs/controller-tools/issues/558 for more details.