summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao Xu <xuchao@google.com>2017-05-11 13:56:07 -0700
committerChao Xu <xuchao@google.com>2017-05-11 13:56:07 -0700
commitb976d261232d76d96e586f2c13030fa85688ef82 (patch)
tree6c3263bc8295a881a3e2e2c75a72f338ecf4f8a7
parent9d02a4acce27309584b9b587ecb2acb61dc325ae (diff)
qualify Resource with Group
-rw-r--r--contributors/design-proposals/dynamic-admission-control-configuration.md9
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 (