Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug]: error installing with helm #32

Open
tatankam opened this issue Nov 5, 2023 · 2 comments
Open

[Bug]: error installing with helm #32

tatankam opened this issue Nov 5, 2023 · 2 comments
Assignees
Labels
bug Something isn't working triage Needs to be triaged

Comments

@tatankam
Copy link

tatankam commented Nov 5, 2023

Affected Chart

icinga-stack

Which version of the app contains the bug?

No response

Please describe your problem

Hi,
I tried to install using:

helm install icinga-stack
--namespace icinga
--set icinga2.config.ticket_salt=Newpwd1
--set icingaweb2.auth.admin_password=Newpwd1
--set global.api.users.director.password=Newpwd1
--set global.api.users.icingaweb.password=Newpwd1
--set global.databases.director.password=Newpwd1
--set global.databases.icingaweb2.password=Newpwd1
--set global.databases.icingadb.password=Newpwd1
icinga/icinga-stack

but I obtain:
Error: INSTALLATION FAILED: template: icinga-stack/charts/icingaweb2/templates/deployment.yaml:41:16: executing "icinga-stack/charts/icingaweb2/templates/deployment.yaml" at <include "icingaweb2.config" .>: error calling include: template: icinga-stack/charts/icingaweb2/templates/_icingaweb-config.tpl:14:61: executing "icingaweb2.config" at <.Values.global.api.users.director.password.value>: can't evaluate field value in type interface {}

Which could be the problem?

@tatankam tatankam added bug Something isn't working triage Needs to be triaged labels Nov 5, 2023
@tndrs
Copy link

tndrs commented Nov 15, 2023

Similar issue here:

helm install icinga-stack --set global.api.users.director.password.value=secret --set icingaweb2.auth.admin_password.value=secret --set global.api.users.icingaweb.password.value=secret --set global.databases.icingadb.password=secret --namespace icinga icinga/icinga-stack

This yields:

coalesce.go:286: warning: cannot overwrite table with non table for icinga-stack.global.databases.icingadb.password (map[secretKey:<nil> value:<nil>])
Error: INSTALLATION FAILED: template: icinga-stack/charts/icingaweb2/templates/deployment.yaml:42:16: executing "icinga-stack/charts/icingaweb2/templates/deployment.yaml" at <include "icingaweb2.resources" .>: error calling include: template: icinga-stack/charts/icingaweb2/templates/_resources.tpl:29:41: executing "icingaweb2.resources" at <$settings.password.value>: can't evaluate field value in type interface {}

My guess this happens when the values aren't properly set. Is there a chance to get a values.yaml as shown in Icinga Camp 2023 presentation for crosscheck?
Cheers,
Tom

@bmike78
Copy link

bmike78 commented Feb 3, 2024

@tndrs and @tatankam, I was able to get it working with these values:

helm install icinga-stack \
--namespace icinga \
--set icinga2.config.ticket_salt.value=CHANGEME \
--set icingaweb2.auth.admin_password.value=CHANGEME \
--set global.api.users.director.password.value=CHANGEME \
--set global.api.users.icingaweb.password.value=CHANGEME \
--set global.databases.director.username.value=icinga \
--set global.databases.director.password.value=CHANGEME \
--set global.databases.icingaweb2.username.value=icinga \
--set global.databases.icingaweb2.password.value=CHANGEME \
--set global.databases.icingadb.password.value=CHANGEME \
--set global.databases.icingadb.username.value=icinga \
icinga/icinga-stack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Needs to be triaged
Projects
None yet
Development

No branches or pull requests

4 participants