1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
Commit graph

1665 commits

Author SHA1 Message Date
Jim Bugwadia
58feb4f0ae
Merge pull request #1417 from kyverno/1337_match_old_resource
update validation logic
2020-12-23 19:01:15 -08:00
Jim Bugwadia
d3a65a0b2a fix patch resource in response 2020-12-23 18:51:07 -08:00
Jim Bugwadia
204c1f79fb fix validate response 2020-12-23 18:46:12 -08:00
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
Jim Bugwadia
ed232ba118 add test case 2020-12-23 15:57:12 -08:00
Jim Bugwadia
e2f10c6f83 update validation logic 2020-12-23 15:10:07 -08:00
shuting
d0347afa59
Fix invalid failure event for generate policy (#1413)
* 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

* fix invalid generate failure event
2020-12-22 11:07:31 -08:00
Pooja Singh
a3725ab0cc
Merge pull request #1412 from NoSkillGirl/policyReport_CLI_testcases
Policy report cli testcases
2020-12-22 14:12:34 +05:30
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
NoSkillGirl
be111d6282 simplified testcases 2020-12-20 02:43:07 +05:30
NoSkillGirl
8a8b861f54 added pass and fail test cases 2020-12-20 02:37:09 +05:30
NoSkillGirl
77a7ce3708 refactoring apply 2020-12-20 01:21:31 +05:30
Jim Bugwadia
c77944ddef
filter resources excluded in config (#1404) 2020-12-16 12:29:16 -08:00
Jim Bugwadia
df7006f768
Merge pull request #1402 from realshuting/1398_rcr_throttling
Increase default memory limit to 256 Mi
2020-12-15 18:00:10 -08:00
Shuting Zhao
8b1d84f32c increase memory limit to 256 Mi 2020-12-15 17:55:01 -08:00
shuting
5f70f5feec
fixes #1399 (#1400) 2020-12-15 15:21:39 -08:00
Jim Bugwadia
ad9f189144 merge main 2020-12-14 16:08:01 -08:00
Pooja Singh
bff7229678
1345 use GR lister (#1387)
* improved log message

* added lister for GR

* added label to GR

* added wait for cache is sync
2020-12-14 14:52:13 -08:00
Jim Bugwadia
043420d1ad remove ns / name check 2020-12-14 02:52:12 -08:00
Jim Bugwadia
b25a037113 fix generate clone/data check 2020-12-14 02:43:16 -08:00
Jim Bugwadia
2285e6b1b6 update docs 2020-12-14 02:38:33 -08:00
Jim Bugwadia
41f636b702 Merge branch 'main' into 1390_generate_no_data 2020-12-13 00:50:16 -08:00
Jim Bugwadia
5dcf37141b allow generate with no data/status 2020-12-12 21:19:37 -08:00
NoSkillGirl
f7056fc14a error message updated 2020-12-11 13:18:27 +05:30
NoSkillGirl
1097a0d5f5 added pipe for passing policy in apply 2020-12-10 16:07:56 +05:30
Jim Bugwadia
2bd47f28f1
Merge pull request #1379 from realshuting/1371_gen_synchronize
Disable updates of generated resource when synchronize is set to false
2020-12-10 00:24:26 -08:00
Shuting Zhao
4e81d0966d update message 2020-12-09 17:19:26 -08:00
Shuting Zhao
304a7e1b1e add warning message when validates poclies 2020-12-09 15:37:45 -08:00
Shuting Zhao
75313b7462 update message 2020-12-09 14:41:20 -08:00
Shuting Zhao
ac23fa20a7 disable updates of gen-resource when sync=false 2020-12-09 14:15:52 -08:00
shuting
39421ca6e9
Reduce RCR throttling requests (#1376)
* reduce RCR throtlling requests

* update logger in init container
2020-12-09 09:29:52 -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
c1764a85d1
1370 clean up stale RCRs (#1373)
* remove env "POLICY-TYPE"

* clean up resource in goroutine

* clean up stale RCRs on namespace deletion

* go vet

* clean up code
2020-12-08 23:04:16 -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
2613a6cce4
pkg/webhooks/server.go (#1372)
* pkg/webhooks/server.go

* remove test for blocking deletes on generatated & synchronized resources

* remove test for blocking deletes on generatated & synchronized resources
2020-12-08 19:09:59 -08:00
Shuting Zhao
54b0afb8b9 clean up old webhooks before registering new ones 2020-12-08 15:04:24 -08:00
Pooja Singh
d07058e90f
skipping gr status update (#1364) 2020-12-07 12:04:46 -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
c766512485 ignore non-policy files while loading 2020-12-06 10:57:20 -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
shuting
630a9cc94c
Fix Kyverno crash when CRD is not installed (#1353)
* ignore Kyverno CRDs existence check when server is not available

* clean up cluster / reportChangeRequest

* resolve PR comments
2020-12-03 19:19:36 -08:00
Jim Bugwadia
9cae63ea03
Merge pull request #1352 from kyverno/1332_wildcards_in_labels
1332 wildcards in labels and annotations
2020-12-03 13:56:56 -08:00
Pooja Singh
733cd060a3
fixed triggring generate rule (#1355) 2020-12-03 09:43:43 -08:00