fix docstring of advanced audit policy

Kubernetes-commit: 22f4c1ad4db102d66ec829a64ab601919f2019f5
This commit is contained in:
Cao Shufeng 2017-09-05 15:28:19 +08:00 committed by Kubernetes Publisher
parent 9c2e935137
commit 26f73b45d4
3 changed files with 9 additions and 9 deletions

View File

@ -220,9 +220,9 @@ type GroupResources struct {
// +optional
Group string
// Resources is a list of resources within the API group. Subresources are
// matched using a "/" to indicate the subresource. For example, "pods/logs"
// would match request to the logs subresource of pods. The top level resource
// does not match subresources, "pods" doesn't match "pods/logs".
// matched using a "/" to indicate the subresource. For example, "pods/log"
// would match request to the log subresource of pods. The top level resource
// does not match subresources, "pods" doesn't match "pods/log".
// +optional
Resources []string
// ResourceNames is a list of resource instance names that the policy matches.

View File

@ -108,9 +108,9 @@ message GroupResources {
optional string group = 1;
// Resources is a list of resources within the API group. Subresources are
// matched using a "/" to indicate the subresource. For example, "pods/logs"
// would match request to the logs subresource of pods. The top level resource
// does not match subresources, "pods" doesn't match "pods/logs".
// matched using a "/" to indicate the subresource. For example, "pods/log"
// would match request to the log subresource of pods. The top level resource
// does not match subresources, "pods" doesn't match "pods/log".
// +optional
repeated string resources = 2;

View File

@ -214,9 +214,9 @@ type GroupResources struct {
// +optional
Group string `json:"group,omitempty" protobuf:"bytes,1,opt,name=group"`
// Resources is a list of resources within the API group. Subresources are
// matched using a "/" to indicate the subresource. For example, "pods/logs"
// would match request to the logs subresource of pods. The top level resource
// does not match subresources, "pods" doesn't match "pods/logs".
// matched using a "/" to indicate the subresource. For example, "pods/log"
// would match request to the log subresource of pods. The top level resource
// does not match subresources, "pods" doesn't match "pods/log".
// +optional
Resources []string `json:"resources,omitempty" protobuf:"bytes,2,rep,name=resources"`
// ResourceNames is a list of resource instance names that the policy matches.