MCPcopy Create free account
hub / github.com/devspace-sh/devspace / validateVars

Function validateVars

pkg/devspace/config/versions/validate.go:128–136  ·  view source on GitHub ↗
(vars map[string]*latest.Variable)

Source from the content-addressed store, hash-verified

126}
127
128func validateVars(vars map[string]*latest.Variable) error {
129 for i, v := range vars {
130 if encoding.IsUnsafeUpperName(v.Name) {
131 return fmt.Errorf("vars.%s has to match the following regex: %v", i, encoding.UnsafeUpperNameRegEx.String())
132 }
133 }
134
135 return nil
136}
137
138func validateRequire(config *latest.Config) error {
139 for index, plugin := range config.Require.Plugins {

Callers 1

ValidateFunction · 0.85

Calls 3

IsUnsafeUpperNameFunction · 0.92
ErrorfMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected