+k8s:openapi-gen=true
| 43 | |
| 44 | // +k8s:openapi-gen=true |
| 45 | type Component struct { |
| 46 | // Mandatory name that allows referencing the component |
| 47 | // from other elements (such as commands) or from an external |
| 48 | // devfile that may reference this component through a parent or a plugin. |
| 49 | // +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ |
| 50 | // +kubebuilder:validation:MaxLength=63 |
| 51 | Name string `json:"name"` |
| 52 | // Map of implementation-dependant free-form YAML attributes. |
| 53 | // +optional |
| 54 | // +kubebuilder:validation:Type=object |
| 55 | // +kubebuilder:pruning:PreserveUnknownFields |
| 56 | // +kubebuilder:validation:Schemaless |
| 57 | Attributes attributes.Attributes `json:"attributes,omitempty"` |
| 58 | ComponentUnion `json:",inline"` |
| 59 | } |
| 60 | |
| 61 | // +union |
| 62 | type ComponentUnion struct { |
nothing calls this directly
no outgoing calls
no test coverage detected