forked from kyverno/kyverno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generate policy fails if triggered resource name exceeds 63 char…
…acters limit (kyverno#8466) * fix: generate label resource name character length issue Signed-off-by: Chandan-DK <[email protected]> * add source label Signed-off-by: Chandan-DK <[email protected]> * modify newUR function Signed-off-by: Chandan-DK <[email protected]> * fix Signed-off-by: Chandan-DK <[email protected]> * improve readability Signed-off-by: Chandan-DK <[email protected]> * remove generate source name label Signed-off-by: Chandan-DK <[email protected]> * Revert changes Signed-off-by: Chandan-DK <[email protected]> * update ResourceSpec Signed-off-by: Chandan-DK <[email protected]> * add URGenerateResourceUIDLabel Signed-off-by: Chandan-DK <[email protected]> * make codegen crds all Signed-off-by: Chandan-DK <[email protected]> * make codegen client all Signed-off-by: Chandan-DK <[email protected]> * add GenerateSourceUIDLabel Signed-off-by: Chandan-DK <[email protected]> * modify comment Signed-off-by: Chandan-DK <[email protected]> * make codegen crds all Signed-off-by: Chandan-DK <[email protected]> * make codegen-docs-all Signed-off-by: Chandan-DK <[email protected]> * make codegen-all Signed-off-by: Chandan-DK <[email protected]> * set trigger uid Signed-off-by: Chandan-DK <[email protected]> * add uid in transform() Signed-off-by: Chandan-DK <[email protected]> * add name label Signed-off-by: Chandan-DK <[email protected]> * fix: use resource name labels along with its UID Signed-off-by: Mariam Fahmy <[email protected]> * fix: use the resource name label only if its uid label isn't set Signed-off-by: Mariam Fahmy <[email protected]> * fix Signed-off-by: Mariam Fahmy <[email protected]> * add kuttl tests Signed-off-by: Mariam Fahmy <[email protected]> * fix: delete the trigger resource in the test Signed-off-by: Mariam Fahmy <[email protected]> * fix: delete the source in the kuttl test Signed-off-by: Mariam Fahmy <[email protected]> * add generate trigger uid label Signed-off-by: Chandan-DK <[email protected]> * modify TriggerInfo function Signed-off-by: Chandan-DK <[email protected]> * populate uid field for new update requests Signed-off-by: Chandan-DK <[email protected]> * populate new ur spec with uid Signed-off-by: Chandan-DK <[email protected]> * handle downstream resources cleanup Signed-off-by: Chandan-DK <[email protected]> * populate uid of ur status Signed-off-by: Chandan-DK <[email protected]> * fetch triggers by the UID label Signed-off-by: ShutingZhao <[email protected]> * label triggers Signed-off-by: ShutingZhao <[email protected]> * fetch trigger by comparing UID Signed-off-by: ShutingZhao <[email protected]> * fetch cloneList downstream resource by UID Signed-off-by: ShutingZhao <[email protected]> * update test names Signed-off-by: ShutingZhao <[email protected]> * remove trigger name label assertions from kuttl tests Signed-off-by: ShutingZhao <[email protected]> * add unit name selector Signed-off-by: ShutingZhao <[email protected]> * add sleep Signed-off-by: ShutingZhao <[email protected]> * assert events on failures Signed-off-by: ShutingZhao <[email protected]> * rename tests Signed-off-by: ShutingZhao <[email protected]> --------- Signed-off-by: Chandan-DK <[email protected]> Signed-off-by: Chip Zoller <[email protected]> Signed-off-by: Mariam Fahmy <[email protected]> Signed-off-by: shuting <[email protected]> Signed-off-by: ShutingZhao <[email protected]> Co-authored-by: Chip Zoller <[email protected]> Co-authored-by: Mariam Fahmy <[email protected]> Co-authored-by: shuting <[email protected]>
- Loading branch information
1 parent
0dffab4
commit cafc099
Showing
59 changed files
with
572 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.