shuting
2fc3b3b998
Fixes 1410 strategic merge patch ( #1414 )
...
* fixes #1410
* fix unit test
* re-initialize worker immediately on failure
2020-12-23 17:48:00 -08:00
shuting
3c5f9f8888
1398 - Reduce RCR throttling requests ( #1406 )
...
* reduce RCR throttling requests by merging policy application (policy - namespace) results into single RCR
* - refactor policy controller; - fix RCR issue
* - refactor RCR controller; - fix cpolr on ns update; - reduce throttling when getting resources; - fix tests
* update CRD schema
* fix typo
2020-12-21 11:04:19 -08:00
Jim Bugwadia
c77944ddef
filter resources excluded in config ( #1404 )
2020-12-16 12:29:16 -08:00
Shuting Zhao
75313b7462
update message
2020-12-09 14:41:20 -08:00
Jim Bugwadia
b7cecd04ed
Merge pull request #1375 from kyverno/1292_match_namespace
...
match/exclude ns resource name
2020-12-08 23:05:42 -08:00
shuting
ab5f2274f9
1314 validate rule ( #1368 )
...
* fixes 1314
* fix panic
2020-12-08 22:52:37 -08:00
Jim Bugwadia
d4327aeaeb
match/exclude ns resource name
2020-12-08 22:17:53 -08:00
Jim Bugwadia
6afd2e6f3a
ignore non-policy files in CLI and improve validation messages ( #1362 )
...
* improve validation message
* improve error behaviors
* fix tests
* fix tests
2020-12-07 11:26:04 -08:00
Jim Bugwadia
a64915128b
Revert "ignore non-policy files while loading"
...
This reverts commit c766512485
.
2020-12-06 11:12:54 -08:00
Jim Bugwadia
c80ac553f8
update validation messages
2020-12-06 10:54:10 -08:00
Jim Bugwadia
1c2262b6e2
merge main
2020-12-04 16:52:10 -08:00
Jim Bugwadia
f3b644f624
handle anchors in keys
2020-12-04 15:59:15 -08:00
Jim Bugwadia
13a9a4721a
wildcard label and annotation keys validate patterns ( #1360 )
2020-12-04 12:05:24 -08:00
shuting
624b481df3
Fix 1351 - policy report ( #1359 )
...
* ignore Kyverno CRDs existence check when server is not available
* clean up cluster / reportChangeRequest
* resolve PR comments
* - fixes #1351 ; - clean up code
* fo fmt
2020-12-04 10:04:46 -08:00
Jim Bugwadia
44afdf2f95
wildcard label and annotation keys validate patterns
2020-12-04 09:28:30 -08:00
Jim Bugwadia
59ba4fe3ac
add annotation wildcard support
2020-12-02 12:25:56 -08:00
Jim Bugwadia
8aa00106a5
add wildcard support for label key and values
2020-12-01 22:49:35 -08:00
Jim Bugwadia
50e5e7eedf
add wildcard support for label key and values
2020-12-01 22:48:56 -08:00
shuting
2ec5a0fa42
1319 fix throttling ( #1348 )
...
* fix policy status and generate controller issues
* shorten ACTION column name
* update logs
* improve naming
* add temp logs for troubleshooting
* cleanup logs
* apply generate policy to old & new resource in webhook
* cleanup log messages
* cleanup log messages
* cleanup log messages
* fix clean up of policy report in init container
Co-authored-by: Jim Bugwadia <jim@nirmata.com>
2020-12-01 12:30:08 -08:00
Shuting Zhao
bf0128726a
fix bug in configmap lookup - wrong return value for invalidType
2020-11-30 12:57:26 -08:00
Jim Bugwadia
251129d09b
fix wildcard match
2020-11-29 00:35:33 -08:00
Jim Bugwadia
27f9516eb2
allow wildcards in condition values
2020-11-28 23:38:44 -08:00
Jim Bugwadia
e67779eeb5
allow wildcards in condition values
2020-11-28 23:29:15 -08:00
Jim Bugwadia
52d8977aab
handle complex types for variable substitution
2020-11-25 14:21:01 -08:00
Jim Bugwadia
3dfe3169dc
add logger
2020-11-25 10:11:08 -08:00
Jim Bugwadia
125faaf4e3
fix variable substitution
2020-11-25 00:21:51 -08:00
Jim Bugwadia
75bd8e28f5
also trim in context query
2020-11-24 17:53:19 -08:00
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
Shuting Zhao
2d8092d97c
fixes https://github.com/kyverno/kyverno/issues/1238
2020-11-18 14:31:43 -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 Zhao
e985ee4031
correct misspelled words
2020-11-17 12:01:01 -08:00
Shuting Zhao
781fbfb82c
Merge branch 'main' into schema_gen
...
# Conflicts:
# pkg/generate/cleanup/controller.go
# pkg/generate/controller.go
2020-11-13 17:46:34 -08:00
Pooja Singh
c9b6c1f2f1
Supress Error Logs ( #1255 )
...
* supressed validation and crd error log
* small fix
2020-11-13 16:36:25 -08:00
Shuting Zhao
943935ee1b
properly deserialize anyPattern
2020-11-13 16:25:51 -08:00
NoSkillGirl
d468368ec2
log level added
2020-11-13 14:51:28 +05:30
Jim Bugwadia
74b656768e
1251 fix generate panic ( #1252 )
...
* improve error message
* fix panic and add error logs
* update log levels and messages
* fix tests
2020-11-12 16:44:57 -08:00
NoSkillGirl
acc34fbf0a
Merge commit
2020-11-10 10:49:29 +05:30
NoSkillGirl
ba5d3a0b7a
CLI handling - applying policy with annotations on pod
2020-11-10 10:05:07 +05:30
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
009268f844
special handling - when applying policy with annotations on pod
2020-11-09 20:36:42 +05:30
Shuting Zhao
a1eda94a80
Merge branch 'main' into policyreport
...
# Conflicts:
# pkg/utils/util.go
2020-11-03 16:43:00 -08:00
Shuting Zhao
8e0650804f
improve error log
2020-11-03 15:41:17 -08:00
Shuting Zhao
d8d5160bce
fix #1192
2020-11-03 15:31:58 -08:00
Jim Bugwadia
7e9b08baeb
Feature/make operators case insensitive ( #1217 )
...
* fix typo
* make operators case insensitive
* fix case statement
2020-10-29 15:00:22 -07:00
Shuting Zhao
36c549ea22
Merge branch 'master' into policyreport
...
# Conflicts:
# charts/kyverno/values.yaml
2020-10-22 20:35:22 -07:00
Shuting Zhao
2364ff1407
add reportRequest / clusterReportRequest
2020-10-22 16:15:43 -07:00
Jim Bugwadia
062d794cad
fix conversion errors
2020-10-22 11:59:11 -07:00
Jim Bugwadia
2c9a99b55d
fix mutation.go
2020-10-14 18:21:55 -07:00