instrumenta / helm-kubeval Goto Github PK
View Code? Open in Web Editor NEWA Helm plugin for validating Charts against the Kubernetes schemas
License: Other
A Helm plugin for validating Charts against the Kubernetes schemas
License: Other
I could create a PR if you want :)
bash
is not always available in nix systems but sh
typically is. Would provide broader support by using sh
instead of bash
in the scripts.
Attempting to install the plugin in GitBash (using Powershell also fails due to the ".sh" file), it errors out with:
Installing helm-kubeval v0.13.0 ...
tar (child): Cannot execute remote shell: No such file or directory
tar (child): kubeval-UNKNOWN\:MINGW64_NT-10.0-19041-amd64.tar.gz: Cannot open: Input/output error
tar (child): Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error is not recoverable: exiting now
helm-kubeval 0.13.0 is installed.
See https://kubeval.instrumenta.dev for help getting started.
plugin nice working, but no always
when i'm trying validate chart, an error may occur
helm kubeval ~/charts/stackdriver-telegram/helm-chart
4 errors occurred:
* Failed initalizing schema https://kubernetesjsonschema.dev/master-standalone/secret-v1.json: Get https://kubernetesjsonschema.dev/master-standalone/secret-v1.json: dial tcp 167.99.137.12:443: i/o timeout
* Failed initalizing schema https://kubernetesjsonschema.dev/master-standalone/service-v1.json: Get https://kubernetesjsonschema.dev/master-standalone/service-v1.json: dial tcp 167.99.129.42:443: i/o timeout
* Failed initalizing schema https://kubernetesjsonschema.dev/master-standalone/deployment-apps-v1.json: Get https://kubernetesjsonschema.dev/master-standalone/deployment-apps-v1.json: dial tcp 167.99.129.42:443: i/o timeout
* Failed initalizing schema https://kubernetesjsonschema.dev/master-standalone/ingress-extensions-v1beta1.json: Get https://kubernetesjsonschema.dev/master-standalone/ingress-extensions-v1beta1.json: dial tcp 167.99.137.12:443: i/o timeout
Error: plugin "kubeval" exited with error
Both helm install
and helm template
support a --version
option used to specify the version of a chart to install:
--version string specify the exact chart version to install. If this is not specified, the latest version is installed
Unfortunately the current version of this package intercepts the --version
argument and passes it to kubeval
, which makes it impossible to give this argument to helm template
:
Lines 10 to 14 in 7476464
It would be great if there were a way to pass the --version
argument to helm. I think the best way to achieve this would be by supporting the "end of options" flag, which is --
. Using the --
sends all arguments after it to helm without intercepting any of them.
I imagine the usage would look like:
helm kubeval myChart -- --version 1.0
This would pass the --version 1.0
argument to helm, rather than printing the kubeval
version.
The current version of run.sh
nearly supports this. It has an eoo
variable which it checks (complete with an appropriate else
case), but it never actually checks for --
or sets eoo
to 1
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.