// Where possible, json tags match the cli argument names.
// Top level config objects and all values required for proper functioning are not "omitempty". Any truly optional piece of config is allowed to be omitted.
typePolicystruct{
typePolicystruct{
api.TypeMeta`json:",inline"`
api.TypeMeta`json:",inline"`
Predicates[]PredicatePolicy`json:"predicates"`
// Holds the information to configure the fit predicate functions
Priorities[]PriorityPolicy`json:"priorities"`
Predicates[]PredicatePolicy`json:"predicates"`
// Holds the information to configure the priority functions
Priorities[]PriorityPolicy`json:"priorities"`
}
}
typePredicatePolicystruct{
typePredicatePolicystruct{
Namestring`json:"name"`
// Identifier of the predicate policy
// For a custom predicate, the name can be user-defined
// For the Kubernetes provided predicates, the name is the identifier of the pre-defined predicate
Namestring`json:"name"`
// Holds the parameters to configure the given predicate
Argument*PredicateArgument`json:"argument"`
Argument*PredicateArgument`json:"argument"`
}
}
typePriorityPolicystruct{
typePriorityPolicystruct{
Namestring`json:"name"`
// Identifier of the priority policy
Weightint`json:"weight"`
// For a custom priority, the name can be user-defined
// For the Kubernetes provided priority functions, the name is the identifier of the pre-defined priority function
Namestring`json:"name"`
// The numeric multiplier for the minion scores that the priority function generates
Weightint`json:"weight"`
// Holds the parameters to configure the given priority function
Argument*PriorityArgument`json:"argument"`
Argument*PriorityArgument`json:"argument"`
}
}
// PredicateArgument represents the arguments that the different types of predicates take.
// Represents the arguments that the different types of predicates take
// Only one of its members may be specified.
// Only one of its members may be specified
typePredicateArgumentstruct{
typePredicateArgumentstruct{
// The predicate that provides affinity for pods belonging to a service
// It uses a label to identify minions that belong to the same "group"
// Where possible, json tags match the cli argument names.
// Top level config objects and all values required for proper functioning are not "omitempty". Any truly optional piece of config is allowed to be omitted.
typePolicystruct{
typePolicystruct{
v1beta3.TypeMeta`json:",inline"`
v1beta3.TypeMeta`json:",inline"`
// Predicates holds the information to configure the fit predicate functions
// Holds the information to configure the fit predicate functions
Predicates[]PredicatePolicy`json:"predicates"`
Predicates[]PredicatePolicy`json:"predicates"`
// Priorities holds the information to configure the priority functions
// Holds the information to configure the priority functions
Priorities[]PriorityPolicy`json:"priorities"`
Priorities[]PriorityPolicy`json:"priorities"`
}
}
typePredicatePolicystruct{
typePredicatePolicystruct{
// Name is the identifier of the predicate policy
// Identifier of the predicate policy
// For a custom predicate, the name can be user-defined
// For a custom predicate, the name can be user-defined
// For the Kubernetes provided predicates, the name is the identifier of the pre-defined predicate
// For the Kubernetes provided predicates, the name is the identifier of the pre-defined predicate
Namestring`json:"name"`
Namestring`json:"name"`
// Argument holds the parameters to configure the given predicate
// Holds the parameters to configure the given predicate
Argument*PredicateArgument`json:"argument"`
Argument*PredicateArgument`json:"argument"`
}
}
typePriorityPolicystruct{
typePriorityPolicystruct{
// Name is the identifier of the priority policy
// Identifier of the priority policy
// For a custom priority, the name can be user-defined
// For a custom priority, the name can be user-defined
// For the Kubernetes provided priority functions, the name is the identifier of the pre-defined priority function
// For the Kubernetes provided priority functions, the name is the identifier of the pre-defined priority function
Namestring`json:"name"`
Namestring`json:"name"`
// Weight is the numeric multiplier for the minion scores that the priority function generates
// The numeric multiplier for the minion scores that the priority function generates
Weightint`json:"weight"`
Weightint`json:"weight"`
// Argument holds the parameters to configure the given priority function
// Holds the parameters to configure the given priority function
Argument*PriorityArgument`json:"argument"`
Argument*PriorityArgument`json:"argument"`
}
}
// PredicateArgument represents the arguments that the different types of predicates take
// Represents the arguments that the different types of predicates take
// Only one of its members may be specified
// Only one of its members may be specified
typePredicateArgumentstruct{
typePredicateArgumentstruct{
// ServiceAffinity is the predicate that provides affinity for pods belonging to a service
// The predicate that provides affinity for pods belonging to a service
// It uses a label to identify minions that belong to the same "group"
// It uses a label to identify minions that belong to the same "group"