1
0
mirror of https://github.com/rancher/types.git synced 2025-08-01 04:57:05 +00:00

Change type to eventType for TargetEvent

This commit is contained in:
zionwu 2018-03-23 10:53:25 +08:00 committed by Darren Shepherd
parent 8e3235bfca
commit e5d9a4fcfa

View File

@ -81,13 +81,12 @@ type TargetPod struct {
}
type TargetEvent struct {
Type string `json:"type,omitempty" norman:"required,options=Normal|Warning,default=Warning"`
EventType string `json:"eventType,omitempty" norman:"required,options=Normal|Warning,default=Warning"`
ResourceKind string `json:"resourceKind,omitempty" norman:"required,options=Pod|Node|Deployment|Statefulset|Daemonset"`
}
type TargetWorkload struct {
WorkloadID string `json:"workloadId,omitempty"`
Type string `json:"type,omitempty" norman:"required,options=deployment|statefulset|daemonset,default=deployment"`
Selector map[string]string `json:"selector,omitempty"`
AvailablePercentage int `json:"availablePercentage,omitempty" norman:"required,min=1,max=100,default=70"`
}