1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
Cloud Native Policy Management
Find a file
2019-03-01 17:59:59 +02:00
controller NK-22: Fixed build error with Selector pointer. Added comments. Changed tab to 4 spaces identation. Added unit tests for LabelSelector. 2019-03-01 17:59:59 +02:00
crd NK-22: Fixed build error with Selector pointer. Added comments. Changed tab to 4 spaces identation. Added unit tests for LabelSelector. 2019-03-01 17:59:59 +02:00
pkg/apis/policy NK-22: Fixed build error with Selector pointer. Added comments. Changed tab to 4 spaces identation. Added unit tests for LabelSelector. 2019-03-01 17:59:59 +02:00
scripts NK-21: Added checking request by selector. Added tests for this logic. Added test policy file for selectors. 2019-02-28 18:43:20 +02:00
server NK-22: Fixed build error with Selector pointer. Added comments. Changed tab to 4 spaces identation. Added unit tests for LabelSelector. 2019-03-01 17:59:59 +02:00
webhooks NK-22: Fixed build error with Selector pointer. Added comments. Changed tab to 4 spaces identation. Added unit tests for LabelSelector. 2019-03-01 17:59:59 +02:00
.gitignore NK-10: Controller renamed to PolicyController. Created MutationWebhook class in new webhook package. Implemented filtering of incoming objects by Kind. Implemented simple usage of PolicyController in MutationWebhook. 2019-02-21 20:31:18 +02:00
Gopkg.toml Implemented test webhook, fixed script for certificate generation, fixed project dependencies 2019-02-21 18:13:21 +02:00
main.go NK-22: Fixed build error with Selector pointer. Added comments. Changed tab to 4 spaces identation. Added unit tests for LabelSelector. 2019-03-01 17:59:59 +02:00
README.md NK-21: Improved policy type declaration, fixed declaration of patch field, made corresponding changes to applyPolicyRule. Fixed sentense in README.md. 2019-02-28 19:09:51 +02:00

kube-policy

A Kubernetes native policy engine

Motivation

Examples

How it works

Installation

Prerequisites

You need to have go and dep utils installed on your machine. Ensure that GOPATH environment variable is set to desired location. Code generation for CRD controller depends on kubernetes/hack, so before use code generation, execute:

go get k8s.io/kubernetes/hack

You can go get

Due to the repository privacy, you should to add SSH key to your github user to clone repository using go get command. Using go get you receive correct repository location ad $GOHOME/go/src which is needed to restore dependencies. Configure SSH key due to this article: https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/

After SSH key configured, you must tell git to use SSH. To do it use next command:

git config --global url.git@github.com:.insteadOf https://github.com/

After this is done, use next command to clone the repo:

go get github.com/nirmata/kube-policy

Or git clone

If you don't want to use SSH, you just can clone repo with git, but ensure that repo will be inside this path: $GOPATH/src/.

git clone https://github.com/nirmata/kube-policy.git $GOPATH/src/nirmata/kube-policy

Restore dependencies

Navigate to kube-policy project dir and execute: dep ensure This will install necessary dependencies described in README.md

Contributing