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

3539 commits

Author SHA1 Message Date
Shuting Zhao
ec050241fc release v1.4.3
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-09-16 11:56:52 -07:00
Shuting Zhao
0660db94bd release v1.4.3-rc2
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-09-14 20:35:58 -07:00
shuting
efdb7881ef
- fix any/all during policy mutation; - add unit tests (#2388)
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-09-14 19:46:04 -07:00
shuting
e288ed7fd2
Fix upgrade issue from 1.4.2 to 1.4.3-rc1 (#2387)
* update git command to get tag in 'v*' format

Signed-off-by: Shuting Zhao <shutting06@gmail.com>

* add label "appVersion" to report change request

Signed-off-by: Shuting Zhao <shutting06@gmail.com>

* fix linter issue

Signed-off-by: Shuting Zhao <shutting06@gmail.com>

* update git hash

Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-09-14 01:06:56 -07:00
Shuting Zhao
e6317da597 update kyverno-crds chart version
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-09-13 15:27:43 -07:00
Shuting Zhao
b3e529f817 release v1.4.3-rc1 2021-09-13 14:44:24 -07:00
Vyankatesh Kudtarkar
bfd651cbe6
Fix Background Scan issue (#2381) 2021-09-13 11:36:23 -07:00
Max Goncharenko
a0ff8bbd0b
Implement global anchor (#2311)
* implement global anchor for patch strategic merge

Signed-off-by: Max Goncharenko <kacejot@fex.net>

* fixed unit tests for mutation global anchor

Signed-off-by: Max Goncharenko <kacejot@fex.net>

* added global anchor in validation

Signed-off-by: Max Goncharenko <kacejot@fex.net>

* fix some global anchor issues found during testing

Signed-off-by: Max Goncharenko <kacejot@fex.net>

* run go tidy

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* fixed tests

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* fixed some tests

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* finish implementing global anchor

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* WIP: lower global anchor strictness

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* Revert "WIP: lower global anchor strictness"

This reverts commit 08e176a042.

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* global anchor for mutation

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>
2021-09-13 08:59:28 -07:00
Kumar Mallikarjuna
f6933bb439
Block scalars for value files (#2380)
* Block scalars for value files

Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna1@gmail.com>

* Handle non-block values

Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna1@gmail.com>

* Unit tests for block scalars

Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna1@gmail.com>
2021-09-13 16:33:30 +05:30
Yashvardhan Kukreja
5fcd9b83d9
added: support for metrics configuration, periodic metrics cleanup and selective namespace whitelisting and blacklisting for metrics (#2288)
Signed-off-by: Yashvardhan Kukreja <yash.kukreja.98@gmail.com>
2021-09-10 14:39:12 -07:00
Max Goncharenko
c2e298a1f6
Substitute vars in map keys (#2344)
* substitute vars in map keys

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* add test for 2316 issue case

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>
2021-09-10 14:08:47 -07:00
Bricktop
1270a0efc2
Check Any and All ResourceFilters during policymutation (#2373)
Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>
2021-09-10 09:38:11 -07:00
Jim Bugwadia
51c8b5fa97
Merge pull request #2377 from realshuting/v1alpha1_policy_report
Add back V1alpha1 policy report resources
2021-09-09 17:30:43 -07:00
Shuting Zhao
fd7e4735d7 add v1alpha1 CRDs schema back 2021-09-09 17:13:16 -07:00
Shuting Zhao
9d75181fb1 add v1alpha1 policy report resources back 2021-09-09 17:12:08 -07:00
Naman Lakhwani
e6f16221d0
modifying make command (#2265)
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-09-09 16:29:16 -07:00
Max Goncharenko
7e258bf54b
add new test; remove unnecessary anchors (#2217)
* add new test; remove unnecessary anchors

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* added several test to e2e

Signed-off-by: Max Goncharenko <kacejot@fex.net>

* remove unused variable

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* added comment to expected result

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>
2021-09-09 08:55:20 -07:00
Vyankatesh Kudtarkar
74549c71ed
Merge pull request #2261 from vyankyGH/GVK_Format
Support GVK format is case sensitive
2021-09-09 09:34:58 +05:30
Vyankatesh Kudtarkar
39ce730814
Merge branch 'main' into GVK_Format 2021-09-09 09:00:37 +05:30
Naman Lakhwani
dfd9a8d604
networkPolicy customization (#2334)
* networkpolicy customization

Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>

* allow configuring matchLabels, added metrics-port

Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>

* check metricsService.create

Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-09-08 18:21:56 -07:00
Max Goncharenko
2a375fa1b5
Remove contains function (#2346)
* remove contains function

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* added test for contains issue case

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>
2021-09-08 12:33:41 -07:00
Pooja Singh
bc88916437
Merge pull request #2370 from NoSkillGirl/2350/handling_any/all_cli
Added condition for `all/any` for match | CLI
2021-09-08 14:29:42 +05:30
NoSkillGirl
973d09d0e4 seperating the code in different function
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-08 13:07:34 +05:30
NoSkillGirl
f5887b49a7 added condition for all and any while getting the resource
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-08 12:06:14 +05:30
Vyankatesh Kudtarkar
12530619ce
allowing users to skip policy validation when mutating resources (#2365)
* allowing users to skip policy validation when mutating resources

* fix unit test issue

* fix comment
2021-09-07 22:12:44 -07:00
Jim Bugwadia
511db4372b
update cosign (#2369)
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
2021-09-07 21:29:20 -07:00
Pooja Singh
2e76d0a3e7
Merge pull request #2367 from NoSkillGirl/handling_autogen_cli
Handling autogen test cases | CLI
2021-09-07 22:50:30 +05:30
NoSkillGirl
1b0c80b39f fixed test cases
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-07 22:27:29 +05:30
NoSkillGirl
1180ba4a86 handling autogen
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-07 20:23:03 +05:30
Pooja Singh
745838ff26
Merge pull request #2364 from NoSkillGirl/2363/gvk_bug_cli
Fix | Support gvk in CLI for policies applied on cluster
2021-09-06 19:02:31 +05:30
NoSkillGirl
0054da8cdb issue fixed
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-06 18:15:52 +05:30
Sachin
0d1b662134
add check for the forward slash (#2270)
* add check for the forward slash

Signed-off-by: slayer321 <sachin.maurya7666@gmail.com>

* fix errors

Signed-off-by: slayer321 <sachin.maurya7666@gmail.com>

* fix minor errors

Signed-off-by: slayer321 <sachin.maurya7666@gmail.com>

* fix regex

Signed-off-by: slayer321 <sachin.maurya7666@gmail.com>

* fix error message

Signed-off-by: slayer321 <sachin.maurya7666@gmail.com>
2021-09-06 15:22:51 +05:30
Pooja Singh
eca7d455f7
Merge pull request #2342 from NoSkillGirl/cli/apply_command_improvement
Kyverno CLI `apply` and `test` command improvements
2021-09-03 21:21:11 +05:30
Pooja Singh
21c5ad49db
Merge pull request #7 from vyankyGH/test_cmd_skippolicy
update test command for skipped policy
2021-09-03 19:23:47 +05:30
Vyankatesh Kudtarkar
f9df03ee81 update test command for skip policies 2021-09-03 18:43:11 +05:30
NoSkillGirl
39c58f661f added exit code for policy report
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-03 17:17:22 +05:30
NoSkillGirl
6650d36e04 moved some code to common
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-03 16:41:13 +05:30
NoSkillGirl
3e953ba50b added condition for mutate rule count
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-03 12:41:05 +05:30
NoSkillGirl
e89a663689 added logic for mutate policies
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-03 12:32:12 +05:30
Vyankatesh Kudtarkar
28cceb9229 add unit test cases 2021-09-03 10:42:43 +05:30
Vyankatesh Kudtarkar
601fb711e5 fix unit test issue 2021-09-03 10:32:09 +05:30
NoSkillGirl
14d00722d8 fixed autogen test case
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-03 00:36:42 +05:30
NoSkillGirl
2dc1f1dc3c fixed context variable
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-03 00:19:11 +05:30
Pooja Singh
62d2df8b63
Merge pull request #6 from vyankyGH/test_cmd_update
Test cmd update
2021-09-03 00:01:12 +05:30
Vyankatesh Kudtarkar
3de0b21024 remove space 2021-09-02 23:14:39 +05:30
Vyankatesh Kudtarkar
fc4561cc4e update test command 2021-09-02 23:11:35 +05:30
NoSkillGirl
b90df0980a small fixes for test command
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-02 18:15:22 +05:30
Vyankatesh Kudtarkar
6821800273 Merge branch 'GVK_Format' of https://github.com/vyankyGH/kyverno into GVK_Format 2021-09-02 12:40:46 +05:30
Vyankatesh Kudtarkar
2ee32214f9 Dynamic process of GVK 2021-09-02 12:40:40 +05:30
Vyankatesh Kudtarkar
68d66111a7
Merge branch 'kyverno:main' into GVK_Format 2021-09-02 11:14:33 +05:30