- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for missingKeys (0.27 sec)
-
pkg/kubelet/container/helpers.go
envmap := envVarsToMap(envs) missingKeys := sets.New[string]() expanded := expansion.Expand(mount.SubPathExpr, func(key string) string { value, ok := envmap[key] if !ok || len(value) == 0 { missingKeys.Insert(key) } return value }) if len(missingKeys) > 0 { return "", fmt.Errorf("missing value for %s", strings.Join(sets.List(missingKeys), ", ")) } return expanded, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.3K bytes - Viewed (0) -
src/text/template/exec.go
// value of the pipeline, if any. func (s *state) evalField(dot reflect.Value, fieldName string, node parse.Node, args []parse.Node, final, receiver reflect.Value) reflect.Value { if !receiver.IsValid() { if s.tmpl.option.missingKey == mapError { // Treat invalid value as missing map key. s.errorf("nil data; no entry for key %q", fieldName) } return zero } typ := receiver.Type() receiver, isNil := indirect(receiver)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:22:24 UTC 2024 - 32K bytes - Viewed (0)