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

3549 commits

Author SHA1 Message Date
NoSkillGirl
92d9d634a3 added condition for resource sync
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-13 14:03:09 +05:30
Vyankatesh Kudtarkar
8e2033cc95 fix test case 2021-08-13 10:40:47 +05:30
treydock
45e95c2217
Make Kyverno CRDs a seperate Helm chart capable of being updated/deleted (#2218)
* Make Kyverno CRDs a seperate Helm chart capable of being updated/deleted

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>

* Make E2E tests work with new chart

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>

* Seems Helm lint needs values.yaml

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>

* Can't use ct install for the CRDs because will end up getting uninstalled after test

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>

* Ensure helm release accounts for new CRD chart

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>

* Update CRD chart versions

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>

* Make CRD chart version match main kyverno chart version

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>

* Bump chart versions

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
2021-08-12 13:54:17 -07:00
Thomas Labarussias
7c96bd3e21
add value for override of namespace of serviceMonitor (#2258)
* add value for override of namespace of serviceMonitor

Signed-off-by: Issif <issif+github@gadz.org>

* set version of chart to v2.0.1

Signed-off-by: Issif <issif+github@gadz.org>
2021-08-12 13:14:21 -07:00
Vyankatesh Kudtarkar
71803c46d8 GVK format 2021-08-12 23:26:35 +05:30
shuting
6ba341ff9b
- update Make target; - update release workflow config; - update PR template (#2257)
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-08-12 09:58:25 -07:00
Shuting Zhao
fb6e0f18ea release v1.4.2
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-08-11 12:48:37 -07:00
Pooja Singh
1fd2509287
Merge pull request #2252 from NoSkillGirl/cleanup/removing_unused_engineresponse_from_CLI
Removing `engineresponses` variable from Kyverno CLI
2021-08-11 17:46:52 +05:30
NoSkillGirl
a74dba83aa removing_unused_engineresponse_from_CLI
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-11 17:16:12 +05:30
Shuting Zhao
7d9c06da81 tag 1.4.2-rc4
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-08-10 17:41:22 -07:00
Pooja Singh
f9616cbab1
Removing OwnerReference (#2251)
* removing OwnerReference

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>

* removing comments

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-10 17:05:20 -07:00
Vyankatesh Kudtarkar
adb0170001
Automate CLI binaries releases (#2236)
* fix issue

* fix comment

* fix comment

* fix comment

* add md file

* ignore /release

* fix issue
2021-08-10 09:07:46 -07:00
Yashvardhan Kukreja
08e383a0a3
updated: grafana dashboard json with respect to new set of metrics (#2244)
Signed-off-by: Yashvardhan Kukreja <yash.kukreja.98@gmail.com>
2021-08-09 15:49:09 -07:00
Chip Zoller
bbee030b75
add platform to bug template (#2246)
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
2021-08-09 14:37:58 -07:00
Pooja Singh
f23ad925da
updated cli comment (#2242)
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-06 17:16:12 -07:00
Adam Kosmin
32d7a4e271
Helm Chart - Network Policy Support (#2210)
* add network policy resource

* network policy

Co-authored-by: windowsrefund <mac>
2021-08-03 18:19:58 -07:00
Jim Bugwadia
8af814c7af
update cosign to v1.0.0 (#2221)
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
2021-08-02 13:51:36 -07:00
Pooja Singh
c54e166310
Merge pull request #2224 from NoSkillGirl/2223/cli_set_flag_panic
Fix for - CLI panics when variables are passed using `set` flag
2021-08-02 19:24:25 +05:30
NoSkillGirl
15a63c109d removing context variables from variablesString
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-02 16:45:54 +05:30
NoSkillGirl
05234d94e2 adding variable in context
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-02 16:38:43 +05:30
Pooja Singh
3dd53c6ad2
Merge pull request #2222 from NoSkillGirl/2180_backwards_compatibility
Added backward compatibility | Resolving variables from the resource passed | CLI
2021-08-01 23:33:40 +05:30
NoSkillGirl
2eff4f2f3e added backward compatibility
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-01 16:27:47 +05:30
Shuting Zhao
a53613ffe2 release v1.4.2-rc3
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-07-30 14:04:36 -07:00
treydock
8204028009
Add DurationOperator to handle duration comparison operations (#2214)
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
2021-07-30 13:11:52 -07:00
Max Goncharenko
922840b344
added deep copy for rule; changed rule deep copy logic (#2216)
* added deep copy for rule; changed rule deep copy logic

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

* fixed linter error

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>
2021-07-30 12:07:01 -07:00
Soto Sugita
7215841792
fix table layout (#2209)
Signed-off-by: Soto Sugita <sotosugi@amazon.co.jp>
2021-07-29 11:47:12 -07:00
Arsh Sharma
f46c83c44b
Merge pull request #2206 from RinkiyaKeDad/cache_test_fix
fixes for cache tests
2021-07-29 21:18:09 +05:30
RinkiyaKeDad
b6f090f763 fixes for cache tests
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
2021-07-29 10:44:31 +05:30
Shuting Zhao
5dd8bc3b30 release v1.4.2-rc2
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-07-28 13:27:52 -07:00
Arsh Sharma
97eaa7e854
adding any/all under match and exclude blocks (#2130)
* intial commit

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* update types

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* updated all type

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* extract to single struct

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* updated match resource description function

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* minor test working

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* match resources test is working

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* exclude resources test is working

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* changed double negetive in logic

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* yamls updated and added validation and cache loops

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* match exclude working but need to fix matchExcludeConflict function

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* restored doMatchAndExcludeConflict function

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* rewrote the matchExcludeConflictFunction

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* finalizing completed till utils_test.go

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* ready for review complete

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* update yamls

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* one more merge conflict solved

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* regenerates YAMLs

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* possible fix for failing tests

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* removed duplicate any/all logic and added a test, (rest refacotring is in progress)

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* cache test is working

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* improved cache test and it is working

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* added check for mutate and generate policies too

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* cleaned doesResourceMatchConditionBlock logic but validation still has code from attempt to combine the all block

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* reverted validate.go to older logic

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* removed commented code

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* removed extra comments

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
2021-07-28 12:59:53 -07:00
Vyankatesh Kudtarkar
a3dfe3c647
Merge pull request #2202 from NoSkillGirl/bug/2197_CLI_issue
CLI result varies if multiple resources are passed for a policy with `request.operation`
2021-07-28 22:50:43 +05:30
Max Goncharenko
903963c26d
add special variable substitution logic for preconditions (#1930)
* add special variable substitution logic for preconditions

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

* handle NotFoundVariable error in proper way

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

* remove excess log; fix grammar

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

* removed isPrecondition flag; added test case for empty deny string; fixed related issue

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

* fix test case

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

* fix go lint

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

* fix tests

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>
2021-07-28 09:54:50 -07:00
Vyankatesh Kudtarkar
64b6e22042
fix test command issue 2021-07-28 22:12:01 +05:30
NoSkillGirl
be8c584037 fixed test case
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-07-28 11:06:28 +05:30
NoSkillGirl
07497cd7e7 moved position of logic to check operation is delete or not
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-07-28 10:52:32 +05:30
shuting
4c99b51fb7
Remove GitHub Releaser & Add app version in Helm notes (#2191)
* - remove github releaser
- add app version in Helm notes

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

* update chart var

Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-07-27 10:28:28 -07:00
vivek kumar sahu
749854c589
Allow running e2e tests on local (dev) cluster (#2190)
* Added test-e2e-local in the Makefile

Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>

* Added a proper Indentation

Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
2021-07-26 23:49:28 -07:00
Shuting Zhao
d3e47b8e48 taf v1.4.2-rc1
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-07-23 14:43:28 -07:00
Ahmed Waleed Malik
a0bac26308
Add servicemonitor in helm chart (#1984) 2021-07-23 12:33:05 -07:00
Zadkiel
61381cd648
fix: add templating variable for Datasource field (#2187) 2021-07-23 12:10:08 -07:00
Pooja Singh
88d1617390
Resolving variables from the resource passed | CLI (#2180)
* added logic for adding resources in context

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>

* small fix

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>

* returning error if request.object is passed from cmd

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>

* reterning error if request.object is passed from value file

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>

* removing comments

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>

* small fix

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>

* handling context for delete operation

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>

* small fix for test command

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-07-23 11:32:48 -07:00
Max Goncharenko
4c7ca97eac
Patch strategic merge preprocessing: implement anchor handling (#2156)
* finished walkMap

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

* added validation to the patchStrategicMerge

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

* finished fixing tests

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

* fixed part of old tests

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

* patchStrategicMerge anchor preprocessing is finished

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

* fix #1915 and #1896

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

* fix lint errors

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

* removed debug logs

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

* added failing test

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

* Fix unnecessary deletion

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>
2021-07-23 10:53:37 -07:00
Yashvardhan Kukreja
0a38f1c8ec
dealt with cardinality explosion (#2157) 2021-07-23 09:16:50 -07:00
Vyankatesh Kudtarkar
8c69ce3ea5
Merge pull request #2184 from realshuting/bugfixes/2094-mutate-crd
Update JSON context with patched resource for chained mutate rules
2021-07-23 13:44:58 +05:30
Shuting Zhao
882c826c7d fix linter issue
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-07-22 14:37:09 -07:00
Shuting Zhao
e3ba38b165 update JSON context with patched resource for chained mutate rules
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-07-22 14:23:03 -07:00
Pooja Singh
acc9f6652d
Merge pull request #2178 from NoSkillGirl/bug/2126_external_metrics
moving to error info log for external.metrics.k8s.io/v1beta1
2021-07-21 17:49:25 +05:30
NoSkillGirl
c4ee793c2c moving to error info log
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-07-21 13:39:07 +05:30
Vyankatesh Kudtarkar
bf84b71602
Merge pull request #2176 from vyankyGH/bug/clean-log
Bug/clean log
2021-07-21 13:08:19 +05:30
Vyankatesh Kudtarkar
437d511099 Clean log 2021-07-21 12:10:52 +05:30