| 42 | } |
| 43 | |
| 44 | type StarterProject struct { |
| 45 | // Project name |
| 46 | // +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ |
| 47 | // +kubebuilder:validation:MaxLength=63 |
| 48 | Name string `json:"name"` |
| 49 | |
| 50 | // Map of implementation-dependant free-form YAML attributes. |
| 51 | // +optional |
| 52 | // +kubebuilder:validation:Type=object |
| 53 | // +kubebuilder:pruning:PreserveUnknownFields |
| 54 | // +kubebuilder:validation:Schemaless |
| 55 | Attributes attributes.Attributes `json:"attributes,omitempty"` |
| 56 | |
| 57 | // Description of a starter project |
| 58 | // +optional |
| 59 | Description string `json:"description,omitempty"` |
| 60 | |
| 61 | // Sub-directory from a starter project to be used as root for starter project. |
| 62 | // +optional |
| 63 | SubDir string `json:"subDir,omitempty"` |
| 64 | |
| 65 | ProjectSource `json:",inline"` |
| 66 | } |
| 67 | |
| 68 | // ProjectSourceType describes the type of Project sources. |
| 69 | // Only one of the following project sources may be specified. |
nothing calls this directly
no outgoing calls
no test coverage detected