kokuwaio/kyverno

By kokuwaio

Updated 14 days ago

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

Image
Integration & delivery
Developer tools
0

5.4K

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.18.2
    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.18.2
    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.18.2

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/kyvernoWoodpecker pluginsizesize
ghcr.io/kyverno/kyverno-clinot a Woodpecker plugin, officialsizesize
bitnami/kyverno-clinot a Woodpecker pluginsizesize
nirmata/kyverno-clinot a Woodpecker plugin, outdatedsizesize
gbaeke/kyverno-clinot a Woodpecker plugin, outdatedsizesize

Tag summary

Content type

Image

Digest

sha256:ec54df7fa

Size

67 MB

Last updated

14 days ago

docker pull kokuwaio/kyverno:v1.18.2