Anushka Mittal
17d0fc16b2
Renames patches annotations to last-applied-patches ( #2360 )
...
* Renames patches annotations to last-applied-patches
Signed-off-by: anushkamittal20 <anumittal4641@gmail.com>
* Check for old annotations added
Signed-off-by: anushkamittal20 <anumittal4641@gmail.com>
* Minor fixes
Signed-off-by: anushkamittal20 <anumittal4641@gmail.com>
* Deals with old resources and added temporary test case
Signed-off-by: anushkamittal20 <anumittal4641@gmail.com>
* Added and edited proper test cases
Signed-off-by: anushkamittal20 <anumittal4641@gmail.com>
2021-09-20 21:56:19 +05:30
Valentin Velkov
63f4c9a884
Configurable success events on policies & resources. Generating failure events on policies by default. ( #1939 )
...
* Remove unused event.Reason const
Signed-off-by: Velkov <valentin.velkov@sap.com>
* Generate failure events on policies
Signed-off-by: Velkov <valentin.velkov@sap.com>
* Generate success events on policy
Signed-off-by: Velkov <valentin.velkov@sap.com>
* Introduce 'generateSuccessEvents' flag
Signed-off-by: Velkov <valentin.velkov@sap.com>
* Unit tests & chart fix
Signed-off-by: Velkov <valentin.velkov@sap.com>
2021-06-29 14:43:11 -07:00
Jim Bugwadia
e2f10c6f83
update validation logic
2020-12-23 15:10:07 -08:00
Shuting Zhao
cdc5190c56
update nirmata/kyverno to kyverno/kyverno
2020-10-07 11:12:31 -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
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
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
5b8ab3842b
Support variable substitution ( #549 )
...
* initial commit
* variable substitution
* update tests
* update test
* refactor engine packages for validate & generate
* update vendor
* update toml
* support variable substitution in overlay mutation
* missing update
* fix indentation in logs
* store context values as single JSON document using merge patches.
* remove duplicate functions
* fix message string
* Handle processing of policies in background (#569 )
* remove condition check while generating mutation patch as conditions are verified in the first iteration
* initial commit
* background policy validation
* correct message
* skip non-background policy process for add/update
* fix order to correct policy registration
* update comment
Co-authored-by: shuting <shutting06@gmail.com>
* refactor
Co-authored-by: shuting <shutting06@gmail.com>
2019-12-30 17:08:50 -08:00
Shuting Zhao
d26029d3be
fix unit test
2019-11-11 19:08:46 -08:00
Shuting Zhao
bdb3f40f15
rename mutate annotation to "policies.kyverno.io/patches"
2019-10-11 17:59:50 -07:00
Shuting Zhao
137d596e11
rename EngineResponseNew to EngineResponse accordingly
2019-10-08 16:23:24 -07:00
Shuting Zhao
2077409c85
fix 365 annotation_bug
2019-10-07 18:31:14 -07:00