Comments (4)
Are you able to provide a minimal example we can use to reproduce? I using a default chart generated using helm create
and then used helm-schema
to generate the json schema. After injecting some extra curly braces in several places, helm lint
fails cause the json schema is invalid
from helm.
Hello, indeed I forgot the example 🤦
I ran helm create foobar
and then injected this values.schema.json
:
{
"type": "object",
"required": [
"image"
],
"properties": {
"image": {
"type": "object",
"required": [
"repository",
"pullPolicy"
],
"properties": {
"repository": {
"type": "string",
"pattern": "^([-_/.a-z0-9]+)$"
},
"pullPolicy": {
"type": "string",
"pattern": "^(Always|Never|IfNotPresent)$"
}
}}
}
}
}
You can see the double curly brace after pullPolicy
, which makes the json invalid. However, helm lint
is happy:
╰ helm lint . -f values.yaml
==> Linting .
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failed
helm template
likely uses the same code path so it's happy as well.
We found out we broke our json thanks to helm package
:
╰ helm package .
Error: failed to save: Invalid JSON in values.schema.json
I think we can expect lint+template to fail like package does 😄 For example, our CI lints on dev branches but packages only on release/pre-release
Thanks for your help 🙏
from helm.
I managed to reproduce the error as well. This is a valid issue
from helm.
Related Issues (20)
- Helm's ports merging logic differs from Kubernetes HOT 2
- --dependency-update is not working as expected
- Helm translates curly braces {} into normal braces [] when passing value from values.yaml to chart HOT 2
- `--set-literal` does not allow backslash escaping in NAME HOT 2
- Feature Request: `helm lint` should verify that values used in charts are present in values.yaml HOT 1
- There is a "false" in helm upgrade HOT 2
- Retry Internal Server Error(the server is currently unable to handle the request) HOT 3
- toToml filter converts int to float HOT 5
- helm template --output-dir multiple runs will produce incorrect manifests
- fromJson (toJson .Chart) does not have reflexive behavior HOT 3
- Cannot remove objects in dependent charts by setting values to null HOT 1
- Helm packaging problem HOT 6
- Helm unable to update the dependency chart HOT 1
- Helm sometimes renders unnecessary additional yaml document containing only a comment when templating HOT 2
- How to pass the contents of a dynamically created file as an env variable in helm charts
- Helm lint "--quiet" flag fix HOT 3
- [question/support] What is the request/data/template flow when we leverage the --force flag and when we don't leverage it in the `helm upgrade` command? HOT 1
- Reading sub-chart configmap yaml to rolling the deployment of parent chart pod HOT 1
- Can not use helm binary 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 helm.