pkg/testing
Pierangelo Di Pilato 0a429cba1c
Allow Unstructured callback from Defaulting Webhook (#2363)
* Add support for callback defaults

Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>

* Put unstr object in ctx and set user info

Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>

* Move get callback at the top

Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>

* Panic when using delete verb

Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>

* Split tests and add callback ctx tests

Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>

* Set user info annotations

Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>

* Register Webhook Rules from callbacks

Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>

* Adapt unstructured objects to apis.HasSpec

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Change json tag name to match struct field name

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
2022-01-14 06:18:42 -08:00
..
duck Update actions (#2313) 2021-10-15 12:26:13 -07:00
doc.go Move the test resource out of `./webhook`. (#32) 2018-07-31 16:02:37 -07:00
inner_default_resource.go Fix revive related linting issues (#2131) 2021-05-26 01:10:28 -07:00
inner_default_resource_test.go v2 (#1754) 2020-09-29 13:18:29 -07:00
register.go Fix revive related linting issues (#2131) 2021-05-26 01:10:28 -07:00
resource.go Allow Unstructured callback from Defaulting Webhook (#2363) 2022-01-14 06:18:42 -08:00
zz_generated.deepcopy.go Update actions (#2313) 2021-10-15 12:26:13 -07:00