code: func IsConfigMapKey(value string) []string {
  	var errs []string
  	if len(value) > DNS1123SubdomainMaxLength {
  		errs = append(errs, MaxLenError(DNS1123SubdomainMaxLength))
  	}
  	if !configMapKeyRegexp.MatchString(value) {
  		errs = append(errs, RegexError(configMapKeyErrMsg, configMapKeyFmt, "key.name", "KEY_NAME", "key-name"))
  	}
  	errs = append(errs, hasChDirPrefix(value)...)
  	return errs
  }
docs: // IsConfigMapKey tests for a string that is a valid key for a ConfigMap or Secret