Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Found an error INSTALLATION FAILED: <.Chart.ApiVersion> can't evalutate field ApiVersion in type interface {} #70

Open
fResult opened this issue Sep 21, 2024 · 0 comments

Comments

@fResult
Copy link

fResult commented Sep 21, 2024

> helm install nginx-demo2 day3/my-chart
Error: INSTALLATION FAILED: template: my-chart/templates/deployment.yaml:8:30: executing "my-chart/templates/deployment.yaml" at <.Chart.ApiVersion>: can't evaluate field ApiVersion in type interface {}

The error occurs when install chart which using {{ .Chart.ApiVersion }}:
image

The autocomplete:
image

Note

How to solve this:
Using {{ .Chart.APIVersion }} instead of {{ .Chart.ApiVersion }}.
So, right now it is passed.

See: Helm code that is a part of using for generating key/value in the Chart.yaml

image
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant