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

1203 commits

Author SHA1 Message Date
Yuvraj
b3ab74d8b6 Update pkg path
Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com>
2020-03-24 12:06:35 +05:30
shravan
80cda4668b 753 dummy commit 2020-03-24 08:50:07 +05:30
shravan
93205ecbbf 753 dummy commit 2020-03-24 08:45:44 +05:30
Yuvraj
801c7513cb golanfci-lint changes
Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com>
2020-03-24 00:35:05 +05:30
shivkumar dudhani
4320111c5c fix logs api 2020-03-20 11:43:21 -07:00
Shivkumar Dudhani
2638e1002a
Merge branch 'master' into access_check 2020-03-20 10:07:47 -07:00
shivkumar dudhani
6e822ece40 fix CR 2020-03-20 09:18:15 -07:00
shravan
dfbf247ad8 753 circle ci fixes 2020-03-20 20:35:26 +05:30
shravan
fac7a15d7d 753 prototype changes 2020-03-20 20:23:34 +05:30
shravan
7c5a2aa438 754 save commit 2020-03-19 20:45:30 +05:30
Jim Bugwadia
77b1294c38
Merge pull request #738 from shravanshetty1/725_validation_enforce_error
#725 - anyPattern error improvements
2020-03-18 12:36:06 -07:00
shivkumar dudhani
36eca5e886 CI fixes 2020-03-17 18:34:44 -07:00
shivkumar dudhani
e6e5bbb603 Merge branch 'master' into access_check 2020-03-17 17:23:18 -07:00
shivkumar dudhani
d327309d72 refactor logging 2020-03-17 16:25:34 -07:00
shivkumar dudhani
1b1ab78f77 logs & access 2020-03-17 11:05:20 -07:00
shuting
2768574a39
Merge pull request #737 from shravanshetty1/536_extend_cli_v3
#536 - kyverno CLI
2020-03-16 09:54:27 -07:00
shravan
46c3b78518 725 fixing tests 2020-03-16 14:18:51 +05:30
shravan
8dda9cc413 725 error response now returns rule message if it exists 2020-03-16 14:08:13 +05:30
shravan
892f8c7040 527 resolving merge conflicts 2020-03-13 10:01:50 +05:30
shuting
fc4fbd7e7a
Merge pull request #693 from shravanshetty1/527_status_fix
#527 - Status fixes
2020-03-12 16:22:04 -07:00
shivkumar dudhani
5912eda1c0 fix comments 2020-03-11 18:14:42 -07:00
shivkumar dudhani
b1063a95e1 refactor & validate operations for generate rules in PolicyValidation 2020-03-11 18:14:23 -07:00
shravan
1906841ad5 527 added comments and added a log 2020-03-07 16:23:17 +05:30
shravan
2c3931a671 527 optimised lock implementation 2020-03-07 14:56:42 +05:30
shravan
9656975b5a 527 renamed package and send listner instead of entire sync object 2020-03-07 12:53:37 +05:30
shravan
6f07aac36a 725 fixing tests 2020-03-06 17:19:41 +05:30
shravan
ffd3487ace 725 changed returned error 2020-03-06 17:11:33 +05:30
shravan
afdbc1ac57 725 validationfailureaction enforce now returns a more concise error 2020-03-06 03:47:49 +05:30
shravan
1fa88e0dd0 536 workin cli 2020-03-06 03:00:18 +05:30
shravan
a0baf182f2 522 moving force mutate to a seperate file 2020-03-06 01:54:36 +05:30
shravan
4831aa86ae 522 dealing with substitute variables 2020-03-06 01:52:03 +05:30
shravan
4db0cf7a87 522 adding force mutate function 2020-03-06 01:09:38 +05:30
shravan
7aa1e1515b 522 supporting crd validation 2020-03-05 22:50:32 +05:30
shravan
b27a62b6bf 522 added service account name in context 2020-03-04 19:38:33 +05:30
shravan
044d55600a 522 fixed tests and added validation of mutated resources 2020-03-04 19:27:08 +05:30
shravan
888d2ae171 522 save commit 2020-03-04 19:16:26 +05:30
shravan
a0f9ad1361 522 save commit 2020-03-04 18:56:59 +05:30
shravan
6206852262 527 redesigned implementation so that package variables are not used across packages 2020-03-04 15:45:20 +05:30
shravan
38b92a0d34 527 making status listner into a buffered channel instead of go routines 2020-03-04 13:35:49 +05:30
shravan
fdb1cc36ac 527 getting generate stats from sync 2020-03-04 13:11:48 +05:30
shuting
0140aa6dd2
Merge pull request #728 from nirmata/727_feature
support nested variable resolution
2020-03-03 19:23:10 -08:00
shuting
c7cfdd033f
Merge pull request #726 from shravanshetty1/658-match-metadata
#658 - if match/resource/kinds is empty, then policy can only deal with metadata of a resource
2020-03-03 18:09:43 -08:00
shravan
e324967405 527 resolving merge conflicts 2020-02-29 23:12:39 +05:30
shravan
40e92ebacf 527 decoupling sender and reciever 2020-02-29 22:39:27 +05:30
shravan
053ccde6b8 527 stopCh changes 2020-02-29 17:19:00 +05:30
shivkumar dudhani
73c0aaca79 CR refactor 2020-02-26 17:02:16 -08:00
shivkumar dudhani
03ee46e1d9 support nested variable resolution 2020-02-26 16:41:48 -08:00
shuting
a97bf0ffca
Merge pull request #713 from nirmata/710_bug_eventreporting
refactor events
2020-02-26 16:06:46 -08:00
shravan
39ac8391c6 658 prototype with testcases 2020-02-26 16:08:56 +05:30
shravan
8c84e9af2b 527 fixed ci 2020-02-26 13:56:45 +05:30
shravan
b7e551a5cb 527 added tests 2020-02-26 13:52:12 +05:30
shravan
b068733ac8 527 removing uneeded statements 2020-02-26 10:22:11 +05:30
shravan
2a9b6a8f69 527 removed uneeded statements 2020-02-26 07:36:19 +05:30
shravan
8a12ea30d6 527 fixed violation count and generated count 2020-02-26 07:03:43 +05:30
shravan
157694b4fd 527 skippings stats for sync pv 2020-02-26 00:26:09 +05:30
shravan
d0217a3faf 527 minor fixes 2020-02-25 23:57:16 +05:30
shravan
7df58b8a4f 527 corrected file name 2020-02-25 21:20:08 +05:30
shravan
4c573bd3c7 527 ci fixes 2020-02-25 21:07:00 +05:30
shravan
d32cd9363e 527 save commit 2020-02-25 20:55:07 +05:30
shravan
1026fc5236 527 clear cache to handle deleting policies 2020-02-25 00:07:13 +05:30
shravan
a140406485 527 pending changes from previous merge conflict resolution 2020-02-24 20:20:51 +05:30
shravan
36e775edb0 527 resolved merge conflicts 2020-02-24 20:19:28 +05:30
shravan
d080aa18ce 527 prototype changes to handle generate stats - also changes made to handle stats such as violation count and generated resources count - currently untested 2020-02-24 20:12:39 +05:30
shravan
d758a4ad45 527 added accurate violation Count 2020-02-23 23:24:18 +05:30
shravan
ac37ec66f0 527 minor fixes 2020-02-23 20:40:00 +05:30
shravan
592df74c57 527 tested mutate needs further testing 2020-02-22 23:35:02 +05:30
shravan
3cfa70bbba 527 untested prototype 2020-02-22 19:05:54 +05:30
shravan
a15a741cb4 527 save commit 2020-02-22 16:57:00 +05:30
shivkumar dudhani
14609ae7d9 remove cli(revert changes) 2020-02-20 15:27:10 -08:00
shivkumar dudhani
9b38289a84 remove openapi validation(manual revert) 2020-02-20 15:09:20 -08:00
shivkumar dudhani
a31dc21076 fix ineffective assign 2020-02-20 10:01:29 -08:00
shivkumar dudhani
e499264ea9 refactor events 2020-02-19 19:24:34 -08:00
shravan
74260f39dc 634 resolved merge conflicts 2020-02-19 21:39:01 +05:30
shravan
710be633a6 644 golangci issues 2020-02-19 10:49:57 +05:30
shravan
bc84413f35 644 resolving merge conflicts 2020-02-19 10:44:14 +05:30
shravan
38f916961d 644 removed concurrency 2020-02-19 10:25:51 +05:30
shravan
e9fc19142a 527 save commit 2020-02-19 09:27:39 +05:30
shivkumar dudhani
a5ce084da4 CR comments 2020-02-18 18:25:41 -08:00
Shivkumar Dudhani
d88b0bf2e4
Merge branch 'master' into 671_cleanUp_generate 2020-02-18 15:00:59 -08:00
shivkumar dudhani
468f7954ab Merge branch 'master' of https://github.com/shubham-asati/kyverno into shubham-asati-master 2020-02-18 14:53:41 -08:00
shivkumar dudhani
80c618bf98 Merge branch 'master' into 671_cleanUp_generate 2020-02-18 13:56:01 -08:00
shuting
cf59326c64
Merge pull request #701 from nirmata/700_bug
add kubernetes server version check
2020-02-18 10:01:30 -08:00
shuting
688505221e
Merge pull request #703 from shravanshetty1/536_extend_cli_v2
#536 - Extending cli functionality
2020-02-18 09:57:53 -08:00
shuting
1b2ae0af92
Merge pull request #676 from shravanshetty1/635_cluster_policy_update
#635 - Updating ClusterPolicy causes auto-generated rules to be deleted
2020-02-18 09:43:19 -08:00
shravan
236387b7a2 634 fixing tests 2020-02-18 00:57:28 +05:30
shravan
0af0c469a3 634 fixes 2020-02-18 00:01:03 +05:30
shravan
20bd2ec56d Merge branch '644_match-exclude' into 634_exclude_clusterroles 2020-02-17 20:22:22 +05:30
shravan
be08ccf487 536 cli now supports policies with generate 2020-02-17 13:12:30 +05:30
shravan
cbbf8a2cfb 635 fixed issue with kubectl edit 2020-02-16 23:29:20 +05:30
shravan
a03154ffe2 536 applying previous changes to apply as well 2020-02-16 08:55:09 +05:30
shravan
30c1c245b1 536 dir are read recursivly now 2020-02-16 08:53:44 +05:30
shravan
dad2518910 702 prototype commit 2020-02-15 23:24:04 +05:30
shravan
15656a0518 536 resolving merge conflicts 2020-02-15 22:32:42 +05:30
shravan
3182b7edb6 536 updated help text 2020-02-15 21:08:12 +05:30
shravan
89278574e6 536 sanitized error, supported folders as policy argument 2020-02-15 21:04:59 +05:30
shravan
b5e5f3eeda 527 save commit 2020-02-15 16:38:59 +05:30
shivkumar dudhani
9ab92ecc0a fix build errors- fakeclient implementation 2020-02-14 18:20:12 -08:00
shivkumar dudhani
2687ffcbee add kubernetes server version check 2020-02-14 18:12:28 -08:00
shivkumar dudhani
37d50999fb fix bug 2020-02-14 12:41:57 -08:00
shivkumar dudhani
a8e6de2fab CR fixes 2020-02-14 12:29:17 -08:00
shivkumar dudhani
eec0decae7 CR fixes 2020-02-14 12:25:13 -08:00
shivkumar dudhani
3fbfa251ad refactor 2020-02-14 12:16:02 -08:00
shivkumar dudhani
2cd4884b62 Merge branch 'master' into 671_cleanUp_generate 2020-02-14 12:06:01 -08:00
shivkumar dudhani
4f830acb65 refactor 2020-02-14 12:05:13 -08:00
shivkumar dudhani
5cee543755 refactor variable substitution 2020-02-14 11:59:28 -08:00
shivkumar dudhani
d855247a98 refactor generate to use variable substition at rule level 2020-02-13 13:57:48 -08:00
shivkumar dudhani
f4c1973c36 fix CR comment 2020-02-10 13:01:40 -08:00
shivkumar dudhani
34ad3a9a2b generate rule processing refactoring 2020-02-10 12:44:20 -08:00
shivkumar dudhani
0518aebb29 Merge branch 'master' into 671_cleanUp_generate 2020-02-10 12:39:32 -08:00
shravan
1bbe84bbc9 527 do not record stats during sync 2020-02-10 20:29:40 +05:30
shravan
1f0582baf3 Merge branch 'master' into 522_validate_policy_resource_data 2020-02-09 21:25:49 +05:30
shravan
9f36141e3c 644 creating deepcopies of function inputs and fixing test policy raw 2020-02-09 20:52:45 +05:30
shravan
b576df81f0 644 resolving merge conflicts 2020-02-09 20:05:46 +05:30
shravan
2d137c856c 644 circle ci changes 2020-02-09 19:56:38 +05:30
shravan
17da6217e0 644 circle ci changes 2020-02-09 19:28:51 +05:30
shravan
99e54e28d8 644 fixing compilation issue 2020-02-09 19:15:39 +05:30
shravan
a969a38c81 644 working version need to add more tests 2020-02-09 19:11:25 +05:30
shravan
122d1bd5fa 644 removed userinfo validation 2020-02-09 13:12:27 +05:30
shravan
b32b52224d 644 added test to verify usage 2020-02-09 12:34:59 +05:30
shravan
c7bed6f3ff 644 save commit for testcases 2020-02-07 18:36:17 +05:30
shravan
c8fd7f6a91 644 simplyifying solution 2020-02-07 18:11:47 +05:30
shravan
736c18ea46 644 logical error fixes prototype 2020-02-07 16:53:38 +05:30
shravan
9d99f7000e 658 adding missing changes from merge commit 2020-02-07 15:10:38 +05:30
shravan
79145603d9 658 resolving merge conflicts 2020-02-07 15:07:25 +05:30
shravan
22deb9d66b 658 adding missing changes from previous commit 2020-02-07 15:04:11 +05:30
shravan
70ea63cab3 658 removing unused commented out code 2020-02-07 15:02:36 +05:30
shravan
21abc315f6 644 removing commented out unused code 2020-02-07 14:55:04 +05:30
shravan
819ba3fb1b 644 returning detailed error from function in question, changes currently untested 2020-02-07 14:45:43 +05:30
Jim Bugwadia
d4bbae6fe8 update examples and log text 2020-02-06 22:51:16 -08:00
shravan
9051320e43 644 removing outdated tests and fixing stylistic issues 2020-02-06 23:55:46 +05:30
shravan
0891b23efd 644 stopped closing channel while go routine is sending values 2020-02-06 23:39:57 +05:30
shravan
a683f8d373 644 more elegant solution 2020-02-06 23:35:50 +05:30
shravan
f9293e9585 644 untested prototype 2020-02-06 22:32:50 +05:30
shravan
88083e91d6 658 removing outdated test from previous commit 2020-02-06 15:40:58 +05:30
shravan
d52312da82 635 prototype changes 2020-02-06 15:11:49 +05:30
shravan
f0a8b20668 253 resolving merge conflicts 2020-02-06 08:14:35 +05:30
Shravan Shetty
46afbe5f14
#640 - Patch annotation format changes (#660)
* 640 tested prototype

* 640 fixing tests

* 640 requeted changes related to annotation struct

* 640 fixes related to previous commit

Co-authored-by: Shravan Suresha Shetty <46517941+shravanss@users.noreply.github.com>
2020-02-05 18:35:27 -08:00
shravan
dd7e63e1a6 658 removing outdated tests and fixing broken ones 2020-02-05 17:00:47 +05:30
shravan
c8e9606a62 658 removing uneeded tests 2020-02-05 16:41:14 +05:30
shravan
a43e7dc9fd 658 removing deprecated functions 2020-02-05 16:33:55 +05:30
shravan
12c2909d27 658 refactoring getall lookup name 2020-02-05 16:29:37 +05:30
shravan
d38bf5c16e 658 prototype changes without policy lookup update 2020-02-05 15:55:37 +05:30
shivkumar dudhani
69f65c713d temp 2020-02-04 14:35:10 -08:00
shivkumar dudhani
f608d4db18 variable substitution on copy and retry generate resource creation 2020-02-04 12:13:41 -08:00
Jim Bugwadia
a1b49f72a3
fix gofmt and golint issues (#667)
* fix gofmt and golint issues

* add keys to structs

* fix compile error

* fix clusterrolebinding creation

* fix test
2020-02-03 13:38:24 -08:00
Shivkumar Dudhani
2bba55e211
substitute variable values on a copy of policy rule (#669) 2020-02-03 11:59:34 -08:00
shravan
4471117d42 644 removing more deadcode related to previous commit 2020-02-03 18:58:31 +05:30
shravan
0d4b256d13 644 updating changes with revised understanding of issue, also removed alot of deadcode to make changes 2020-02-03 18:51:18 +05:30
shravan
3b37a61f5d Revert "644 untested prototype changes"
This reverts commit 4021453760.
2020-02-01 20:48:06 +05:30
shravan
1da17a58f5 658 untested changes 2020-01-31 13:16:08 +05:30
shubham
c93a37d944 updated error message 2020-01-30 21:50:41 +05:30
shravan
4021453760 644 untested prototype changes 2020-01-30 16:12:26 +05:30
shubham
2b12f2a780 setting proper error message in policy validation for userinfo not allowed when background mode is set to true 2020-01-30 00:22:28 +05:30
shravan
c4a8efbd7b Merge branch 'master' into 253_ValidationInMutationFlag_v3 2020-01-29 14:34:15 +05:30
shravan
1c06353172 Merge branch 'master' into 522_validate_policy_resource_data 2020-01-29 14:33:21 +05:30
shravan
6762207fa7 Merge branch 'master' into 536_extend_cli 2020-01-29 14:26:44 +05:30
shuting
3343d73b76 linter fix (#657) 2020-01-27 08:58:53 -08:00
shravan
b7129263c9 536 revised error handling 2020-01-26 19:52:40 +05:30
shravan
33e55a78e0 536 corrected helper text 2020-01-26 19:44:18 +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
de08e2415c 536 circle ci changes 2020-01-26 11:17:04 +05:30
shravan
ee21060aaa made kube config optional, validates policeis on apply, added cluster flag 2020-01-26 10:47:58 +05:30
shravan
94f8721a6e 536 apply on cluster now supports significantly more resource types 2020-01-25 22:38:54 +05:30
shravan
78edfd2f7d Merge branch '522_validate_policy_resource_data' into 536_extend_cli 2020-01-25 17:57:16 +05:30
shravan
5f62d108b9 536 minor cli ui changes 2020-01-25 17:57:01 +05:30
shravan
865eb57812 resolving merge conflicts 2020-01-25 16:38:12 +05:30
shravan
e1b9a13590 resolving merge conflicts 2020-01-25 14:55:36 +05:30
shravan
78cae242c5 522 restructured files 2020-01-25 14:53:12 +05:30
shubham
7a34378648 Adding log level 4 to "Loading variable" logs in context.go line no 124 and 139 (#648)
Type at pkg/policyviolation/namespacedev.go
2020-01-24 16:29:51 -08:00
Shivkumar Dudhani
f4406bbefc
linter fixes (#656)
* cleanup phase 1

* linter fixes phase 2

* linter fixes

* linter fixes
2020-01-24 16:27:51 -08:00
Shivkumar Dudhani
8c1d79ab28
linter suggestions (#655)
* cleanup phase 1

* linter fixes phase 2
2020-01-24 12:05:53 -08:00
shravan
81ea5ba157 253 fixing circle ci issues 2020-01-24 23:40:05 +05:30
shravan
12076f6183 Merge branch 'master' into 253_ValidationInMutationFlag_v3 2020-01-24 23:32:15 +05:30
shravan
4bd3603e5d 253 fixing build issues 2020-01-24 23:25:39 +05:30
shravan
53a795e414 resolving merge conflicts 2020-01-24 23:24:20 +05:30
Shivkumar Dudhani
1171ac691b
cleanup phase 1 (#653) 2020-01-24 09:37:12 -08:00
shravan
1b707f10a0 522 added ability to override default openAPI document 2020-01-24 22:27:21 +05:30
shravan
aec7a78822 522 adding swagger doc directly to repo instead of getting it from the internet 2020-01-24 21:31:38 +05:30
shravan
d5778e3815 522 add missing circle ci change from previous revision 2020-01-24 21:12:36 +05:30
shravan
29bb74c537 522 more missing changes from circleci 2020-01-24 21:09:04 +05:30
shravan
db95002828 522 missing circle ci change 2020-01-24 21:01:56 +05:30
shravan
dfedd86505 522 resolving circle ci 2020-01-24 20:59:14 +05:30
shravan
b2e2dd8a0f 522 now supports all possible kinds 2020-01-24 20:22:33 +05:30
shravan
a959c4969e 522 revising setting of global state 2020-01-24 18:53:51 +05:30
shravan
a3bcde6f1e adding tests 2020-01-24 15:45:56 +05:30
shravan
56b54e6484 522 fixing bugs discovered from writing tests 2020-01-24 14:33:40 +05:30
shravan
fa7c522b5c 522 minor changes from tests 2020-01-24 09:51:40 +05:30
shravan
a90999417e 522 added kind prefix 2020-01-23 22:12:01 +05:30
shravan
af68f77b62 522 untested changes 2020-01-23 20:45:25 +05:30
shravan
be8527be47 revised 522 changes 2020-01-23 20:19:58 +05:30
shravan
344af84ec5 adding patch validation formutation 2020-01-23 18:03:37 +05:30
shravan
00da200c59 fixing cli output printing issues 2020-01-17 21:28:53 +05:30
shravan
2e60df0cb3 removing uneeded log statements 2020-01-17 09:55:04 +05:30
shravan
fc8153724e added map of kind to list api from swagger document 2020-01-17 09:51:13 +05:30
shravan
d0da7a8ed4 Merge branch 'master' into 536_extend_cli 2020-01-17 09:50:11 +05:30
Shuting Zhao
24f3659b03 update debug info log level 2020-01-16 14:37:01 -08:00
Shuting Zhao
5d3d27cafd report violation for mutation failure only, not block the creation 2020-01-16 14:29:44 -08:00
Shuting Zhao
ba8030bec0 change to use validationFailureAction for the mutation failure action 2020-01-16 11:57:28 -08:00
shravan
f41b7124ac fixing merge issues 2020-01-17 00:09:39 +05:30