Sign inSign up

kokuwaio/kyverno

By kokuwaio

•Updated 3 days ago

A WoodpeckerCI plugin to run kyverno and kubectl to lint kubernetes manifests.

Image
Integration & delivery
Developer tools
0

8.1K

kokuwaio/kyverno repository overview

⁠Kyverno WoodpeckerCI Plugin

pulls size dockerfile license prs issues

A WoodpeckerCI⁠ plugin for kyverno⁠ and kustomize⁠ to lint kubernetes manifests. Also usable with Gitlab, Github or locally, see examples for usage.

⁠Features

  • runs kustomize if entrypoint.sh is found and checks for occurances of <patched>
  • can use policies from directory, see setting policies
  • runnable with local docker daemon

⁠Example

Woodpecker:

steps:
  kyverno:
    depends_on: []
    image: kokuwaio/kyverno:v1.19.1
    settings:
      manifests: kustomize
      policy: policies

Gitlab: (using script is needed because of https://gitlab.com/gitlab-org/gitlab/-/issues/19717⁠)

kyverno:
  needs: []
  stage: lint
  image:
    name: kokuwaio/kyverno:v1.19.1
    entrypoint: [""]
  script: [/usr/local/bin/entrypoint.sh]
  variables:
    PLUGIN_MANIFESTS: kustomize
    PLUGIN_POLICY: policies

CLI:

docker run --rm --volume=$(pwd):$(pwd):rw --workdir=$(pwd) kokuwaio/kyverno:v1.19.1

⁠Settings

Settings NameEnvironmentDefaultDescription
manifestsPLUGIN_MANIFESTS$PWDDirectory to search for Kubernetes manifests.
policyPLUGIN_POLICYnoneDirectory/Git to search for policies to use.
exceptionsPLUGIN_EXCEPTIONSnonePolicy exceptionsto apply.
warn-no-passPLUGIN_WARN_NO_PASStrueWarn if no resources where checked.
tablePLUGIN_TABLEtrueDisplay violations as table.
detailed-resultsPLUGIN_DETAILED_RESULTStrueDisplay violations with detailed results.

⁠Alternatives

ImageCommentamd64arm64
kokuwaio/kyverno⁠Woodpecker pluginsizesize
ghcr.io/kyverno/kyverno-cli⁠not a Woodpecker plugin, officialsizesize
bitnami/kyverno-cli⁠not a Woodpecker pluginsizesize
nirmata/kyverno-cli⁠not a Woodpecker plugin, outdatedsizesize
gbaeke/kyverno-cli⁠not a Woodpecker plugin, outdatedsizesize

Tag summary

Content type

Image

Digest

sha256:0042d783e…

Size

68.6 MB

Last updated

3 days ago

docker pull kokuwaio/kyverno