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

Error installing/linting local Hono chart with latest dependency versions #490

Closed
calohmn opened this issue Aug 29, 2023 · 1 comment · Fixed by #491
Closed

Error installing/linting local Hono chart with latest dependency versions #490

calohmn opened this issue Aug 29, 2023 · 1 comment · Fixed by #491
Assignees
Labels

Comments

@calohmn
Copy link
Contributor

calohmn commented Aug 29, 2023

From #469 (comment):
There is currently an error when trying to install the Hono chart from local sources using the latest dependencies.

The error can already be seen when running helm lint:

cd charts/hono
helm dependency update
helm lint . --values ci/mongodb-based-device-registry-values.yaml

Output:

Error:  templates/: template: hono/charts/mongodb/templates/standalone/svc.yaml:12:14: 
 executing "hono/charts/mongodb/templates/standalone/svc.yaml" 
at <include "common.labels.standard" (dict "customLabels" .Values.commonLabels "context" $)>: 
error calling include: template: hono/charts/kafka/charts/common/templates/_labels.tpl:6:27: 
 executing "common.labels.standard" at <include "common.names.name" .>: 
error calling include: template: hono/charts/kafka/charts/common/templates/_names.tpl:6:18: 
 executing "common.names.name" at <.Chart.Name>: nil pointer evaluating interface {}.Name

Analysis:
The dependency update will update the used MongoDB chart from 13.16.4 to 13.17.2. The new MongoDB chart version makes use of an updated template function in the bitnami common dependency version 2.9.0.
But the referenced Kafka chart is still using an older common version which isn't compatible here, and that older common chart version seems indeed to be loaded. Hence the error above.

See bitnami/charts#18890 (comment).

The straightforward solution seems to be to prevent the usage of the MongoDB 13.17.x chart version by using

- name: "mongodb"
  repository: "https://charts.bitnami.com/bitnami"
  version: "~13.16.x"

in the Hono Chart.yaml.

The alternative would be to update the Kafka chart to 25.0.0 (released last week). This version is also using common 2.9.0.

@calohmn calohmn added the Hono label Aug 29, 2023
@calohmn calohmn self-assigned this Aug 29, 2023
@calohmn calohmn changed the title Error installing/linting Hono chart with latest dependency versions Error installing/linting local Hono chart with latest dependency versions Aug 29, 2023
@sophokles73
Copy link
Member

I am currently working on migrating to Kafka in Raft mode (using chart version 25.x) so that we do not need Zookeeper anymore :-)

FMPOV we can prevent the update of the Mongo DB chart for the moment and when I create the PR for the update to Kafka chart 25.x, I will also allow the Mongo DB chart to be updated again ...

calohmn added a commit that referenced this issue Aug 30, 2023
Pin MongoDB chart version to 13.16.x.
Apply minor improvements to Hono chart and documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants