Documentation
¶
Index ¶
- func DrainOSImage(namespace string, name string, managedOSVersion string, ...) *elementalv1.ManagedOSImage
- func NewMachineRegistration(namespace string, name string, config *elementalv1.Config) *elementalv1.MachineRegistration
- func NewManagedOSImage(namespace string, name string, targets []elementalv1.BundleTarget, ...) *elementalv1.ManagedOSImage
- func NewManagedOSVersion(namespace string, name string, version string, minVersion string, ...) *elementalv1.ManagedOSVersion
- func NewManagedOSVersionChannel(namespace, name, sType, interval string, ...) *elementalv1.ManagedOSVersionChannel
- type ContainerSpec
- type DrainSpec
- type ManagedOSImage
- type ManagedOSVersion
- type ManagedOSVersionChannel
- type ManagedOSVersionChannelSpec
- type ManagedOSVersionSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrainOSImage ¶
func DrainOSImage(namespace string, name string, managedOSVersion string, drainSpec *upgradev1.DrainSpec) *elementalv1.ManagedOSImage
func NewMachineRegistration ¶
func NewMachineRegistration(namespace string, name string, config *elementalv1.Config) *elementalv1.MachineRegistration
func NewManagedOSImage ¶
func NewManagedOSImage(namespace string, name string, targets []elementalv1.BundleTarget, mosImage string, mosVersionName string) *elementalv1.ManagedOSImage
func NewManagedOSVersion ¶
func NewManagedOSVersion(namespace string, name string, version string, minVersion string, metadata map[string]runtime.RawExtension, upgradeC *upgradev1.ContainerSpec) *elementalv1.ManagedOSVersion
func NewManagedOSVersionChannel ¶
func NewManagedOSVersionChannel(namespace, name, sType, interval string, options map[string]runtime.RawExtension, upgradeContainer *upgradev1.ContainerSpec) *elementalv1.ManagedOSVersionChannel
Types ¶
type ContainerSpec ¶
type DrainSpec ¶
type DrainSpec struct {
Timeout *time.Duration `json:"timeout,omitempty" yaml:"timeout"`
GracePeriod *int32 `json:"gracePeriod,omitempty" yaml:"gracePeriod"`
DeleteLocalData *bool `json:"deleteLocalData,omitempty" yaml:"deleteLocalData"`
IgnoreDaemonSets *bool `json:"ignoreDaemonSets,omitempty" yaml:"ignoreDaemonSets"`
Force bool `json:"force,omitempty" yaml:"force"`
DisableEviction bool `json:"disableEviction,omitempty" yaml:"disableEviction"`
SkipWaitForDeleteTimeout int `json:"skipWaitForDeleteTimeout,omitempty" yaml:"skipWaitForDeleteTimeout"`
}
type ManagedOSImage ¶
type ManagedOSImage struct {
APIVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata struct {
Name string `json:"name" yaml:"name"`
} `json:"metadata" yaml:"metadata"`
Spec struct {
Cordon *bool `json:"cordon,omitempty" yaml:"cordon"`
Drain *DrainSpec `json:"drain,omitempty" yaml:"drain"`
OSImage string `json:"osImage" yaml:"osImage"`
ManagedOSVersionName string `json:"managedOSVersionName" yaml:"managedOSVersionName"`
Targets []map[string]interface{} `json:"clusterTargets" yaml:"clusterTargets"`
}
}
func LegacyDrainOSImage ¶ added in v1.1.0
func LegacyDrainOSImage(name string, managedOSVersion string, drainSpec *DrainSpec) *ManagedOSImage
func LegacyNewManagedOSImage ¶ added in v1.1.0
func LegacyNewManagedOSImage(name string, targets []map[string]interface{}, mosImage string, mosVersionName string) *ManagedOSImage
type ManagedOSVersion ¶
type ManagedOSVersion struct {
APIVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata struct {
Name string `json:"name" yaml:"name"`
} `json:"metadata" yaml:"metadata"`
Spec ManagedOSVersionSpec
}
func LegacyNewManagedOSVersion ¶ added in v1.1.0
func LegacyNewManagedOSVersion(name string, version string, minVersion string, metadata map[string]interface{}, upgradeC *ContainerSpec) *ManagedOSVersion
type ManagedOSVersionChannel ¶
type ManagedOSVersionChannel struct {
APIVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata struct {
Name string `json:"name" yaml:"name"`
} `json:"metadata" yaml:"metadata"`
Spec ManagedOSVersionChannelSpec `json:"spec,omitempty"`
}
func LegacyNewManagedOSVersionChannel ¶ added in v1.1.0
func LegacyNewManagedOSVersionChannel(name string, t string, interval string, options map[string]interface{}, upgradeContainer *ContainerSpec) *ManagedOSVersionChannel
type ManagedOSVersionChannelSpec ¶
type ManagedOSVersionChannelSpec struct {
Type string `json:"type" yaml:"type"`
Options map[string]interface{} `json:"options" yaml:"options"`
UpgradeContainer *ContainerSpec `json:"upgradeContainer,omitempty" yaml:"upgradeContainer"`
SyncInterval string `json:"syncInterval,omitempty" yaml:"syncInterval"`
}
type ManagedOSVersionSpec ¶
type ManagedOSVersionSpec struct {
Type string `json:"type" yaml:"type"`
Version string `json:"version" yaml:"version"`
MinVersion string `json:"minVersion" yaml:"minVersion"`
Metadata map[string]interface{} `json:"metadata" yaml:"metadata"`
UpgradeContainer *ContainerSpec `json:"upgradeContainer" yaml:"upgradeContainer"`
}
Click to show internal directories.
Click to hide internal directories.