当前位置: 首页 > news >正文

【笔记】Helm-5 Chart模板指南-12 .helmignore文件

.helmignore文件

.helmignore文件用来指定您不想包含在您的helm chart中的文件。

如果该文件存在,helm package命令会在打包应用时忽略所有在.helmignore文件中匹配的文件。

有助于避免不需要的或敏感文件及目录添加到您的helm chart中。

.helmignore文件支持Unix shell的全局匹配,相对路径匹配,以及反向匹配(以!作为前缀)。每行只考虑一种模式。

这里是一个.helmignore文件示例:

# comment


# Match any file or path named .helmignore

.helmignore

# Match any file or path named .git

.git

# Match any text file

*.txt

# Match only directories named mydir

mydir/

# Match only text files in the top-level directory

/*.txt

# Match only the file foo.txt in the top-level directory

/foo.txt

# Match any file named ab.txt,ac.txt,or ad.txt

a[b-d].txt

# Match any file under subdir matching temp*

*/temp*

*/*/temp*

temp?

# comment# Match any file or path named .helmignore
.helmignore# Match any file or path named .git
.git# Match any text file
*.txt# Match only directories named mydir
mydir/# Match only text files in the top-level directory
/*.txt# Match only the file foo.txt in the top-level directory
/foo.txt# Match any file named ab.txt, ac.txt, or ad.txt
a[b-d].txt# Match any file under subdir matching temp*
*/temp**/*/temp*
temp?

一些值得注意的和.gitignore不同之处:

1、不支持‘**’语法。

2、globbing库是Go的'filepath.Match',不是fnmatch(3)

3、末尾空格总会被忽略(不支持转义序列)

4、不支持'!'作为特殊的引导序列

5、默认不会排除自身,需要显示添加.helmignore

我们需要您的帮助使该文档更好。添加、修正或移除信息,提交问题 或者发起PR。

https://github.com/helm/helm-www/issues

————————————

仅用于本人学习

来源:Helm | Docs

http://www.lryc.cn/news/298954.html

相关文章:

  • 【MySQL】表的增删改查(基础)
  • Android矩阵Matrix动画缩放Bitmap移动手指触点到ImageView中心位置,Kotlin
  • C语言:表达式求值
  • GO 的 Web 开发系列(五)—— 使用 Swagger 生成一份好看的接口文档
  • 【极数系列】Flink集成KafkaSink 实时输出数据(11)
  • 我为什么选择Xamarin开发ios app安卓app
  • 安全基础~通用漏洞4
  • 2024/2/12 图的基础知识 2
  • 无人机飞行原理,多旋翼无人机飞行原理详解
  • docker本地目录挂载
  • 使用C++从零开始,自己写一个MiniWeb
  • Android Graphics 图像显示系统 - 开篇
  • 机器学习在各个行业的应用介绍
  • 【生产实测有效】Windows命令行查看激活状态脚本
  • 简单的Udp服务器
  • 【Linux进程间通信】用管道实现简单的进程池、命名管道
  • Linux操作系统基础(九):Linux用户与权限
  • 蓝桥杯——第 5 场 小白入门赛(c++详解!!!)
  • Codeforces Round 303 (Div. 2)C. Kefa and Park(DFS、实现)
  • 797. 差分
  • 2024.2.5 vscode连不上虚拟机,始终waiting for server log
  • CSS基础---新手入门级详解
  • Python中Pymysql库的常见用法和代码示例
  • 使用 WPF + Chrome 内核实现高稳定性的在线客服系统复合应用程序
  • fastapi mysql 开发restful 3
  • 【Uniapp uni-app学习与快速上手——详细讲解】
  • 剑指offer——旋转数组的最小数字
  • 盘点数据可视化大屏焦点图十种样式
  • 问题 G: 老鼠和猫的交易
  • HiveSQL——借助聚合函数与case when行转列