From b976d261232d76d96e586f2c13030fa85688ef82 Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Thu, 11 May 2017 13:56:07 -0700 Subject: qualify Resource with Group --- .../design-proposals/dynamic-admission-control-configuration.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 ( -- cgit v1.2.3