1
0
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:
Mike Dame
2023-04-17 14:00:58 +00:00
parent a7113dab50
commit d9316d1872
6 changed files with 126 additions and 23 deletions

View File

@@ -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 {