【发布时间】:2020-06-02 14:42:12
【问题描述】:
我一直在开发一个原型图表,它依赖于在其中一个子图表中定义的一些 custom resource definitions。
更具体地说,我正在尝试在我的 helm 图表中创建在 strimzi-kafka-operator 中定义的资源,并希望首先显式安装依赖项。我关注helm documentation 并将以下内容添加到我的 Chart.yaml
dependencies:
- name: strimzi-kafka-operator
version: 0.16.2
repository: https://strimzi.io/charts/
我跑了:
$ helm dep up ./prototype-chart
$ helm install ./prototype-chart
> Error: unable to build Kubernetes objects from release manifest: unable to recognize "": no matches for kind "KafkaTopic" in version "kafka.strimzi.io/v1beta1"
这表明它正在尝试在我的依赖项之前部署我的图表。首先安装依赖项然后安装父图表的正确方法是什么?
(作为参考,这是我在 GitHub 上直接用 Strimzi 打开的问题,他们告诉我他们不确定如何将他们的 helm 用作依赖项: https://github.com/strimzi/strimzi-kafka-operator/issues/2552 )
【问题讨论】:
标签: kubernetes-helm