Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugin: kubeval #259

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions plugins/kubeval.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
 name: kubeval
spec:
 version: "0.14.0"
 shortDescription: Validate schema of resource files
description: |
The plugin validates a Kubernetes YAML or JSON configuration file.
It does so using schemas generated from the Kubernetes OpenAPI specification,
and therefore can validate schemas for multiple versions of Kubernetes
homepage: https://github.com/instrumenta/kubeval
Comment on lines +8 to +12
Copy link
Contributor

@corneliusweig corneliusweig Dec 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation of these two fields is wrong. Please fix this to get the CI to pass.

 platforms:
 - uri: https://github.com/instrumenta/kubeval/releases/download/0.14.0/kubeval-linux-amd64.tar.gz
 sha256: "8b1b8c63df9ee3206113a3352e07474ea071610cfacf40a64db74c56e163f1e2"
 bin: kubeval
 files:
 - from: "./kubeval"
 to: "."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also install a LICENSE file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The archive already includes a LICENSE file, so you can simply copy out another file like so:

- from: LICENSE
  to: .

- from: LICENSE
to: .
 selector:
 matchLabels:
 os: linux
 arch: amd64
 - uri: https://github.com/instrumenta/kubeval/releases/download/0.14.0/kubeval-darwin-amd64.tar.gz
 sha256: "05b9993e59a32b95bc5496dd98598e4a425643151efd108c0449405dd4a2a4c7"
 bin: kubeval
 files:
 - from: "./kubeval"
 to: "."
 - from: LICENSE
to: .
 selector:
 matchLabels:
 os: darwin
 arch: amd64
- uri: https://github.com/instrumenta/kubeval/releases/download/0.14.0/kubeval-windows-amd64.zip
sha256: "2a844518981848a7d77cced9b51a05174ba9c17fc007a1c48cd2af0d3fb021d7"
 bin: kubeval.exe
 files:
 - from: "./kubeval.exe"
 to: "."
 - from: LICENSE
to: .
 selector:
 matchLabels:
 os: windows
 arch: amd64