@@ -26,8 +26,8 @@ type InvokeKind string
2626const (
2727 // InvokeKindSync meaning that worfklow execution should wait until the target completes.
2828 InvokeKindSync InvokeKind = "sync"
29-
30- // InvokeKindAsync meaning that workflow execution should just invoke the target and should not wait until its completion.
29+ // InvokeKindAsync meaning that workflow execution should just invoke the target and should not wait until its
30+ // completion.
3131 InvokeKindAsync InvokeKind = "async"
3232)
3333
@@ -75,6 +75,8 @@ type BaseWorkflow struct {
7575 // +optional
7676 Version string `json:"version" validate:"omitempty,min=1"`
7777 // Workflow start definition.
78+ // +kubebuilder:validation:Schemaless
79+ // +kubebuilder:pruning:PreserveUnknownFields
7880 // +optional
7981 Start * Start `json:"start,omitempty"`
8082 // Annotations List of helpful terms describing the workflows intended purpose, subject areas, or other important
@@ -112,6 +114,8 @@ type BaseWorkflow struct {
112114 // +optional
113115 KeepActive bool `json:"keepActive,omitempty"`
114116 // Metadata custom information shared with the runtime.
117+ // +kubebuilder:validation:Schemaless
118+ // +kubebuilder:pruning:PreserveUnknownFields
115119 // +optional
116120 Metadata Metadata `json:"metadata,omitempty"`
117121 // AutoRetries If set to true, actions should automatically be retried on unchecked errors. Default is false
@@ -120,6 +124,8 @@ type BaseWorkflow struct {
120124 // Auth definitions can be used to define authentication information that should be applied to resources defined
121125 // in the operation property of function definitions. It is not used as authentication information for the
122126 // function invocation, but just to access the resource containing the function invocation information.
127+ // +kubebuilder:validation:Schemaless
128+ // +kubebuilder:pruning:PreserveUnknownFields
123129 // +optional
124130 Auth AuthArray `json:"auth,omitempty" validate:"omitempty"`
125131}
@@ -524,9 +530,17 @@ type OnError struct {
524530 ErrorRef string `json:"errorRef,omitempty"`
525531 // ErrorRefs References one or more workflow error definitions. Used if errorRef is not used
526532 ErrorRefs []string `json:"errorRefs,omitempty"`
527- // Transition to next state to handle the error. If retryRef is defined, this transition is taken only if retries were unsuccessful.
533+ // Transition to next state to handle the error. If retryRef is defined, this transition is taken only if
534+ // retries were unsuccessful.
535+ // +kubebuilder:validation:Schemaless
536+ // +kubebuilder:pruning:PreserveUnknownFields
537+ // +optional
528538 Transition * Transition `json:"transition,omitempty"`
529- // End workflow execution in case of this error. If retryRef is defined, this ends workflow only if retries were unsuccessful.
539+ // End workflow execution in case of this error. If retryRef is defined, this ends workflow only if
540+ // retries were unsuccessful.
541+ // +kubebuilder:validation:Schemaless
542+ // +kubebuilder:pruning:PreserveUnknownFields
543+ // +optional
530544 End * End `json:"end,omitempty"`
531545}
532546
0 commit comments