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 ¶
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"` Tolerations map[string][]Toleration `json:"tolerations"` Affinities map[string]NodeAffinityMatchExpressions `json:"affinities"` }
type Preference ¶
type Toleration ¶
type WeightedPreference ¶
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.