MCPcopy Index your code
hub / github.com/devspace-sh/devspace / validatePipelines

Function validatePipelines

pkg/devspace/config/versions/validate.go:160–168  ·  view source on GitHub ↗
(config *latest.Config)

Source from the content-addressed store, hash-verified

158}
159
160func validatePipelines(config *latest.Config) error {
161 for name := range config.Pipelines {
162 if encoding.IsUnsafeName(name) {
163 return fmt.Errorf("pipelines.%s has to match the following regex: %v", name, encoding.UnsafeNameRegEx.String())
164 }
165 }
166
167 return nil
168}
169
170func validateDependencies(config *latest.Config) error {
171 for name, dep := range config.Dependencies {

Callers 1

ValidateFunction · 0.85

Calls 3

IsUnsafeNameFunction · 0.92
ErrorfMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected