Comments (4)
Hi @matthewbarreiro,
Please note that in order to use helm flags you need to add --
.
Try the following:
helm datree test . -- --values my-values.yaml
Any flag used before adding --
will be sent directly into datree plugin, which is probably why you're getting the error.
You can view the usage in our docs: https://hub.datree.io/helm-plugin
from helm-datree.
yes, sorry for the typo. That being said, I am still getting errors no matter how I try to invoke the helm plugin:
Exactly as shown in your docs:
➜ ~ git clone [email protected]:datreeio/examples.git
➜ ~ helm datree test examples/helm-chart/nginx
No files detected
Error: plugin "datree" exited with error
If I cd
in and use .
I get:
➜ ~ cd examples/helm-chart/nginx
➜ nginx git:(main) helm datree test .
No files detected
Error: plugin "datree" exited with error
If I select a specific file:
➜ nginx git:(main) helm datree test Chart.yaml
>> File: /Users/matt/examples/helm-chart/nginx/Chart.yaml
[V] YAML validation
[X] Kubernetes schema validation
❌ k8s schema validation error: error while parsing: missing 'kind' key
[?] Policy check didn’t run for this file
(Summary)
- Passing YAML validation: 1/1
- Passing Kubernetes (1.20.7) schema validation: 0/1
- Passing policy check: 0/1
+-----------------------------------+----------------------------------------------------------+
| Enabled rules in policy “Default” | 30 |
| Configs tested against policy | 0 |
| Total rules evaluated | 0 |
| Total rules failed | 0 |
| Total rules passed | 0 |
| See all rules in policy | REMOVED
+-----------------------------------+----------------------------------------------------------+
Error: plugin "datree" exited with error
Note how it did not evaluate any rules. It also didn't display any issues, and I assume the example helm chart has intentional issues that are not being detected here for some reason.
Thanks
from helm-datree.
@dimabru also happening to me when I use the latest version of the plugin.
an older version is working fine.
from helm-datree.
@matthewbarreiro
A fix is already in the works, thanks for reporting.
Just an fyi, helm is expecting a chart folder as input and not the Chart.yaml
itself. Running helm datree test Chart.yaml
will result in datree trying to evaluate the Chart.yaml
file without helm rendering it, so the output here is valid because it was indeed not a valid k8s file :)
from helm-datree.
Related Issues (17)
- Passing in values file with -f flag HOT 2
- Chart name contains spaces HOT 2
- Problems finding k8s schema file HOT 9
- Can't install plugin in Gitlab CI with alpine/helm image HOT 4
- Allow use with other installations of helm HOT 3
- Installation of Helm plugin failed HOT 2
- Installation sometimes fails in Travis CI HOT 2
- Add pre-commit-hooks feature for helm-datree HOT 5
- ignore chart dependencies
- Add helm flag --skip-tests by default
- Recursive test for helm validation HOT 3
- CI/CD friendliness HOT 6
- Choose values file HOT 2
- helm datree test my-app/ doesn't work on Windows WSL HOT 10
- how to install a specific version like 1.6.6 HOT 1
- Does not work with helm v3.5.2 HOT 3
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-datree.