1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-24 13:07:31 +00:00
kyverno/pkg/engine
Vishal Choudhary 48d9ebba2c
Replaces manually written logic with regex for matching anchor elements ()
* uses regular expressions

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* adds regex capture

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* creates anchor instance

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* remove IsAnchor

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

* more

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

* added interface

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* remove static funcs

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

* adapt

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

* value receiver

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

* simplify

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>

* error

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

* renames

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

* private

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

* nit

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>

* fix

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

* ficx

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

* refactor

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

* test

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

* tests

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

* test

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>

* error

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

* unit tests

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

* refactor

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>

* fix

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

* unit tests

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>

* fix

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: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
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: Charles-Edouard Brétéché <charled.breteche@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-01-30 12:17:19 +00:00
..
anchor Replaces manually written logic with regex for matching anchor elements () 2023-01-30 12:17:19 +00:00
api refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
apicall Service call () 2022-12-27 08:36:49 +00:00
common refactor: engine pattern package and add duration support () 2023-01-10 14:07:26 +01:00
context Adding support for overriding the default registry () 2023-01-02 17:14:40 +00:00
jmespath feat: add more time jmespath filters () 2023-01-10 04:40:46 +00:00
jsonutils refactor: move util funcs in sub packages () 2022-12-22 06:39:54 +00:00
mutate Replaces manually written logic with regex for matching anchor elements () 2023-01-30 12:17:19 +00:00
operator fix: change inrange operator regexs () 2023-01-16 16:23:36 +01:00
pattern fix: change inrange operator regexs () 2023-01-16 16:23:36 +01:00
resources Yaml signing and verification () 2022-08-30 10:14:54 -07:00
utils Replaces manually written logic with regex for matching anchor elements () 2023-01-30 12:17:19 +00:00
validate Replaces manually written logic with regex for matching anchor elements () 2023-01-30 12:17:19 +00:00
variables refactor: engine pattern package and add duration support () 2023-01-10 14:07:26 +01:00
wildcards Replaces manually written logic with regex for matching anchor elements () 2023-01-30 12:17:19 +00:00
attestation_test.go Nested foreach () 2022-12-12 15:20:20 +00:00
background.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
common.go feat: add support for subresources to validating and mutating policies () 2022-12-10 00:45:23 +08:00
common_test.go feat: add support for subresources to validating and mutating policies () 2022-12-10 00:45:23 +08:00
forceMutate.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
forceMutate_test.go chore: move ConvertToUnstructured from engine utils to kube utils () 2023-01-03 12:02:15 +00:00
generation.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
imageVerify.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
imageVerify_test.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
imageVerifyMetadata.go chore: enable gofmt and gofumpt linters () 2022-05-17 06:19:03 +00:00
imageVerifyValidate.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
jsonContext.go Service call () 2022-12-27 08:36:49 +00:00
k8smanifest.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
k8smanifest_test.go refactor: make policy context immutable and fields private () 2022-12-02 16:14:23 +08:00
loadtargets.go feat: add support for subresources to validating and mutating policies () 2022-12-10 00:45:23 +08:00
loadtargets_test.go Load mutate.targets via dclient () 2022-05-06 05:46:36 +00:00
mutation.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
mutation_test.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
policyContext.go feat: add missing polex flags () 2023-01-19 11:56:22 +08:00
utils.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
utils_test.go fix: policy match Kind case-senstive () 2023-01-16 16:01:05 +08:00
validation.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00
validation_test.go refactor: introduce engine api package () 2023-01-30 11:41:09 +00:00