MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / initCommandExists

Function initCommandExists

pkg/library/home/persistentHome.go:201–211  ·  view source on GitHub ↗
(dwTemplateSpec *v1alpha2.DevWorkspaceTemplateSpec)

Source from the content-addressed store, hash-verified

199}
200
201func 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
213func initEventExists(dwTemplateSpec *v1alpha2.DevWorkspaceTemplateSpec) bool {
214 if dwTemplateSpec.Events == nil {

Callers 1

addInitContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected