@@ -26,8 +26,8 @@ type InvokeKind string
26
26
const (
27
27
// InvokeKindSync meaning that worfklow execution should wait until the target completes.
28
28
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.
31
31
InvokeKindAsync InvokeKind = "async"
32
32
)
33
33
@@ -75,6 +75,8 @@ type BaseWorkflow struct {
75
75
// +optional
76
76
Version string `json:"version" validate:"omitempty,min=1"`
77
77
// Workflow start definition.
78
+ // +kubebuilder:validation:Schemaless
79
+ // +kubebuilder:pruning:PreserveUnknownFields
78
80
// +optional
79
81
Start * Start `json:"start,omitempty"`
80
82
// Annotations List of helpful terms describing the workflows intended purpose, subject areas, or other important
@@ -112,6 +114,8 @@ type BaseWorkflow struct {
112
114
// +optional
113
115
KeepActive bool `json:"keepActive,omitempty"`
114
116
// Metadata custom information shared with the runtime.
117
+ // +kubebuilder:validation:Schemaless
118
+ // +kubebuilder:pruning:PreserveUnknownFields
115
119
// +optional
116
120
Metadata Metadata `json:"metadata,omitempty"`
117
121
// AutoRetries If set to true, actions should automatically be retried on unchecked errors. Default is false
@@ -120,6 +124,8 @@ type BaseWorkflow struct {
120
124
// Auth definitions can be used to define authentication information that should be applied to resources defined
121
125
// in the operation property of function definitions. It is not used as authentication information for the
122
126
// function invocation, but just to access the resource containing the function invocation information.
127
+ // +kubebuilder:validation:Schemaless
128
+ // +kubebuilder:pruning:PreserveUnknownFields
123
129
// +optional
124
130
Auth AuthArray `json:"auth,omitempty" validate:"omitempty"`
125
131
}
@@ -524,9 +530,17 @@ type OnError struct {
524
530
ErrorRef string `json:"errorRef,omitempty"`
525
531
// ErrorRefs References one or more workflow error definitions. Used if errorRef is not used
526
532
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
528
538
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
530
544
End * End `json:"end,omitempty"`
531
545
}
532
546
0 commit comments