根据验证工具提供的错误信息,逐一修正YAML文件中的错误。 确保在修正后重新验证文件,直到没有错误为止。 通过以上步骤,您应该能够解决加载YAML文件时遇到的“did not find expected '-' indicator”错误。如果问题仍然存在,请仔细检查文件中的所有列表项和缩进,确保它们符合YAML的语法规则。
Customizing Installation error [root@k8sm1 opt]#helm install consul hashicorp/consul -f config.yamlError: YAML parse error on consul/templates/server-statefulset.yaml: error converting YAML to JSON: yaml: line 42: did not find expected'-'indicato config.yaml global:image:'consul:1.5.0'domain:...
python中一般使用PyYaml模块来解析yaml 安装 pip install pyyaml 配置文件 config.yaml # 用户信息(...
[ERROR] templates/statefulset.yaml: unable to parse YAML: error converting YAML to JSON: yaml: line 47: did not find expected '-' indicator exaucae commented Oct 11, 2021 Did you modify something? You may encounter a minor indent issue (1 instead of two, or two instead of four), in...
YamlSyntaxException: Failed to read ‘config.yml’. while parsing a block collection in “config.yml”, line 9, column 4 did not find expected ‘-’ indicator in “config.yml”, line 17, column 5 You can usehttps://yamlchecker.com/to validate the YAML syntax of your file. ...
但是 fastTime 是相同的。 如果使用 equals 那么这个方法比较的是毫秒,所以是不相等的。
36.697501131Z caller=klog.go:116component=k8s_client_runtime func=ErrorDepth msg="Sync \"monitoring/main\" failed: provision alertmanager configuration: base config from Secret could not be parsed: yaml: line 24: did not find expected '-' indicator"level=info ts=2024-03-28T08:30:57.181360295...
To find the available keyword arguments, you have to look at the yaml.dump_all() function’s signature. You can use the same keyword arguments across all four dumping functions. They’re all optional because they have default values equal to either None or False, except for the sort_keys ...
"did not find expected '-' indicator", token.start_mark) } // Parse the productions: // indentless_sequence ::= (BLOCK-ENTRY block_node?)+ // *** * func yaml_parser_parse_indentless_sequence_entry(parser *yaml_parser_t, event *yaml_event_t) bool { token := peek_token(parser) ...
[ Forgetting the leading minus character results in the error "did not find expected '-' indicator" ] Comments YAML has comments which start with the hash # so ... Headings Headings are denoted by a YAML map with one entry, the title of the heading. - h<level number>: for example...