(dwTemplateSpec *v1alpha2.DevWorkspaceTemplateSpec)
| 199 | } |
| 200 | |
| 201 | func initCommandExists(dwTemplateSpec *v1alpha2.DevWorkspaceTemplateSpec) bool { |
| 202 | if dwTemplateSpec.Commands == nil { |
| 203 | return false |
| 204 | } |
| 205 | for _, command := range dwTemplateSpec.Commands { |
| 206 | if command.Id == constants.HomeInitEventId { |
| 207 | return true |
| 208 | } |
| 209 | } |
| 210 | return false |
| 211 | } |
| 212 | |
| 213 | func initEventExists(dwTemplateSpec *v1alpha2.DevWorkspaceTemplateSpec) bool { |
| 214 | if dwTemplateSpec.Events == nil { |