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

5268 commits

Author SHA1 Message Date
Charles-Edouard Brétéché
6f270a3883
fix: release (#6502)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-03-06 15:52:40 +00:00
Charles-Edouard Brétéché
4d91d47934
fix: release (#6498)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-03-06 13:47:01 +00:00
shuting
bf2bab2906
release v1.9.1-rc.1 (#6485)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-03-06 12:52:33 +08:00
shuting
e92405041e
cherry-pick #6459 (#6468)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-03-03 10:51:34 +00:00
gcp-cherry-pick-bot[bot]
7d573b30d2
fix: error log (#6429) (#6437)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-03-01 09:59:38 +00:00
gcp-cherry-pick-bot[bot]
25fee05742
check errors (#6424) (#6426)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-02-28 16:35:57 +00:00
gcp-cherry-pick-bot[bot]
eb0701a061
fix: autoUpdateWebhooks=false causes ClusterPolicy to never be ready (#6374) (#6382)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-02-23 09:38:20 +00:00
gcp-cherry-pick-bot[bot]
5aed63eb66
fix: delete certificate secret if type is not TLS (#6368) (#6373)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-02-22 10:04:41 +00:00
gcp-cherry-pick-bot[bot]
dbfe39ad90
oldObject translation solved in autogen (#6305) (#6372)
* OldObject translation solved in autogen



* CronJob fixed in autogen



* tests added



---------

Signed-off-by: Abhishek Kumar <abhishek22512@gmail.com>
Co-authored-by: Abhishek Kumar <76171953+octonawish-akcodes@users.noreply.github.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-02-22 09:01:47 +00:00
Charles-Edouard Brétéché
f79b282140
chore(deps): bump github.com/sigstore/k8s-manifest-sigstore (cherry-pick #6320) (#6359) 2023-02-21 13:55:45 +08:00
gcp-cherry-pick-bot[bot]
e85b262d80
fix: dump admission response (#6349) (#6352)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-02-20 10:49:38 +00:00
Charles-Edouard Brétéché
0ec3e0fb38
chore(deps): bump golang.org/x/net (#6344)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-20 17:34:59 +08:00
Charles-Edouard Brétéché
dfecc2546d
fix: add roles and clusterroles when dumping admission requests (#6319) (#6323)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-02-16 12:56:09 +08:00
Charles-Edouard Brétéché
850b8835df
fix: use client instead of discovery for sanity checks (cherry-pick #6296) (#6299)
* fix: use client instead of discovery for sanity checks (#6296)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-02-10 12:37:59 -08:00
shuting
d5e1633412
cherry-pick #6237 (#6273)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-02-09 19:39:49 +05:30
Charles-Edouard Brétéché
a5eed7834e
chore: add error logs in wait for cache sync helper (#6275)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-02-09 17:37:49 +08:00
gcp-cherry-pick-bot[bot]
3541473092
fix: jp divide quantities (#6229) (#6232)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-02-06 13:19:05 +00:00
shuting
1d104b2609
Cherry-pick #6126 (#6228)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-02-06 08:58:48 +01:00
shuting
884819a00c
fix: admission review variables for DELETE operations (#6197) (#6214)
* build trigger from the stored admission request payload



* add a kuttl test



---------

Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-02-03 13:58:20 +01:00
shuting
987d72dae5
cherry-pick #6188 (#6209)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-02-03 09:42:05 +00:00
Charles-Edouard Brétéché
aa6de8db53
fix: image tagging strategy (#6200)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-02-03 13:32:57 +08:00
shuting
a1534cc2f5
tag v1.9.0 (#6186)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-02-01 10:01:14 +01:00
Charles-Edouard Brétéché
2695ed6403
fix: policy exception event source (#6122)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-01-26 16:35:26 +01:00
Charles-Edouard Brétéché
8b10894695
Release v1.9.0-rc.4 (#6108)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-01-25 15:36:45 +00:00
Charles-Edouard Brétéché
c1e0a46fa2
fix: tracing attributes length and tracer name (#6112)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-01-25 15:01:28 +00:00
gcp-cherry-pick-bot[bot]
e25433df11
fix: cleanup-controller version (#6100) (#6105)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-01-24 21:45:32 +00:00
Charles-Edouard Brétéché
956ba6d92a
fix: flag added to init container mistake (#6103)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-01-24 19:57:57 +00:00
gcp-cherry-pick-bot[bot]
a4cd93d65c
fix: allow deletion of namespace containing managed resources (#6098) (#6102)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-01-24 20:14:48 +01:00
Charles-Edouard Brétéché
672e6277c9
fix: flag added to init container mistake (#6103)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-01-24 10:05:23 -08:00
Charles-Edouard Brétéché
c0ac6091dd
Release v1.9.0-rc.3 (#6095) 2023-01-24 21:53:41 +08:00
gcp-cherry-pick-bot[bot]
f7a4fafc3d
validate polex activation and namespace (#6046) (#6080)
* validate polex activation and namespace

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* push updates

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* push updates

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* push updates

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* pass polex options to handler

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* replace pointer

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* remove exceptionoption argument

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* remove nested if

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* revert change

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* fix line

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* pass polex options differently

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* push update

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* move struct

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* Update pkg/validation/exception/validate.go

Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: yinka <damilola.olayinka@nirmata.com>

* Update pkg/webhooks/exception/validate.go

Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: yinka <damilola.olayinka@nirmata.com>

* Update pkg/webhooks/exception/validate.go

Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: yinka <damilola.olayinka@nirmata.com>

* Update pkg/webhooks/exception/validate.go

Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: yinka <damilola.olayinka@nirmata.com>

* fix

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* add unit test

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* remove lines

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* fix error

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>
Signed-off-by: yinka <damilola.olayinka@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>
Signed-off-by: yinka <damilola.olayinka@nirmata.com>
Co-authored-by: yinka <holayinkajr@gmail.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-01-23 10:32:47 +00:00
gcp-cherry-pick-bot[bot]
85eeb40f03
fix: pin busybox image tag in helm tests (#6051) (#6063)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-01-20 10:27:12 +00:00
gcp-cherry-pick-bot[bot]
36663e7a65
fix: replace + with _ in Chart.Version label field (#6047) (#6056)
Signed-off-by: Linda Arende <lda.ext@velux.com>

Signed-off-by: Linda Arende <lda.ext@velux.com>
Co-authored-by: Linda Arende <lda.ext@velux.com>

Signed-off-by: Linda Arende <lda.ext@velux.com>
Co-authored-by: Linda Ārende <64084638+LindaArende@users.noreply.github.com>
Co-authored-by: Linda Arende <lda.ext@velux.com>
2023-01-19 20:25:09 +00:00
shuting
c0f32d9807
cherry-pick #6030 (#6034)
Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-01-19 09:03:55 +01:00
shuting
73a4c94f90
tag v1.9.0-rc.2 (#6023)
Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-01-18 13:41:47 +00:00
shuting
2506faf91a
fix ns labels matching (#6022)
Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-01-18 12:46:51 +00:00
shuting
2b84a93468
tag v1.9.0-rc.1 (#6012)
Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-01-16 10:12:53 +00:00
Vyom Yadav
fa841ef597
fix: policy match Kind case-senstive (#6010)
Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com>

Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com>
2023-01-16 09:17:43 +00:00
Charles-Edouard Brétéché
f8d42dd944
fix: policy exceptions not working in background mode (#5980) (#6003)
* fix: policy exceptions not working in background mode

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* kuttl tests

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix kuttl test

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* Update test/conformance/kuttl/reports/admission/exception/README.md

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

* Update test/conformance/kuttl/reports/background/exception/README.md

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

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: shuting <shutting06@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: shuting <shutting06@gmail.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: shuting <shutting06@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: shuting <shutting06@gmail.com>
2023-01-16 12:53:37 +08:00
gcp-cherry-pick-bot[bot]
46785ddb31
chore: log out cleanup policy events (#5998) (#6000)
* create failure events on errors

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* err based event creation

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* log out cleanup policy events

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix operation

Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-01-13 16:44:09 +01:00
gcp-cherry-pick-bot[bot]
8749c29259
create failure events on errors (#5988) (#5997)
Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-01-13 12:11:21 +00:00
Charles-Edouard Brétéché
3bd9cfe969
fix: generate policy exception events (#5987) (#5996)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-01-13 10:48:38 +00:00
shuting
efb71583de
cherry-pick #5920 (#5990)
Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-01-13 07:21:27 +00:00
shuting
5b4116ab00
Fixes time_now failing (cherry-pick 5928) (#5991)
* cherry-pick #5928

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* cherry-pick #5928

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* cherry-pick #5928

Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: Vishal Choudhary <contactvishaltech@gmail.com>
2023-01-13 06:45:15 +00:00
gcp-cherry-pick-bot[bot]
08b643f08e
create events for cleanup policies (#5982) (#5983)
Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-01-12 09:09:42 +00:00
gcp-cherry-pick-bot[bot]
d1c27ad50c
fix: invoke cleanup process during shutdown (#5974) (#5981)
* invoke cleanup process during shutdown

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix shutdown cleanup

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix shutdown panic

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* cleanup webhooks by the label

Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-01-12 05:30:04 +00:00
shuting
38c46bd308
cherry-pick #5967 (#5970)
Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-01-11 23:54:36 +00:00
gcp-cherry-pick-bot[bot]
dff2eac597
log out deleted resources at default level (#5977) (#5978)
Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-01-11 23:13:25 +00:00
gcp-cherry-pick-bot[bot]
f3ed46dc0d
fix: helm selector (#5965) (#5969)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-01-11 06:06:22 +00:00
gcp-cherry-pick-bot[bot]
5f0548fbf0
feat: add cluster role aggregation to cleanup controller (#5966) (#5968)
* feat: add cluster role aggregation to cleanup controller

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* codegen

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* convention

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-01-11 12:20:32 +08:00