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:
parent
8e3235bfca
commit
e5d9a4fcfa
@ -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"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user