0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Helm Chartsを作成しているときにunable to build kubernetes objects from release manifest: unable to recognize ""のようなエラーが出るときの対処方法

Posted at

エラー全文

Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest:
 unable to recognize "": no matches for kind "Task" in version "tekton.dev/v1beta1"

原因

開発しているCharts内にCustomResourceDefinitionが含まれていると発生します。Helmは全てのリソースを束ねて一括でKubernetesにリソースを作成しようとしますが、CustomResourceDefinitionと、それを使うリソースがあると、そんなCustomResourceDefinitionないよ。ということになります。

対処

crdsディレクトリを作成し、CustomResourceDefinitionをそのディレクトリに入れます。crdsはChartsルート直下に作ります。

ディレクトリ構造は下記のようになります。

├── Chart.yaml
├── charts
├── crds
|   ├── crds.yaml
├── templates
│   ├── _helpers.tpl
│   ├── dashboard.yaml
│   └── tests
└── values.yaml

このようにするとhelmはcrdsにあるリソースをtemplatesより先に作成してくれます。

参照

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?