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

3696 commits

Author SHA1 Message Date
NoSkillGirl
9fbf2974f8 updated test help
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-10-14 09:38:18 +05:30
Bricktop
d62234d776
Fix remaining static check findings (#2541)
Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>
2021-10-13 16:00:41 -07:00
Bricktop
ab8822963b
Add exclusions to make gosec happy (#2540)
* Add exclusions to make gosec happy

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

* Add forgotten file

Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>
2021-10-13 15:05:13 -07:00
Bricktop
3f15ec5a1e
Remove dead code and unused variables (#2537)
* Remove dead code and unused variables

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

* Remove unnecessary definitions

Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>
2021-10-13 22:45:23 +02:00
Pooja Singh
7e5a75a281
Merge pull request #2538 from NoSkillGirl/adding_error_count_for_mutate_in_CLI
Added error count for mutate response | CLI
2021-10-14 01:55:30 +05:30
NoSkillGirl
8f89c70a3d added error count
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-10-14 01:40:33 +05:30
Sachin
0d402ec09c
Implicit memory aliasing in for loop. (#2530)
Signed-off-by: slayer321 <sachin.maurya7666@gmail.com>
2021-10-13 11:03:25 -07:00
Sachin
787d6de696
unnecessary use of fmt.Sprintf (#2531)
Signed-off-by: slayer321 <sachin.maurya7666@gmail.com>
2021-10-13 11:00:04 -07:00
Sachin
a42e944c22
fix Potential file inclusion via variable (#2523)
Signed-off-by: slayer321 <sachin.maurya7666@gmail.com>
2021-10-13 10:48:45 -07:00
Bricktop
3815b40c64
Fix various static checks related to condition handling (#2528)
Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>
2021-10-13 11:29:45 +02:00
Sachin
9aad9cdb43
fix file permissions (#2520)
Signed-off-by: slayer321 <sachin.maurya7666@gmail.com>
2021-10-12 14:30:11 -07:00
Bricktop
2d0df77963
Format error messages correctly (#2519)
* Format error messages correctly

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

* No punctuation at the end or errors

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

* Replace loop with simple if

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

* Fix more errors

Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>
2021-10-12 14:29:20 -07:00
Marcus Noble
806bd184b7
fixed incorrect character class in regex (#2526)
* fixed incorrect character class in regex

* added general support for functions in allowed vars

* Update pkg/kyverno/common/regex.go

Co-authored-by: Bricktop <marcel.mueller1@rwth-aachen.de>

* convert tests to use test cases

* fixed formatting

Co-authored-by: Bricktop <marcel.mueller1@rwth-aachen.de>
2021-10-12 17:17:25 +02:00
Bricktop
fe0947dcb3
Add error handling where missing (#2516)
Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>
2021-10-11 14:57:43 -07:00
Bricktop
23864d89c8
Ensure make invocations pass linter (#2518)
Signed-off-by: Marcel Mueller <marcel.mueller1@rwth-aachen.de>
2021-10-11 14:43:09 -07:00
Sachin
8eb0e4c83a
remove linter errors (#2515) 2021-10-11 12:47:23 -07:00
Sachin
e16d773957
Remove unused function (#2517) 2021-10-11 12:46:28 -07:00
Bricktop
67a2466c32
Remove dead code in various packages (#2514) 2021-10-11 12:44:43 -07:00
Pooja Singh
538132b17b
Merge pull request #2488 from NoSkillGirl/2208/e2e_test_cases_debugging
Added retry for processing generate requests
2021-10-11 16:22:22 +05:30
NoSkillGirl
0ff18dca6f removed log for e2e test
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-10-11 16:21:32 +05:30
NoSkillGirl
143fe4e3cb added log statement
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-10-11 15:48:53 +05:30
NoSkillGirl
8b739453b3 added retry
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-10-11 15:48:53 +05:30
NoSkillGirl
37b91245cb corrected metric server name
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-10-11 15:48:53 +05:30
NoSkillGirl
d1a78e14f3 debugging
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
2021-10-11 15:48:53 +05:30
Pooja Singh
7fbed3718f
Merge pull request #2512 from realshuting/mutate_foreach_autogen
Add delay in e2e tests
2021-10-11 15:47:49 +05:30
ShutingZhao
0f6e7537b4 Merge branch 'main' into mutate_foreach_autogen 2021-10-10 20:24:07 -07:00
ShutingZhao
5f9be9bf36 add delay in e2e test
Signed-off-by: ShutingZhao <shutting06@gmail.com>
2021-10-10 20:22:36 -07:00
Jim Bugwadia
ae5e0a3d43
Merge pull request #2511 from kyverno/move-contributors-image
Update README.md
2021-10-10 14:55:13 -07:00
Jim Bugwadia
bc0de3d68d Update README.md
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
2021-10-10 14:39:50 -07:00
shuting
514a851d2f
fix mutate foreach auto-gen rules (#2507)
Signed-off-by: ShutingZhao <shutting06@gmail.com>
2021-10-09 13:31:52 -07:00
ShutingZhao
3e5280d004 fix mutate foreach auto-gen rules
Signed-off-by: ShutingZhao <shutting06@gmail.com>
2021-10-08 22:27:33 -07:00
ShutingZhao
5c3f219197 update release/install.yaml 2021-10-07 18:39:45 -07:00
ShutingZhao
eddd258a40 release v1.5.0-rc1
Signed-off-by: ShutingZhao <shutting06@gmail.com>
2021-10-07 16:04:08 -07:00
Jim Bugwadia
0153bd7c72
fix cmd line tests (#2502)
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
2021-10-07 15:25:44 -07:00
shuting
9dc2c2b4bf
Bugfixes - handle verifyImage rules for webhooks configurations (#2501)
* dynamic webhooks for verifyImages rule

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

* add namespace env to the initContainer

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

* add debug log

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

* update operator schema validation tag

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

* set policy to ready if auto-update-webhook disabled

Signed-off-by: ShutingZhao <shutting06@gmail.com>
2021-10-07 13:50:30 -07:00
Kumar Mallikarjuna
f67f847901
Namespace env variable for initContainer (#2499)
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna1@gmail.com>
2021-10-07 10:58:31 -07:00
Jim Bugwadia
c16de81751
Merge pull request #2496 from vyankyGH/autogen_mutate_foreach
Fix autogen issue for foreach mutate policy and foreach type issue
2021-10-07 08:39:02 -07:00
Vyankatesh Kudtarkar
5164d833ed Fix autogen for varifyImage 2021-10-07 17:16:46 +05:30
Vyankatesh Kudtarkar
ee19d49a94 Fix autogen issue 2021-10-07 16:21:39 +05:30
Vyankatesh Kudtarkar
176f139f26 Fix autogen issue for Foreach mutate policy 2021-10-07 16:12:34 +05:30
Pooja Singh
80936fa2d8
Merge pull request #2492 from realshuting/bugfixes
bugfixes - dynamic webhooks, e2e failure
2021-10-07 13:11:13 +05:30
Jim Bugwadia
69bb7090a4
Merge pull request #2493 from JimBugwadia/feature/foreach_mutate
Feature/foreach mutate
2021-10-07 00:32:22 -07:00
Jim Bugwadia
510559cd3c
Merge pull request #2494 from kyverno/update_code_gen
generate code and CRDs
2021-10-07 00:26:50 -07:00
Jim Bugwadia
b56757ce2a generate code and CRDs
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
2021-10-06 23:16:40 -07:00
Jim Bugwadia
1c0a303106 fix merge error
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
2021-10-06 22:48:56 -07:00
Jim Bugwadia
7c761b4bc9 Merge branch 'main' into feature/foreach_mutate 2021-10-06 22:45:03 -07:00
ShutingZhao
a5c399bb15 e2e test - add retry when getting generated configmap
Signed-off-by: ShutingZhao <shutting06@gmail.com>
2021-10-06 22:36:43 -07:00
Jim Bugwadia
4c63442028 separate MutateResourceWithImageInfo from buildContext and add comments
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
2021-10-06 22:19:47 -07:00
ShutingZhao
6dbb529267 fix e2e test failure
Signed-off-by: ShutingZhao <shutting06@gmail.com>
2021-10-06 22:12:48 -07:00
Jim Bugwadia
ed93a9bddf
Merge pull request #2487 from JimBugwadia/feature/cosign_attest
Feature/cosign attest
2021-10-06 22:10:03 -07:00