1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/test
gcp-cherry-pick-bot[bot] 52b1ccf1c9
fix: generate policy fails if triggered resource name exceeds 63 characters limit (#8466) (#8835)
* fix: generate label resource name character length issue



* add source label



* modify newUR function



* fix



* improve readability



* remove generate source name label



* Revert changes



* update ResourceSpec



* add URGenerateResourceUIDLabel



* make codegen crds all



* make codegen client all



* add GenerateSourceUIDLabel



* modify comment



* make codegen crds all



* make codegen-docs-all



* make codegen-all



* set trigger uid



* add uid in transform()



* add name label



* fix: use resource name labels along with its UID



* fix: use the resource name label only if its uid label isn't set



* fix



* add kuttl tests



* fix: delete the trigger resource in the test



* fix: delete the source in the kuttl test



* add generate trigger uid label



* modify TriggerInfo function



* populate uid field for new update requests



* populate new ur spec with uid



* handle downstream resources cleanup



* populate uid of ur status



* fetch triggers by the UID label



* label triggers



* fetch trigger by comparing UID



* fetch cloneList downstream resource by UID



* update test names



* remove trigger name label assertions from kuttl tests



* add unit name selector



* add sleep



* assert events on failures



* rename tests



---------

Signed-off-by: Chandan-DK <chandandk468@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Signed-off-by: shuting <shuting@nirmata.com>
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: Chandan-DK <chandandk468@gmail.com>
Co-authored-by: Chip Zoller <chipzoller@gmail.com>
Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-11-06 11:26:39 +00:00
..
best_practices chore: apply policy fixes (#8427) 2023-09-17 22:24:26 +00:00
cli Changes to correctly run delete operation in kyverno11beta4 (#8786) (#8820) 2023-11-02 21:31:23 +08:00
conformance/kuttl fix: generate policy fails if triggered resource name exceeds 63 characters limit (#8466) (#8835) 2023-11-06 11:26:39 +00:00
fuzz Refactor fuzzing utils and add 3 fuzzers (#8555) (#8586) 2023-10-06 08:00:13 +08:00
more chore: apply policy fixes (#8427) 2023-09-17 22:24:26 +00:00
openshift fix: allow policies from stdin in apply again (#5668) 2022-12-16 13:50:15 +00:00
output move from k8s.gcr.io to registry.k8s.io (#6263) 2023-02-09 00:09:15 +08:00
policy chore: fix policies (#8449) 2023-09-19 10:28:58 +00:00
resources Migrated scenario based tests to CLI (#8055) 2023-08-23 15:55:39 +00:00