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

3707 commits

Author SHA1 Message Date
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
James Callahan
95786f5033
Cleanup kustomizations (#2274)
- Remove dead newName specification
  - Un-hardcode namespace from resources
  - Create 'bundle' kustomization that keeps namespace hardcoding
    This should be used (as a base) to generate static manifests
  - Turn 'release' directory into kustomization that is only place with version numbers

Signed-off-by: James Callahan <jamescallahan@bitgo.com>
2021-09-01 18:53:28 -07:00
Yashvardhan Kukreja
4990122f1c
removed: resource_name label which is exposed as a part of Kyverno's metrics (#2351)
Signed-off-by: Yashvardhan Kukreja <yash.kukreja.98@gmail.com>
2021-09-01 18:26:25 -07:00
Bricktop
fbab9abd43
Add test case for non zero index patches with patchesJson6902 (#2339)
* Clean up formatting in mutate test file

Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>

* Add test for non-zero index numbers for patchesJson6902

Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>

* Align more with sample

Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>
2021-09-01 17:50:37 -07:00
NoSkillGirl
27d6b81273 small fix
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-02 04:40:05 +05:30
NoSkillGirl
2be347f3cd ignoring test command test cases for now
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-02 04:07:25 +05:30
NoSkillGirl
a629caae18 logic for generate policies
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-02 03:54:02 +05:30
NoSkillGirl
12f3d9e7e6 keeping policy report condition
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-02 03:29:15 +05:30
NoSkillGirl
f5343fe468 changes in test command
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-02 03:21:07 +05:30
NoSkillGirl
956709069f fixed kyverno common test cases
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-02 02:58:10 +05:30
NoSkillGirl
9f472a768f fixed policy report test cases
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-02 02:43:07 +05:30
NoSkillGirl
6b5cf01574 fixed Test_buildPolicyReports
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-02 02:24:04 +05:30
NoSkillGirl
7690a20752 fixed apply test cases
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-02 01:06:29 +05:30
NoSkillGirl
868537f04d added different logic for policy report in CLI
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-02 00:02:55 +05:30
NoSkillGirl
1e6b4bdcee skipping variable check for non matching kinds
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-01 18:51:31 +05:30
Bricktop
80c29ae20d
Clean up formatting in mutate test file (#2338)
Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>
2021-08-31 12:44:36 -07:00
NoSkillGirl
02c584ed8f result is printed with mutated policy results
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-09-01 00:07:19 +05:30
NoSkillGirl
7abc74273c added logic for rule based count
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-31 21:18:54 +05:30
NoSkillGirl
92173fae9b small fix
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-31 19:29:53 +05:30
NoSkillGirl
dce3663429 removing error count
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-31 19:27:56 +05:30
NoSkillGirl
36515ce127 removing commented code
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-31 17:59:18 +05:30
NoSkillGirl
d416b4e3cb showing skiped policy seperately
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-31 16:24:31 +05:30
Pooja Singh
15e16e808c
Merge pull request #2247 from NoSkillGirl/bug/2181_generate_sync_issue
Added condition for resource synchronization
2021-08-30 17:40:08 +05:30
Pooja Singh
84f4f802fc
Merge pull request #2336 from NoSkillGirl/2289/context_policy_validation
Bug fix | CLI panic | Context policy validation
2021-08-30 17:28:45 +05:30
NoSkillGirl
ad0cb6e1ee reverting image
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-30 01:19:10 +05:30
NoSkillGirl
6a90841627 added validation for context
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-27 13:50:30 +05:30
Frank Jogeleit
8eab9d45a6
Add Support for previouse test file structure (#2329)
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2021-08-26 22:52:44 -07:00
Pooja Singh
555f0a8d75
Merge pull request #2298 from freym/fix-ownerReferences
Remove ownerReferences when cloning resources to other namespace.
2021-08-25 10:34:42 +05:30
Pooja Singh
c843a2ad3e
Merge pull request #2306 from NoSkillGirl/cli_apply_updating_help_section
Updating help section for CLI `apply` command
2021-08-25 10:14:52 +05:30
NoSkillGirl
912c465142 updating help section for cli apply
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-08-25 09:17:47 +05:30
Matthias Frey
605110d4ca remove ownerReferences when cloning resources to other namespace.
Signed-off-by: Matthias Frey <matthias.frey@kit.edu>
2021-08-24 16:02:12 +02:00
Frank Jogeleit
c522343c03
Update PolicyReport CRDs to wgpolicyk8s.io/v1alpha2 (#1825) 2021-08-21 10:35:17 -07:00
Vyankatesh Kudtarkar
8c7858c4b0
Validation for generate loops and support ClusterPolicy/Policy in match block (#2275)
* add validation for kinds

* remove cluster policy from excluded resources

* fix typo
2021-08-20 15:28:49 -07:00