Jim Bugwadia
e0b1f08a28
fix check for CREATE request ( #2551 )
...
* fix check for CREATE request
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
* add unit test
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
* fmt
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
* fix test
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
2021-10-18 09:34:07 -07:00
Jamie
caf2180dca
fix: found a handful other magic strings that needed some webhook love ( #2546 )
...
Signed-off-by: Random J Developer <interns@coreweave.com>
Signed-off-by: Jamie Roberts <jroberts@coreweave.com>
2021-10-15 09:54:07 -07:00
Jim Bugwadia
36763d8cc2
Merge pull request #2536 from ShubhamPalriwala/signature-and-sbom-repo
...
Shift Image signatures and SBOM to different repo
2021-10-15 07:09:44 -07:00
Jim Bugwadia
b7a6a40ab0
Merge pull request #2545 from realshuting/fix_podexec
...
Fix webhook update for PodExecOptions
2021-10-14 13:36:00 -07:00
ShutingZhao
28183be24f
fix webhook update for PodExecOptions
...
Signed-off-by: ShutingZhao <shutting06@gmail.com>
2021-10-14 13:22:07 -07:00
Marcus Noble
d69b81e03e
added base64 jmespath functions ( #2542 )
...
* added base64 jmespath functions
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
* added base64_decode test to emulate working with secret
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
* Update regex to allow number in func name
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
* Added CLI tests for preconditions and custom funcs
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
Co-authored-by: AverageMarcus <git@marcusnoble.co.uk>
Co-authored-by: Bricktop <marcel.mueller1@rwth-aachen.de>
2021-10-14 11:46:06 -07:00
Kumar Mallikarjuna
d0a36b6dcc
element variable lifecycle ( #2535 )
...
* Foreach element with background false
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna1@gmail.com>
* Tests for foreach element
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna1@gmail.com>
* Update Test_Validation_invalid_backgroundPolicy
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna1@gmail.com>
* CLI: Print invalid policies
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna1@gmail.com>
* Remove redundant Sprintf() calls
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna1@gmail.com>
* Updated tests for foreach list
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna1@gmail.com>
2021-10-14 10:14:11 -07:00
Pooja Singh
40c089dd42
Merge pull request #2539 from NoSkillGirl/update_test_command_help
...
Updated `test` command help
2021-10-14 21:49:02 +05:30
Vyankatesh Kudtarkar
2798287497
support list foreach ( #2522 )
...
* support list foreach
* fix testcase for each
* fix mutate issue
* Fix mutate patch issue
* fix yaml
* fix e2e test foreach validate list
* code indentation
* fix comments
* delete unwanted files
2021-10-14 00:20:52 -07:00
Vyankatesh Kudtarkar
2089767c85
wildcard support ( #2485 )
...
* wildcard support
* remove console
* fix issue
* fix deny condition
* fix comments
* fix regex issue
* remove UserInfo
2021-10-14 00:15:32 -07:00
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
ShubhamPalriwala
5417b9d3c1
feat: shift sigs and sbom
...
Signed-off-by: ShubhamPalriwala <spalriwalau@gmail.com>
2021-10-13 21:34:04 +05:30
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