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

Function initComponentExists

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

Source from the content-addressed store, hash-verified

186}
187
188func initComponentExists(dwTemplateSpec *v1alpha2.DevWorkspaceTemplateSpec) bool {
189 if dwTemplateSpec.Components == nil {
190 return false
191 }
192 for _, component := range dwTemplateSpec.Components {
193 if component.Name == constants.HomeInitComponentName {
194 return true
195 }
196 }
197 return false
198
199}
200
201func initCommandExists(dwTemplateSpec *v1alpha2.DevWorkspaceTemplateSpec) bool {
202 if dwTemplateSpec.Commands == nil {

Callers 1

addInitContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected