mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
Add json tags to internal fields and basic config test
This commit is contained in:
@@ -43,8 +43,8 @@ type DeschedulerPolicy struct {
|
||||
// Namespaces carries a list of included/excluded namespaces
|
||||
// for which a given strategy is applicable
|
||||
type Namespaces struct {
|
||||
Include []string
|
||||
Exclude []string
|
||||
Include []string `json:"include"`
|
||||
Exclude []string `json:"exclude"`
|
||||
}
|
||||
|
||||
type (
|
||||
@@ -53,8 +53,8 @@ type (
|
||||
)
|
||||
|
||||
type PriorityThreshold struct {
|
||||
Value *int32
|
||||
Name string
|
||||
Value *int32 `json:"value"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type DeschedulerProfile struct {
|
||||
|
||||
Reference in New Issue
Block a user