Comments (9)
@Marwen-TAALLAH please format your code by code
.
from helm.
@Marwen-TAALLAH please format your code by
code
.
Done !
from helm.
@Marwen-TAALLAH is there a step to process the values.yaml
file first before passing it to helm, or is the file passed in as-is in the description? If so, I think helm will report an error because that file does not look like valid YAML
master:
${ indent(2, redis_affinity) }
${ indent(2, redis_nodeSelector) }
${ indent(2, redis_default_tolerations) }
persistence:
enabled: false
Specifically, the master
value is a mixture of a map/dictionary and a scaler (string).
I'm not aware of helm supporting templating for the values file
from helm.
@Marwen-TAALLAH is there a step to process the
values.yaml
file first before passing it to helm, or is the file passed in as-is in the description? If so, I think helm will report an error because that file does not look like valid YAMLmaster: ${ indent(2, redis_affinity) } ${ indent(2, redis_nodeSelector) } ${ indent(2, redis_default_tolerations) } persistence: enabled: falseSpecifically, the
master
value is a mixture of a map/dictionary and a scaler (string).I'm not aware of helm supporting templating for the values file
@banjoh The values.yaml file is causing a problem only when the redis chart is called as a module, when executinf the terraform apply locally, the file doesn't cause an issue !!
from helm.
Are you able to create a reproducer chart, say by creating a chart using helm create foo
then adding your values to the default values file? If you are using subcharts, then setup your test accordingly. It will be easier to troubleshoot the issue if terraform and any other external tool is absent.
from helm.
@banjoh I am able to create the chart with helm directly without terraform, I am also able to create the chart with terraform, all of that with the exact same values.yaml I have provided.
The problem occured when I tried to call the terraform code as a module.
from helm.
@Marwen-TAALLAH to rule out terraform as being the problem here, could you provide the helm
commands that terraform successfully templates your helm chart with?
I cannot run terraform, so I'm not able to ascertain whether this values file is valid as you say.
Am looking to see the output of helm template <your-chart> --values values.yaml
from helm.
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
from helm.
@banjoh: I'm not aware of helm supporting templating for the values file
Helm does not offer direct support for this. Still, it is a frequent practice—otherwise, avoiding the repetition of the same values would often be impossible (or rather, possible, but highly inefficient). However, this issue is a complete mess—mixing Terraform with Helm, and the task does not make any sense. Even my most bizarre 'Helm sadism' (referring to overly complex and overengineered solutions), such as a complete AST parser implemented purely using Go Templates in Helm, would work better than the convoluted solution this person is trying to assemble here (no offense).
@Marwen-TAALLAH I have no idea what ${ ... }
means—Terraform? Why isn't it described better? This does not look like a Helm issue... Your generated YAML is corrupted somehow. If it is not valid YAML, you must fix that first...
from helm.
Related Issues (20)
- How to programmatically pass down a generated CA to all subcharts? HOT 2
- Helm lint does not check for case in pod's spec.hostname HOT 4
- Tilt - Error in helm: could not parse Helm version from string: "3.15.4+gfa9efb0\n" HOT 2
- get.helm.sh down HOT 10
- Add template function to generate a random binary string HOT 1
- Helm `merge` mutates the leftmost dict HOT 4
- Bug? Helm `merge` ORs boolean values HOT 4
- Helm does not handle duplicate volume mount names; only the last defined volume mount is used HOT 3
- calling "https://grafana.github.io/helm-charts" and deploying to default namespace HOT 1
- Deployed Kubernetes resource differs from its manifest in Helm output HOT 2
- Helm ignore alias property in dependencies HOT 1
- `helm upgrade --wait-for-jobs` does not detect a job error in certain situations
- `--wait-for-jobs` - the `isRetryableError()` returns false positive for Job failures.
- High Severity Vulnerabilities [CVE-2024-34156,CVE-2024-34155,CVE-2024-34158] detected. HOT 1
- Kubernetes configuration file is group-readable HOT 3
- Upgrading to Helm 3.16 broke dependencies references HOT 4
- Helm 3.16.0 broke 'dep up' for charts.jetstack.io / cert-manager HOT 2
- Error: INSTALLATION FAILED: repo bitnami not found HOT 2
- Error: INSTALLATION FAILED: error evaluating symlink /root/snap/firmware-updater/127/.config/gtk-2.0/gtkfilechooser.ini
- Helm Chart Rollbacks Not Handling Persistent Volumes Correctly
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 helm.