update Annotations description about audit.Event

This commit is contained in:
Cao Shufeng 2018-08-17 11:15:49 +08:00
parent 99c17d89c7
commit 0a8c207a59
4 changed files with 16 additions and 12 deletions

View File

@ -132,9 +132,10 @@ type Event struct {
// Annotations is an unstructured key value map stored with an audit event that may be set by // Annotations is an unstructured key value map stored with an audit event that may be set by
// plugins invoked in the request serving chain, including authentication, authorization and // plugins invoked in the request serving chain, including authentication, authorization and
// admission plugins. Keys should uniquely identify the informing component to avoid name // admission plugins. Note that these annotations are for the audit event, and do not correspond
// collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values should be short. Annotations // to the metadata.annotations of the submitted object. Keys should uniquely identify the informing
// are included in the Metadata level. // component to avoid name collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values
// should be short. Annotations are included in the Metadata level.
// +optional // +optional
Annotations map[string]string Annotations map[string]string
} }

View File

@ -127,9 +127,10 @@ type Event struct {
// Annotations is an unstructured key value map stored with an audit event that may be set by // Annotations is an unstructured key value map stored with an audit event that may be set by
// plugins invoked in the request serving chain, including authentication, authorization and // plugins invoked in the request serving chain, including authentication, authorization and
// admission plugins. Keys should uniquely identify the informing component to avoid name // admission plugins. Note that these annotations are for the audit event, and do not correspond
// collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values should be short. Annotations // to the metadata.annotations of the submitted object. Keys should uniquely identify the informing
// are included in the Metadata level. // component to avoid name collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values
// should be short. Annotations are included in the Metadata level.
// +optional // +optional
Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,15,rep,name=annotations"` Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,15,rep,name=annotations"`
} }

View File

@ -139,9 +139,10 @@ type Event struct {
// Annotations is an unstructured key value map stored with an audit event that may be set by // Annotations is an unstructured key value map stored with an audit event that may be set by
// plugins invoked in the request serving chain, including authentication, authorization and // plugins invoked in the request serving chain, including authentication, authorization and
// admission plugins. Keys should uniquely identify the informing component to avoid name // admission plugins. Note that these annotations are for the audit event, and do not correspond
// collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values should be short. Annotations // to the metadata.annotations of the submitted object. Keys should uniquely identify the informing
// are included in the Metadata level. // component to avoid name collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values
// should be short. Annotations are included in the Metadata level.
// +optional // +optional
Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,17,rep,name=annotations"` Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,17,rep,name=annotations"`
} }

View File

@ -135,9 +135,10 @@ type Event struct {
// Annotations is an unstructured key value map stored with an audit event that may be set by // Annotations is an unstructured key value map stored with an audit event that may be set by
// plugins invoked in the request serving chain, including authentication, authorization and // plugins invoked in the request serving chain, including authentication, authorization and
// admission plugins. Keys should uniquely identify the informing component to avoid name // admission plugins. Note that these annotations are for the audit event, and do not correspond
// collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values should be short. Annotations // to the metadata.annotations of the submitted object. Keys should uniquely identify the informing
// are included in the Metadata level. // component to avoid name collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values
// should be short. Annotations are included in the Metadata level.
// +optional // +optional
Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,17,rep,name=annotations"` Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,17,rep,name=annotations"`
} }