Files
doc/对于helm操作中CRLF和LF的相关问题.md
2025-10-18 16:03:33 +08:00

11 lines
599 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 对于helm操作中CRLF和LF的相关问题
helm操作集群部署的逻辑我个人总结如下
helm先渲染出模板全部转成base64上传到集群集群解析后执行部署
这个逻辑容易忽略的是某些git版本默认会将仓库文件的行尾序列再拉取之后会将LF->CRLF方便windows的idea渲染上传仓库的时候又把CRLF->LF
但是目前手动进行helm部署使用的文件行尾序列还是CRLF这就会出现在执行一些带有长脚本或者写入文件的操作的时候由于多了\r导致解析失败最终helm部署失败