mirror of
https://github.com/rancher/types.git
synced 2025-09-15 14:29:27 +00:00
Change type to eventType for TargetEvent
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user