1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
Commit graph

67 commits

Author SHA1 Message Date
shivkumar dudhani
29f56e292a use klog as logger for event broadcasting 2020-03-27 08:22:05 -07:00
shivkumar dudhani
1b1ab78f77 logs & access 2020-03-17 11:05:20 -07:00
shivkumar dudhani
e499264ea9 refactor events 2020-02-19 19:24:34 -08:00
Shivkumar Dudhani
8c1d79ab28
linter suggestions (#655)
* cleanup phase 1

* linter fixes phase 2
2020-01-24 12:05:53 -08:00
Shivkumar Dudhani
1171ac691b
cleanup phase 1 (#653) 2020-01-24 09:37:12 -08:00
Shivkumar Dudhani
ffd2179b03
538 (#587)
* initial commit

* background policy validation

* correct message

* skip non-background policy process for add/update

* add Generate Request CR

* generate Request Generator Initial

* test generate request CR generation

* initial commit gr generator

* generate controller initial framework

* add crd for generate request

* gr cleanup controller initial commit

* cleanup controller initial

* generate mid-commit

* generate rule processing

* create PV on generate error

* embed resource type

* testing phase 1- generate resources with variable substitution

* fix tests

* comment broken test #586

* add printer column for state

* return if existing resource for clone

* set resync time to 2 mins & remove resource version check in update handler for gr

* generate events for reporting

* fix logs

* cleanup

* CR fixes

* fix logs
2020-01-07 10:33:28 -08:00
Shivkumar Dudhani
085856baa1
add event source and format event messages (#565) 2019-12-26 11:50:41 -08:00
shivkumar dudhani
10fc1b47ba Merge branch 'master' into v1.1.0 2019-12-12 16:54:42 -08:00
Shivkumar Dudhani
a81d5c9ae7
update event message (#515) 2019-11-18 17:13:48 -08:00
shivkumar dudhani
3c3931b67b wat for cache sync and cleanup 2019-11-15 15:59:37 -08:00
shivkumar dudhani
57e8e2a395 Revert "wait for cache to sync and cleanup"
This reverts commit 9c3b32b903.
2019-11-15 15:57:18 -08:00
shivkumar dudhani
9c3b32b903 wait for cache to sync and cleanup 2019-11-15 15:53:22 -08:00
Shuting Zhao
b67577994a update apiversion to v1 in code 2019-11-13 13:41:08 -08:00
Shuting Zhao
f820cb4c83 implement #387 Generate clusterpolicyviolation when policy action set to "enforce" 2019-10-21 15:55:20 -07:00
shivkumar dudhani
5dab189743 fix event resource name + add filtered kinds to policy controller & namespace + fix messages 2019-09-12 15:04:35 -07:00
shivkumar dudhani
973abe6233 ignore creationg of event and PV if Name is not assgined. 2019-09-04 15:30:09 -07:00
shivkumar dudhani
fa53519e2a change CRD Name to ClusterPolicy & ClusterPolicyViolations 2019-09-03 14:51:51 -07:00
shivkumar dudhani
5b80da32ba replace policyInfo with engineResponse 2019-08-26 13:34:42 -07:00
Shuting Zhao
a83e5c1d05 Merge commit '2192703df1bb26cb8b30a1aece6f9afeed09b214' into 254_dynamic_webhook_configurations
# Conflicts:
#	pkg/engine/generation.go
#	pkg/engine/overlay.go
#	pkg/engine/utils.go
#	pkg/engine/utils_test.go
#	pkg/gencontroller/controller.go
#	pkg/gencontroller/generation.go
#	pkg/webhooks/mutation.go
#	pkg/webhooks/server.go
2019-08-19 16:44:38 -07:00
shivkumar dudhani
6580e0e73a remove temp clientNew 2019-08-17 09:58:14 -07:00
Shuting Zhao
a110efb96c Merge branch 'policyViolation' into 254_dynamic_webhook_configurations
# Conflicts:
#	main.go
#	pkg/annotations/annotations.go
#	pkg/annotations/controller.go
#	pkg/controller/controller.go
#	pkg/controller/controller_test.go
#	pkg/engine/engine.go
#	pkg/engine/generation.go
#	pkg/engine/mutation.go
#	pkg/engine/validation.go
#	pkg/event/controller.go
#	pkg/webhooks/mutation.go
#	pkg/webhooks/policyvalidation.go
#	pkg/webhooks/report.go
#	pkg/webhooks/server.go
#	pkg/webhooks/validation.go
2019-08-14 19:00:37 -07:00
shivkumar dudhani
aed0ed0dc1 clean up 2019-08-14 10:01:47 -07:00
shivkumar dudhani
1e621146be test policy engine on admission requests 2019-08-09 16:55:43 -07:00
shivkumar dudhani
135f241a4a event generator cleanup 2019-08-09 13:41:56 -07:00
Shuting Zhao
4ef50c66ea - add resource namespace in event info - improve event text 2019-08-06 11:30:44 -07:00
Shuting Zhao
1ecf92a634 - update vendor - add profiling library 2019-08-02 11:20:56 -07:00
shivkumar dudhani
14bc6859f6 annotations json path update 2019-07-24 14:25:28 -04:00
shivkumar dudhani
4166d13684 correct case 2019-07-19 16:18:36 -07:00
shivkumar dudhani
91030987ea handle retrys events 2019-07-19 16:17:10 -07:00
shivkumar dudhani
e5f208e303 annotation generation from policy controller 2019-07-17 17:53:13 -07:00
Shuting Zhao
749021774f resolve merge conflict 2019-07-08 18:03:21 -07:00
Shuting Zhao
42b8bcc968 Merge branch 'master' into 192_create-events_on_generation 2019-07-08 18:00:55 -07:00
Shuting Zhao
e820a80c5b add events for generation 2019-07-08 16:53:34 -07:00
shivkumar dudhani
942f0f5ac3 get resource using kind & add cache invalidate mechanism and retry 2019-07-08 15:34:21 -07:00
Shuting Zhao
b4f24371c3 fix rest unit test, tests in engine are left 2019-06-27 19:14:00 -07:00
Shuting Zhao
9e50bd08a4 Merge branch '160_generate_events' into proposal_result_structure
# Conflicts:
#	pkg/controller/controller.go
#	pkg/webhooks/server.go
2019-06-27 13:56:15 -07:00
shivkumar dudhani
30bcc6cccd create violations 2019-06-27 11:43:07 -07:00
Shuting Zhao
beb693479e create events on UPDATE request 2019-06-27 11:36:10 -07:00
Shuting Zhao
cd7b5a59a5 update msg info in event builder 2019-06-27 10:04:41 -07:00
Shuting Zhao
639882dc06 Merge branch '160_generate_events' into proposal_result_structure
# Conflicts:
#	pkg/engine/engine.go
#	pkg/event/controller.go
#	pkg/event/msgbuilder.go
#	pkg/event/util.go
#	pkg/info/info.go
#	pkg/webhooks/server.go
2019-06-26 18:16:06 -07:00
Shuting Zhao
b63b3b869e create event from policy info 2019-06-26 18:04:50 -07:00
shivkumar dudhani
10aadb1efa create events for policy and resource 2019-06-26 15:31:18 -07:00
shivkumar dudhani
1919bf1809 get name + namespace as arguments 2019-06-26 12:41:42 -07:00
shivkumar dudhani
42d24f6cc7 create events for processExisting 2019-06-26 12:19:11 -07:00
shivdudhani
915bd35f90 controller shutdown 2019-06-20 16:50:54 -07:00
shivdudhani
853815720d replace utilruntime.HandleError with glog.Error 2019-06-20 11:20:09 -07:00
shivdudhani
200f3fce63 refactor code 2019-06-05 17:43:59 -07:00
Denis Belyshev
e571f730b2 127: Implemented usage of result package in validation and mutation functions. 2019-06-05 13:43:07 +03:00
shivdudhani
c205cca38b introduce glog, remove log.logger references 2019-05-30 12:28:56 -07:00
shivdudhani
6cc4148fac move client to pkg, helper script for self-signed certs & update documentation 2019-05-29 14:12:09 -07:00