diff options
| -rw-r--r-- | contributors/design-proposals/dynamic-admission-control-configuration.md | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/contributors/design-proposals/dynamic-admission-control-configuration.md b/contributors/design-proposals/dynamic-admission-control-configuration.md index 31c43f29..82a01fd4 100644 --- a/contributors/design-proposals/dynamic-admission-control-configuration.md +++ b/contributors/design-proposals/dynamic-admission-control-configuration.md @@ -81,7 +81,7 @@ type ExternalAdmissionHook struct { // for all operations. Defaults to '*'. Operations []OperationType // Resources are the resources this hook should be invoked on. '*' is all resources. - Resources []string + Resources []Resource // Subresources is list of subresources. If non-empty, this hook should be invoked on // all combinations of Resources and Subresources. '*' is all subresources. Subresources []string @@ -94,6 +94,13 @@ type ExternalAdmissionHook struct { FailurePolicy FailurePolicyType } +type Resource struct { + // Group is the API group the resource belongs to. + Group string + // Resource is the name of the resource. + Resource string +} + type OperationType string const ( |
