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

55 commits

Author SHA1 Message Date
Vyankatesh Kudtarkar
164885d087
Update Kyverno test command (#1608)
* fix link (#1566)

Signed-off-by: vyankatesh <vyankatesh@neualto.com>

* update icon in chart.yaml

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

* Adding default policies for restricted mode and adding notes to helm install (#1556)

* Adding default policies for restricted mode, taking validationFailureAction from values.yaml and adding notes on helm install

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* Adding emoji

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* Update NOTES.txt

* minor fix

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* adding to readme

Signed-off-by: Raj Das <mail.rajdas@gmail.com>
Signed-off-by: vyankatesh <vyankatesh@neualto.com>

* update links and formatting in PR template (#1573)

* update links and formatting in PR template

Signed-off-by: Chip Zoller <chipzoller@gmail.com>

* update policy submission request template

Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: vyankatesh <vyankatesh@neualto.com>

* fix: restricting empty value to pass through the validation checks (#1574)

Signed-off-by: Yashvardhan Kukreja <yash.kukreja.98@gmail.com>
Signed-off-by: vyankatesh <vyankatesh@neualto.com>

* Actually fix contributor link in PR template (#1575)

* update links and formatting in PR template

Signed-off-by: Chip Zoller <chipzoller@gmail.com>

* update policy submission request template

Signed-off-by: Chip Zoller <chipzoller@gmail.com>

* actually fix contrib guidelines

Signed-off-by: Chip Zoller <chipzoller@gmail.com>

* actually fix contrib guidelines

Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: vyankatesh <vyankatesh@neualto.com>

* code improvement (#1567)

* code improvement

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

* added if conditions

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

* fixed unit test cases

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

* feat(operators): support subset checking for in and notin (#1555)

* feat(operators): support subset checking for in and notin

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

* feat(operators): fixed NotIn function

Signed-off-by: Arsh Sharma <arshsharma461@gmail.com>
Signed-off-by: vyankatesh <vyankatesh@neualto.com>

* panic fix (#1601)

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

* update kyverno cli test cmd

Signed-off-by: vyankatesh <vyankatesh@neualto.com>

* code indentation

Signed-off-by: vyankatesh <vyankatesh@neualto.com>

* change  help text

Signed-off-by: vyankatesh <vyankatesh@neualto.com>

Co-authored-by: Dekel <dekelb@users.noreply.github.com>
Co-authored-by: Shuting Zhao <shutting06@gmail.com>
Co-authored-by: Raj Babu Das <mail.rajdas@gmail.com>
Co-authored-by: Chip Zoller <chipzoller@gmail.com>
Co-authored-by: Yashvardhan Kukreja <yash.kukreja.98@gmail.com>
Co-authored-by: Pooja Singh <36136335+NoSkillGirl@users.noreply.github.com>
Co-authored-by: Arsh Sharma <56963264+RinkiyaKeDad@users.noreply.github.com>
Co-authored-by: vyankatesh <vyankatesh@neualto.com>
2021-02-17 11:30:41 -08:00
Pooja Singh
a21195f362
panic fix (#1609)
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-02-16 12:48:04 -08:00
Raj Babu Das
72eb5e3503
Adding support for applying git raw by kyverno cli (#1554)
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
2021-02-08 10:08:06 -08:00
shuting
2f2d6c2e38
Upgrade client libraries to 0.20.2 (#1547)
* upgrade clients to 0.20.2

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

* remove debug log

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

* fix unit tests

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

* fix e2e test

Signed-off-by: Shuting Zhao <shutting06@gmail.com>
2021-02-07 20:26:56 -08:00
shuting
c42d545c20
Revert "Adding HTTP(git raw or any public url ) URL applying functionality to kyverno cli (#1527)" (#1548)
This reverts commit 0487330b33.
2021-02-05 19:34:15 -08:00
Raj Babu Das
0487330b33
Adding HTTP(git raw or any public url ) URL applying functionality to kyverno cli (#1527)
* Adding feature to apply from http url

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* Adding comment

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* formatting imports

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* removing fmt.print

Signed-off-by: Raj Das <mail.rajdas@gmail.com>
2021-02-05 18:42:39 -08:00
vyankatesh_neualto
2f92b95015 #1513 [BUG] CLI Panic when assigning variables
Signed-off-by: vyankatesh_neualto <vyankatesh@neualto.com>
2021-02-03 18:27:45 +05:30
vyankatesh_neualto
18f20abbf9 fix engine.PolicyContext issue
Signed-off-by: vyankatesh_neualto <vyankatesh@neualto.com>
2021-02-02 20:02:07 +05:30
vyankatesh_neualto
ce9ab9ef69 adding kyverno test command with git support
Signed-off-by: vyankatesh_neualto <vyankatesh@neualto.com>
2021-02-02 18:45:38 +05:30
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
NoSkillGirl
3571260a9e added skipped policy in policy report 2020-11-19 15:03:15 +05:30
NoSkillGirl
5794889752 Merge branch 'main' into policyreport_cli 2020-11-18 14:43:30 +05:30
Shuting Zhao
b9fb926ddb fixes for golint ./... 2020-11-17 13:07:30 -08:00
NoSkillGirl
ba5d3a0b7a CLI handling - applying policy with annotations on pod 2020-11-10 10:05:07 +05:30
NoSkillGirl
2b979fec4d removed logic - policy in cluster 2020-11-04 14:03:39 +05:30
NoSkillGirl
94babfe4bd policy support added 2020-11-04 14:03:39 +05:30
NoSkillGirl
1ccde5412e removing individual policyreports 2020-11-04 14:03:39 +05:30
NoSkillGirl
dcc0fa2c7a added readme for apply command 2020-11-04 14:03:39 +05:30
NoSkillGirl
0c471f93d8 change of logic for aggregation count 2020-11-04 14:03:38 +05:30
NoSkillGirl
d8c90fe3dd validation - policy(in cluster) resource(outside) 2020-11-04 14:03:38 +05:30
NoSkillGirl
1279026a07 integrated policy report 2020-11-04 14:03:38 +05:30
NoSkillGirl
c56840ef3b fixed skip policy 2020-11-04 14:03:38 +05:30
NoSkillGirl
6e7ae8ec13 namespace changes 2020-11-04 14:03:38 +05:30
NoSkillGirl
80aa6eb9f5 added policyreport to cli 2020-11-04 14:03:38 +05:30
Jim Bugwadia
1f24ea6f75
fix regex for allowed variable to support spaces (#1200)
* fix regex for allowed variable to support spaces

* remove log

* fix regex
2020-10-19 12:36:55 -07:00
Pooja Singh
e3521ef96c
cleanup cli output (#1180) 2020-10-09 15:19:28 -07:00
Shuting Zhao
cdc5190c56 update nirmata/kyverno to kyverno/kyverno 2020-10-07 11:12:31 -07:00
Pooja Singh
ccdcb6ae89
Feature/read from stdin validate (#1171)
* temp

* added pipe logic for validate

* fixed test cases - policy mutation
2020-10-06 17:50:53 -07:00
Mohan B E
51ac382c6c
Feature/configmaps var 724 (#1118)
* added configmap data substitution for foreground mutate and validate

* added configmap data substitution for foreground mutate and validate fmt

* added configmap lookup for background

* added comments to resource cache

* added configmap data lookup in preConditions

* added parse strings in In operator and configmap lookup docs

* added configmap lookup docs

* modified configmap lookup docs
2020-09-22 14:11:49 -07:00
shuting
b319a816c5
Fix build (#1092)
* add watch policy to clusterrole kyverno:customresources

* fix build
2020-09-01 09:38:49 -07:00
shuting
e0f617b383
810 support cronJob for auto-gen (#1089)
* add watch policy to clusterrole kyverno:customresources

* - improve auto-gen policy application logic - remove unused code

* move method to common util

* auto-gen rule for cronJob

* update doc

* set CronJob as default auto-gen pod controller

* - update doc; - fix test

* remove unused code
2020-09-01 09:11:20 -07:00
NoSkillGirl
d9c3a166cc updated readme 2020-08-31 19:32:00 +05:30
NoSkillGirl
ccfd4adad3 calling GetCRD's from validate 2020-08-31 18:44:08 +05:30
NoSkillGirl
e5f5ef9db1 split multi yaml in crd 2020-08-31 18:20:25 +05:30
NoSkillGirl
6b6897f6e2 working version of CRD validation for CLI 2020-08-31 18:19:09 +05:30
NoSkillGirl
b61412ca7a minor validation changes 2020-08-31 18:18:10 +05:30
NoSkillGirl
afb6ad714c small issue while resolving conflicts 2020-08-31 18:16:53 +05:30
NoSkillGirl
70b13d06dc validation of policy against crd 2020-08-31 18:15:39 +05:30
Pooja Singh
8105e4cad8
Allowing only few variables in the policies (#1063)
* Checking for non whitelisted variables in the policy

* method name change

* small issue while rebasing
2020-08-23 15:11:03 -07:00
NoSkillGirl
0927e7a732 added validation for set flag 2020-08-22 01:07:03 +05:30
NoSkillGirl
11e73381cf removed comments 2020-08-22 01:07:03 +05:30
NoSkillGirl
afe98bb93c Added set flag 2020-08-22 01:07:03 +05:30
Shuting Zhao
0aeb9f667a return early in LCI if generated patches from policy mutation is nil 2020-08-19 15:11:21 -07:00
Jim Bugwadia
e6a3aea88a fix print 2020-08-18 21:56:43 -07:00
Jim Bugwadia
fc6da9c9e6 improve CLI validation reports 2020-08-18 21:03:00 -07:00
Pooja Singh
7195b20e90
Feature/print mutated policy (#1014)
* added printing mutation policy

* added mutated method in common

* improved yaml print

* updated readme

* small fix

* small fix
2020-07-29 09:11:58 -07:00
NoSkillGirl
643fe77394 added variable validation for validate 2020-07-07 17:11:37 +05:30
NoSkillGirl
2fde3146e8 added more validation for policies 2020-07-07 17:08:57 +05:30