Comments (4)
Hi,
This is an issue if you're using the charts as subcharts since elasticsearch's template expects 3 arguments to printf while mysql only expects 2.
As you can check on the line below:
https://github.com/bitnami/charts/blob/master/bitnami/elasticsearch/templates/_helpers.tpl#L40
It's using .Values.master.name which exists on ES' values.yaml but it doesn't exist on MySQL's values.yaml.
The problem is not about the number of arguments used on each macro but using the same name for both macros. We're defining twice the macro "master.fullname"...
@tompizmor @javsalgar how should we solve this? Should we sth like "mysql.master.fullname" and "es.master.fullname"
The templates should have namespaces (such as the PostgreSQL templates).
I don't really understand what you mean with that.
from charts.
Hi Juan,
To clarify, the Elasticsearch helper template "master.fullname" passes three arguments to printf and the MySQL helper template "master.fullname" passes two. When I tried to do a deployment with them, it failed since the configuration ended up with the following (since the Elasticsearch chart's templates take precedence):
metadata:
name: testing-mysql-%!s(<nil>)
What I mean by namespacing is exactly what you suggest, "master.fullname" should likely be "mysql.master.fullname" and "es.master.fullname" (which is what the PostgreSQL chart does as it has a "postgresql.master.fullname" helper template).
In the interim, I've added a master.name to my chart's values.yaml that fixes the issue. But this should likely be fixed at the source.
from charts.
Sorry for the confusion with what "namespace" means... Yes, I see your point and I'm opening some PRs to implement that solution. Thanks so much for opening the issue. You can find the PRs in the links below:
from charts.
We just update the charts including the changes you suggested! Please feel free to use the new charts and reopen the issue if you continue facing issues with the macros.
from charts.
Related Issues (20)
- [bitnami/minio] Deployment Errors HOT 2
- [bitnami/mariadb] Impossible to use MariaDB's own NodePort in its initdb script HOT 4
- [bitnami/redmine] CAP_CHMOD doesn't exist HOT 1
- [bitnami/rabbitmq-cluster-operator] After setting username and password for rabbitmq Cluster secret values are still random HOT 1
- kubeapps Postgresql Resource Settings are being ignored and stay default with HELM Chart Version 15.0.2 HOT 1
- [bitnami/rabbitmq] Rabbitmq pod error HTTP access denied: user 'user' - invalid credentials HOT 3
- [bitnami/kafka] Issue while enabling external connectivity for Kafka brokers by using Cluster IP option. (Brokers are exposed to different ports rather than assigned to a defined port) HOT 1
- [bitnami/wordpress] Preserve files baked in to container image. HOT 1
- [bitnami/grafana-operator] missing option to add labels in the Grafana deployment template HOT 3
- [bitnami/postgresql-ha] Pgpool does not start with CustomUsersSecret HOT 1
- [bitnami/argo-cd] Named Port of argocd application-controller deployment is missing after chart version upgrade HOT 1
- [bitnami/magento] Any way to get root access in magento pod? HOT 1
- [bitnami/contour] Missing ConfigMap and BackendTLSPolicy permissions in clusterrole when adding gatewayRef HOT 1
- [bitnami/wordpress] Being able to persist just uploads instead of the whole /wp-content HOT 3
- [bitnami/redis] Liveness Probes Failing on AKS 1.29.2 HOT 5
- [bitnami/keycloak] Same ports in deployment spec HOT 1
- Why number of MariaDB primary replicas is harcoded to 1 in template HOT 2
- [bitnami/kafka] Adding "external" PV controllers like vSphere for OpenShift HOT 1
- [bitnami/kafka] Adding SAN for AutoGenerated Certificates TLS (Kafka-UI SAN resolution TLS) HOT 1
- [bitnami/redis] Ability to rename redis service port name HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.