| 72 | } |
| 73 | |
| 74 | type Command struct { |
| 75 | // Mandatory identifier that allows referencing |
| 76 | // this command in composite commands, from |
| 77 | // a parent, or in events. |
| 78 | // +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ |
| 79 | // +kubebuilder:validation:MaxLength=63 |
| 80 | Id string `json:"id"` |
| 81 | // Map of implementation-dependant free-form YAML attributes. |
| 82 | // +optional |
| 83 | // +kubebuilder:validation:Type=object |
| 84 | // +kubebuilder:pruning:PreserveUnknownFields |
| 85 | // +kubebuilder:validation:Schemaless |
| 86 | Attributes attributes.Attributes `json:"attributes,omitempty"` |
| 87 | CommandUnion `json:",inline"` |
| 88 | } |
| 89 | |
| 90 | // +union |
| 91 | type CommandUnion struct { |
nothing calls this directly
no outgoing calls
no test coverage detected