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

Function NeedsContainerOverride

pkg/library/overrides/containers.go:37–39  ·  view source on GitHub ↗
(component *dw.Component)

Source from the content-addressed store, hash-verified

35)
36
37func NeedsContainerOverride(component *dw.Component) bool {
38 return component.Container != nil && component.Attributes.Exists(constants.ContainerOverridesAttribute)
39}
40
41func ApplyContainerOverrides(component *dw.Component, container *corev1.Container, restrictedFields []string) (*corev1.Container, error) {
42 override := &corev1.Container{}

Callers 1

Calls 1

ExistsMethod · 0.80

Tested by

no test coverage detected