1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/pkg/client/applyconfigurations/kyverno/v1
Chandan-DK cafc0990f9
fix: generate policy fails if triggered resource name exceeds 63 characters limit (#8466)
* fix: generate label resource name character length issue

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* add source label

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* modify newUR function

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* fix

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* improve readability

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* remove generate source name label

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* Revert changes

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* update ResourceSpec

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* add URGenerateResourceUIDLabel

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* make codegen crds all

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* make codegen client all

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* add GenerateSourceUIDLabel

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* modify comment

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* make codegen crds all

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* make codegen-docs-all

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* make codegen-all

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* set trigger uid

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* add uid in transform()

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* add name label

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* fix: use resource name labels along with its UID

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

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

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* add kuttl tests

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix: delete the trigger resource in the test

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix: delete the source in the kuttl test

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* add generate trigger uid label

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* modify TriggerInfo function

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* populate uid field for new update requests

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* populate new ur spec with uid

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* handle downstream resources cleanup

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* populate uid of ur status

Signed-off-by: Chandan-DK <chandandk468@gmail.com>

* fetch triggers by the UID label

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

* label triggers

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

* fetch trigger by comparing UID

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

* fetch cloneList downstream resource by UID

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

* update test names

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

* remove trigger name label assertions from kuttl tests

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

* add unit name selector

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

* add sleep

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

* assert events on failures

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

* rename tests

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

---------

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: Chip Zoller <chipzoller@gmail.com>
Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-11-06 10:37:13 +00:00
..
anyallconditions.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
apicall.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
attestation.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
attestor.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
attestorset.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
autogenstatus.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
cel.go feat: support variables for CEL in Kyverno policies (#8103) 2023-08-24 10:00:27 +00:00
certificateattestor.go feat: migrate ignoreSCT from rekor to ctlog (#8166) 2023-08-30 08:39:49 +02:00
clonefrom.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
clonelist.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
clusterpolicy.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
condition.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
configmapreference.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
contextentry.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
ctlog.go feat: migrate ignoreSCT from rekor to ctlog (#8166) 2023-08-30 08:39:49 +02:00
deny.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
dryrunoption.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
foreachmutation.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
foreachvalidation.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
generation.go fix: generate policy fails if triggered resource name exceeds 63 characters limit (#8466) 2023-11-06 10:37:13 +00:00
imageextractorconfig.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
imageregistry.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
imageregistrycredentials.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
imageverification.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
keylessattestor.go feat: migrate ignoreSCT from rekor to ctlog (#8166) 2023-08-30 08:39:49 +02:00
manifests.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
matchresources.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
mutation.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
objectfieldbinding.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
podsecurity.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
podsecuritystandard.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
policy.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
policystatus.go feat: generate validating admission policies and their bindings from Kyverno policies (#7840) 2023-08-31 10:25:21 +00:00
rekor.go feat: migrate ignoreSCT from rekor to ctlog (#8166) 2023-08-30 08:39:49 +02:00
requestdata.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
resourcedescription.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
resourcefilter.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
resourcespec.go fix: generate policy fails if triggered resource name exceeds 63 characters limit (#8466) 2023-11-06 10:37:13 +00:00
rule.go refactor: create cel package for compiling expressions (#8108) 2023-08-24 14:06:37 +00:00
rulecountstatus.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
secretreference.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
servicecall.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
spec.go feat: Add support for server-side-apply in generate rules (#7705) 2023-08-02 17:59:37 +00:00
statickeyattestor.go feat: migrate ignoreSCT from rekor to ctlog (#8166) 2023-08-30 08:39:49 +02:00
targetresourcespec.go fix: generate policy fails if triggered resource name exceeds 63 characters limit (#8466) 2023-11-06 10:37:13 +00:00
userinfo.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
validatingadmissionpolicystatus.go feat: generate validating admission policies and their bindings from Kyverno policies (#7840) 2023-08-31 10:25:21 +00:00
validation.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
validationfailureactionoverride.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30
variable.go feat: add applyconfiguration-gen support (#7768) 2023-07-10 15:23:25 +05:30