[go: up one dir, main page]

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

kyverno CLI accessable through krew #941

Merged
merged 7 commits into from
Jul 8, 2020
Merged

kyverno CLI accessable through krew #941

merged 7 commits into from
Jul 8, 2020

Conversation

yindia
Copy link
Contributor
@yindia yindia commented Jun 20, 2020

Related issue

Fixes : #709

What type of PR is this?

/kind feature

Proposed changes

Checklist

Further comments

@yindia yindia changed the title Feature 709 kyverno CLI accessable through krew Jun 21, 2020
@yindia yindia self-assigned this Jun 21, 2020
@yindia
Copy link
Contributor Author
yindia commented Jun 24, 2020

@realshuting @JimBugwadia we have to wait until that pr is not merged. kubernetes-sigs/krew-index#665

@yindia
Copy link
Contributor Author
yindia commented Jun 24, 2020
➜  kyverno git:(9d6d0eec) ✗ docker run --mount type=bind,source=$PWD/.krew.yaml,target=/tmp/krew.yaml rajatjindal/krew-release-bot:v0.0.38 \
  krew-release-bot template --tag v1.1.6 --template-file /tmp/krew.yaml

time="2020-06-24T18:35:13Z" level=info msg="getting sha256 for https://github.com/nirmata/kyverno/releases/download/v1.1.6/kyverno-cli_v1.1.6_linux_x86_64.tar.gz"
time="2020-06-24T18:35:51Z" level=info msg="downloaded file /tmp/704235964/1593023713"
time="2020-06-24T18:35:51Z" level=info msg="getting sha256 for https://github.com/nirmata/kyverno/releases/download/v1.1.6/kyverno-cli_v1.1.6_darwin_x86_64.tar.gz"
time="2020-06-24T18:35:59Z" level=info msg="downloaded file /tmp/921752555/1593023751"
time="2020-06-24T18:35:59Z" level=info msg="getting sha256 for https://github.com/nirmata/kyverno/releases/download/v1.1.6/kyverno-cli_v1.1.6_windows_x86_64.zip"
time="2020-06-24T18:36:09Z" level=info msg="downloaded file /tmp/442800718/1593023759"
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
  name: kyverno
spec:
  version: v1.1.6
  homepage: https://github.com/nirmata/kyverno
  platforms:
  - selector:
      matchLabels:
        os: linux
        arch: amd64
    uri: https://github.com/nirmata/kyverno/releases/download/v1.1.6/kyverno-cli_v1.1.6_linux_x86_64.tar.gz
    sha256: 61560c57ec5eb7f7c9da0d3b8331d90c02b593f8a2a86db86714c7e34f8eb91d
    files:
    - from: kyverno
      to: .
    bin: kyverno
  - selector:
      matchLabels:
        os: darwin
        arch: amd64
    uri: https://github.com/nirmata/kyverno/releases/download/v1.1.6/kyverno-cli_v1.1.6_darwin_x86_64.tar.gz
    sha256: b42da77ac933ce5fa565f963ea9ffc6e00228628dc3bd0bf01deafbfbd4e9d35
    files:
    - from: kyverno
      to: .
    bin: kyverno
  - selector:
      matchLabels:
        os: windows
        arch: amd64
    uri: https://github.com/nirmata/kyverno/releases/download/v1.1.6/kyverno-cli_v1.1.6_windows_x86_64.zip
    sha256: 8fa665a256295bc090471e2b3b2545c19d34dcc74a744ff81a8a05f4a9bd4066
    files:
    - from: kyverno.exe
      to: .
    bin: kyverno.exe
  shortDescription: Toolkit for testing kyverno policy
  description: |+2
    The Kyverno Command Line Interface (CLI) is designed to validate policies and test the behavior of applying policies to resources before adding the policy to a cluster. It can be used as a kubectl plugin and as a standalone CLI.
  caveats: |
    The plugin requires access to create Policy and CustomResources

@yindia yindia marked this pull request as ready for review July 5, 2020 13:47
@realshuting realshuting merged commit 7a82984 into kyverno:master Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make kyverno CLI accessable through krew
3 participants