mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
Merge pull request #1480 from ingvagabund/omitempty-for-plugin-args
Plugin args: tag arguments with omitempty to reduce the marshalled json size
This commit is contained in:
@@ -29,8 +29,8 @@ import (
|
||||
type RemovePodsViolatingTopologySpreadConstraintArgs struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
|
||||
Namespaces *api.Namespaces `json:"namespaces"`
|
||||
LabelSelector *metav1.LabelSelector `json:"labelSelector"`
|
||||
Constraints []v1.UnsatisfiableConstraintAction `json:"constraints"`
|
||||
TopologyBalanceNodeFit *bool `json:"topologyBalanceNodeFit"`
|
||||
Namespaces *api.Namespaces `json:"namespaces,omitempty"`
|
||||
LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`
|
||||
Constraints []v1.UnsatisfiableConstraintAction `json:"constraints,omitempty"`
|
||||
TopologyBalanceNodeFit *bool `json:"topologyBalanceNodeFit,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user