Jim Bugwadia
54f816c246
trim variable for context lookups
2020-11-24 17:48:54 -08:00
shuting
e868dbfeb9
Fix 1287 - failed to update annotation through mutate policy ( #1289 )
...
* fix 1287
* update mutate log
2020-11-24 10:11:05 -08:00
NoSkillGirl
5794889752
Merge branch 'main' into policyreport_cli
2020-11-18 14:43:30 +05:30
Shuting Zhao
b9fb926ddb
fixes for golint ./...
2020-11-17 13:07:30 -08:00
shuting
5e07ecc5f3
Add Policy Report ( #1229 )
...
* add report in cli
* policy report crd added
* policy report added
* configmap added
* added jobs
* added jobs
* bug fixed
* added logic for cli
* common function added
* sub command added for policy report
* subcommand added for report
* common package changed
* configmap added
* added logic for kyverno cli
* added logic for jobs
* added logic for jobs
* added logic for jobs
* added logic for cli
* buf fix
* cli changes
* count bug fix
* docs added for command
* go fmt
* refactor codebase
* remove policy controller for policyreport
* policy report removed
* bug fixes
* bug fixes
* added job trigger if needed
* job deletation logic added
* build failed fix
* fixed e2e test
* remove hard coded variables
* packages adde
* improvment added in jobs sheduler
* policy report yaml added
* cronjob added
* small fixes
* remove background sync
* documentation added for report command
* remove extra log
* small improvement
* tested policy report
* revert hardcoded changes
* changes for demo
* demo changes
* resource aggrigation added
* More changes
* More changes
* - resolve PR comments; - refactor jobs controller
* set rbac for jobs
* add clean up in job controller
* add short names
* remove application scope for policyreport
* move job controller to policyreport
* add report logic in command apply
* - update policy report types; - upgrade k8s library; - update code gen
* temporarily comment out code to pass CI build
* generate / update policyreport to cluster
* add unit test for CLI report
* add test for apply - generate policy report
* fix unit test
* - remove job controller; - remove in-memory configmap; - clean up kustomize manifest
* remove dependency
* add reportRequest / clusterReportRequest
* clean up policy report
* generate report request
* update crd clusterReportRequest
* - update json tag of report summary; - update definition manifests; - fix dclient creation
* aggregate reportRequest into policy report
* fix unit tests
* - update report summary to optional; - generate clusterPolicyReport; - remove reportRequests after merged to report
* remove
* generate reportRequest in kyverno namespace
* update resource filter in helm chart
* - rename reportRequest to reportChangeRequest; -rename clusterReportRequest to clusterReportChangeRequest
* generate policy report in background scan
* skip generating report change request if there's entry results
* fix results entry removal when policy / rule gets deleted
* rename apiversion from policy.kubernetes.io to policy.k8s.io
* update summary.* to lower case
* move reportChangeRequest to kyverno.io/v1alpha1
* remove policy report flag
* fix report update
* clean up policy violation CRD
* remove violation CRD from manifest
* clean up policy violation code - remove pvGenerator
* change severity fields to lower case
* update import library
* set report category
Co-authored-by: Yuvraj <yuvraj.yad001@gmail.com>
Co-authored-by: Yuvraj <10830562+evalsocket@users.noreply.github.com>
Co-authored-by: Jim Bugwadia <jim@nirmata.com>
2020-11-09 11:26:12 -08:00
NoSkillGirl
e11efa4e7a
added policy report example
2020-11-04 14:03:40 +05:30
Shuting Zhao
63a8d89c8d
- update report summary to optional; - generate clusterPolicyReport; - remove reportRequests after merged to report
2020-10-27 18:28:30 -07:00
Shuting Zhao
c906baa1a7
- update policy report types; - upgrade k8s library; - update code gen
2020-10-15 17:54:58 -07:00
Shuting Zhao
6b5e935e49
Merge branch 'feature/reports-cli' of https://github.com/evalsocket/kyverno into policyreport
...
# Conflicts:
# Makefile
# cmd/kyverno/main.go
# go.mod
# go.sum
# pkg/client/clientset/versioned/clientset.go
# pkg/client/clientset/versioned/fake/clientset_generated.go
# pkg/client/clientset/versioned/fake/register.go
# pkg/client/clientset/versioned/scheme/register.go
# pkg/client/informers/externalversions/factory.go
# pkg/client/informers/externalversions/generic.go
# pkg/client/listers/kyverno/v1/expansion_generated.go
# pkg/policy/common.go
# pkg/policy/controller.go
# pkg/policy/existing.go
# pkg/policyviolation/builder.go
# pkg/policyviolation/generator.go
# pkg/webhooks/server.go
# pkg/webhooks/validate_audit.go
# pkg/webhooks/validation.go
2020-10-12 18:30:37 -07:00
Shuting Zhao
cdc5190c56
update nirmata/kyverno to kyverno/kyverno
2020-10-07 11:12:31 -07:00
Mohan B E
51ac382c6c
Feature/configmaps var 724 ( #1118 )
...
* added configmap data substitution for foreground mutate and validate
* added configmap data substitution for foreground mutate and validate fmt
* added configmap lookup for background
* added comments to resource cache
* added configmap data lookup in preConditions
* added parse strings in In operator and configmap lookup docs
* added configmap lookup docs
* modified configmap lookup docs
2020-09-22 14:11:49 -07:00
Yuvraj
e5fb55f1c6
Generate policy with backword compatibility ( #1125 )
...
* fix generate label issue
* fix generate issue for old namespace
* small fix
* added backword compatibility
* condition changed
* extra code remove
2020-09-18 12:34:43 -07:00
evalsocket
b008ec0aaa
added job trigger if needed
2020-09-10 10:19:36 -07:00
Yuvraj
e63be74697
Merge branch 'master' into feature/reports-cli
2020-09-03 22:20:48 +05:30
Yuvraj
e15ed829ca
remove policy controller for policyreport
2020-09-03 22:19:37 +05:30
shuting
931d7cd47c
Set mutating webhhok reinvocationPolicy to IfNeeded ( #1097 )
...
* add watch policy to clusterrole kyverno:customresources
* fix build
* fix nil pointer
* skip json patches if the mutation is re-invoked
* set resource mutating webhook invocation policy to IfNeeded
2020-09-03 08:54:37 -07:00
Yuvraj
e43154ea1c
merge conflict resolve
2020-09-02 14:17:33 +05:30
Mohan B E
3690bf5fff
conditional anchor preprocessing for patch strategic merge ( #1090 )
...
* conditional anchor preprocessing for patch strategic merge
* modified sequence pre processing and added unit test
* merged master
* go fmt
* corrected mistake and added error handling to policy validate
2020-09-01 09:12:05 -07:00
Yuvraj
0bc1b3b3e8
added logic for cli
2020-08-31 23:18:25 +05:30
NoSkillGirl
70b13d06dc
validation of policy against crd
2020-08-31 18:15:39 +05:30
Yuvraj
875f9716e8
policy report crd added
2020-08-26 00:03:39 +05:30
Mohan B E
6e827f912f
Feature/e2e 575 ( #1018 )
...
* added api templates
* E2E test for generate roles, rolebindings, clusterrole and clusterrolebindings
* table driven e2e tests
* table driven e2e tests and go fmt
* removed unwanted vars
* increased sleep time
* removed role generation clone
* increated sleep time
* added rolebinding clone and retry mechanism for get resources
* modified test for clone
* added namespace to role
* added namespace variable
* added git actions job
* changed build name
* removed docker login
* added role verbs
* removed github actions job and rbac file
* added clusterrole test with clone
* fixed travis issue
2020-08-06 10:46:10 +05:30
shuting
39de46fe39
983 kustomize support ( #1026 )
...
* prototype - strategic merge patch
* add end to end test
* add engine strategic merge patch support
* set webhook reinvocationPolicy to IfNeeded
* refactor engine mutate code
* support JMESPath in strategic merge patch
* implement patchesJson6902
* update doc
* resolve pr comments
2020-08-05 09:11:23 -07:00
Mohan BE
9451f79ee5
added api docs generator
2020-07-20 20:05:06 +05:30
shuting
67f7ed0ed3
Bug fix: perform OR across types in UserInfo ( #992 )
...
* remove policy name cache entry on policy DELETE
* buugfix: perform OR in userInfo match
* add function description
2020-07-14 20:23:30 -07:00
NoSkillGirl
f0fab9499e
temp
2020-07-11 17:56:14 +05:30
shuting
87fa77fbcc
965 add validate audit handler ( #967 )
...
* store policy names cache to reduce lookup time
* add validate audit handler
* fix #958 , remove auto-gen annotation on Pod
* formatting code
* update processTime to readable format
* #586 , add back unit test
* update logging info
* remove unused interface
* handle generate policy in a single thread in weboook
* resolve pr comments
2020-07-09 11:48:34 -07:00
NoSkillGirl
2fde3146e8
added more validation for policies
2020-07-07 17:08:57 +05:30
Yuvraj
ab328b59d3
go mod updated
2020-06-25 12:00:35 -07:00
Yuvraj
fac31e1c51
temp patch in client-go
2020-06-24 12:57:24 -07:00
shravan
5cb134214b
536 importing go acc before ci/cd
2020-01-29 14:23:59 +05:30
shravan
2766915871
536 go mod tidy
2020-01-26 20:17:40 +05:30
shravan
a4e06a6ba1
536 fixing compilation issues
2020-01-26 19:42:09 +05:30
shravan
5a63b85368
536 conforming to plugin author guidelines
2020-01-26 19:21:58 +05:30
shravan
fa7c522b5c
522 minor changes from tests
2020-01-24 09:51:40 +05:30
shravan
d86a80ac9f
adding comment for gomod replace statement
2020-01-14 10:11:26 +05:30
shravan
4bd678e301
added go modules and removed vendor file
2020-01-14 10:07:21 +05:30