Helm 图表开发:从修改到打包的全流程解析
1. 修改 Chart.yaml 文件
对于 Anvil 应用程序,生成的 Chart.yaml
文件可以进行修改。以下是修改后的文件内容,更新了必填字段,添加了一些描述性文件,并移除了注释:
apiVersion: v2
name: anvil
description: A surprise to catch something speedy.
version: 0.1.0
appVersion: 9.17.49
icon: https://wile.example.com/anvil.svg
keywords:
- road runner
- anvil
home: https://wile.example.com/
sources:
- https://github.com/Masterminds/learning-helm/tree/main/chapter4/anvil
maintainers:
- name: ACME Corp
email: [email protected]
- name: Wile E. Coyote
email: [email protected]
这里有一个在生成的 Chart.yaml
文件中存在,但在 Anvil 的文件中不存在的属性是 type
。Anvil 是一个应用程序,这是 type
字段的默认值,因此不需要 type