使用 Helm ,我知道您可以使用条件禁用 requirements.yaml 中的依赖项。
但是,我有一个依赖项已复制到 Charts / 目录中并进行了扩展,因为我需要对其进行更多控制。
鉴于没有通过 requirements.yaml 而不是通过在图表/文件夹中进行扩展,是否可以有条件地包含此依赖项?
最佳答案
是的,根据helm dependency docs:
Starting from 2.2.0, repository can be defined as the path to the directory of the dependency charts stored locally. The path should start with a prefix of "file://". For example,
# requirements.yaml dependencies: - name: nginx version: "1.2.3" repository: "file://../dependency_chart/nginx"
If the dependency chart is retrieved locally, it is not required to have the repository added to helm by "helm repo add". Version matching is also supported for this case.
关于kubernetes - 您可以禁用在Charts/目录中扩展的依赖项吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58028005/