Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ParamDescs = []check.ParameterDesc{
minReplicasParamDesc,
topologyKeyParamDesc,
}
)
Functions ¶
func ParseAndValidate ¶
ParseAndValidate instantiates a Params object out of the passed map[string]interface{}, validates it, and returns it. The return type is interface{} to satisfy the type in the Template struct.
Types ¶
type Params ¶
type Params struct {
// The minimum number of replicas a deployment must have before anti-affinity is enforced on it
MinReplicas int
// The topology key that the anti-affinity term should use.
// If not specified, it defaults to "kubernetes.io/hostname".
TopologyKey string
}
Params represents the params accepted by this template.
Click to show internal directories.
Click to hide internal directories.