Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = module.Descriptor{ Kind: "kubernetes", Actions: []module.ActionDesc{ { Name: module.CreateAction, }, { Name: module.UpdateAction, }, }, DriverFactory: func(conf json.RawMessage) (module.Driver, error) { kd := &kubeDriver{} err := json.Unmarshal(conf, &kd) if err != nil { return nil, errors.ErrInvalid.WithMsgf("failed to unmarshal module config: %v", err) } return kd, nil }, }
Functions ¶
This section is empty.
Types ¶
type NodeAffinityMatchExpressions ¶ added in v0.2.36
type NodeAffinityMatchExpressions struct {
RequiredDuringSchedulingIgnoredDuringExecution []Preference `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
PreferredDuringSchedulingIgnoredDuringExecution []WeightedPreference `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"`
}
type Output ¶
type Output struct {
Configs kube.Config `json:"configs"`
ServerInfo version.Info `json:"server_info"`
TolerationMode map[string]string `json:"toleration_mode"`
Tolerations map[string][]Toleration `json:"tolerations"`
AffinityMode map[string]string `json:"affinity_mode"`
Affinities map[string]NodeAffinityMatchExpressions `json:"affinities"`
}
type Preference ¶ added in v0.2.36
type Toleration ¶
type WeightedPreference ¶ added in v0.2.36
type WeightedPreference struct {
Weight int `json:"weight" validate:"required"`
Preference []Preference `json:"preference" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.