Help us understand the problem. What is going on with this article?

helm3でhelm installコマンド実行時に「Error: must either provide a name or specify --generate-name」 と出る

chartsディレクトリの中にチャートファイルをそのまま入れているとなぜかエラーになる。
理由はよく分からないけれど、パッケージングすると動くみたいです。

helmのバージョン

~/D/helm ❯❯❯ helm version                                                                  ✘ 1
version.BuildInfo{Version:"v3.1.0", GitCommit:"b29d20baf09943e134c2fa5e1e1cab3bf93315fa", GitTreeState:"clean", GoVersion:"go1.13.8"}

エラーメッセージ

~/D/helm ❯❯❯ helm install mychart
Error: must either provide a name or specify --generate-name

構成

~/D/helm ❯❯❯ tree mychart
mychart
├── Chart.yaml
├── charts
│   ├── charts
│   ├── templates
│   │   └── configmap.yaml
│   └── values.yaml
├── templates
│   └── configmap.yaml
└── values.yaml

対処手順

chartsディレクトリ内のチャートをパッケージングする

~/D/helm ❯❯❯ cd mychart
~/D/h/mychart ❯❯❯ helm package charts                                                    
Successfully packaged chart and saved it to: /Users/yuta/Desktop/helm/mychart/mychart-0.1.0.tgz

構成

次のような構成にする

~/D/helm ❯❯❯ tree mychart
mychart
├── Chart.yaml
├── charts
│   └── mychart-0.1.0.tgz
├── templates
│   └── configmap.yaml
└── values.yaml
helm install mychart --generate-name
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした