pkg/webhook/resourcesemantics/defaulting
Pierangelo Di Pilato f4b57aef00
Fix invalid creator or lastModifier annotations on core resources (#2409)
When the admission request is for a resource with an empty string as
group, which happens on core resources, the `creator` or `lastModifier`
annotations are invalid since they become `/creator` or
`/lastModifier`.

This patch removes the `/` when group = `""`.

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
2022-01-31 06:49:30 -08:00
..
controller.go Allow Unstructured callback from Defaulting Webhook (#2363) 2022-01-14 06:18:42 -08:00
defaulting.go Allow Unstructured callback from Defaulting Webhook (#2363) 2022-01-14 06:18:42 -08:00
defaulting_test.go Fix invalid creator or lastModifier annotations on core resources (#2409) 2022-01-31 06:49:30 -08:00
table_test.go Fix invalid creator or lastModifier annotations on core resources (#2409) 2022-01-31 06:49:30 -08:00
user_info.go Fix invalid creator or lastModifier annotations on core resources (#2409) 2022-01-31 06:49:30 -08:00
user_info_test.go v2 (#1754) 2020-09-29 13:18:29 -07:00