Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ParamDescs = []check.ParameterDesc{
strategyTypeRegexParamDesc,
maxPodsUnavailableParamDesc,
minPodsUnavailableParamDesc,
maxSurgeParamDesc,
minSurgeParamDesc,
}
)
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 { // A regular expression the defines the type of update // strategy allowed. // +required StrategyTypeRegex string // configuration for the MaxUnavailable. This can be // an integer or a percent. MaxPodsUnavailable string // configuration for the MaxUnavailable. This can be // an integer or a percent. MinPodsUnavailable string // The maximum value that be set in a RollingUpdate // configuration for the MaxSurge. This can be // an integer or a percent. MaxSurge string // The minimum value that be set in a RollingUpdate // configuration for the MaxSurge. This can be // an integer or a percent. MinSurge string }
Params represents the params accepted by this template.
Click to show internal directories.
Click to hide internal directories.