Documentation ¶
Overview ¶
Package v1 is the v1 version of the API.
Index ¶
- Constants
- Variables
- func IsControllerConfigStatusConditionFalse(conditions []ControllerConfigStatusCondition, ...) bool
- func IsControllerConfigStatusConditionPresentAndEqual(conditions []ControllerConfigStatusCondition, ...) bool
- func IsControllerConfigStatusConditionTrue(conditions []ControllerConfigStatusCondition, ...) bool
- func IsMachineConfigPoolConditionFalse(conditions []MachineConfigPoolCondition, ...) bool
- func IsMachineConfigPoolConditionPresentAndEqual(conditions []MachineConfigPoolCondition, ...) bool
- func IsMachineConfigPoolConditionTrue(conditions []MachineConfigPoolCondition, ...) bool
- func RemoveControllerConfigStatusCondition(status *ControllerConfigStatus, condType ControllerConfigStatusConditionType)
- func RemoveMachineConfigPoolCondition(status *MachineConfigPoolStatus, condType MachineConfigPoolConditionType)
- func Resource(resource string) schema.GroupResource
- func SetControllerConfigStatusCondition(status *ControllerConfigStatus, condition ControllerConfigStatusCondition)
- func SetMachineConfigPoolCondition(status *MachineConfigPoolStatus, condition MachineConfigPoolCondition)
- type ContainerRuntimeConfig
- type ContainerRuntimeConfigCondition
- type ContainerRuntimeConfigList
- type ContainerRuntimeConfigSpec
- type ContainerRuntimeConfigStatus
- type ContainerRuntimeConfigStatusConditionType
- type ContainerRuntimeConfiguration
- type ControllerConfig
- type ControllerConfigList
- type ControllerConfigSpec
- type ControllerConfigStatus
- type ControllerConfigStatusCondition
- func GetControllerConfigStatusCondition(status ControllerConfigStatus, condType ControllerConfigStatusConditionType) *ControllerConfigStatusCondition
- func NewControllerConfigStatusCondition(condType ControllerConfigStatusConditionType, status corev1.ConditionStatus, ...) *ControllerConfigStatusCondition
- type ControllerConfigStatusConditionType
- type KubeletConfig
- type KubeletConfigCondition
- type KubeletConfigList
- type KubeletConfigSpec
- type KubeletConfigStatus
- type KubeletConfigStatusConditionType
- type MCOConfig
- type MCOConfigList
- type MCOConfigSpec
- type MachineConfig
- type MachineConfigList
- type MachineConfigPool
- type MachineConfigPoolCondition
- type MachineConfigPoolConditionType
- type MachineConfigPoolList
- type MachineConfigPoolSpec
- type MachineConfigPoolStatus
- type MachineConfigPoolStatusConfiguration
- type MachineConfigSpec
Constants ¶
const ( // GroupName defines the API group for machineconfigpools. GroupName = apis.GroupName )
Variables ¶
var ( // SchemeBuilder is the scheme builder for MachineConfigPools SchemeBuilder runtime.SchemeBuilder // AddToScheme is the function alias for AddtoScheme AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func IsControllerConfigStatusConditionFalse ¶
func IsControllerConfigStatusConditionFalse(conditions []ControllerConfigStatusCondition, conditionType ControllerConfigStatusConditionType) bool
IsControllerConfigStatusConditionFalse returns true when the conditionType is present and set to `ConditionFalse`
func IsControllerConfigStatusConditionPresentAndEqual ¶
func IsControllerConfigStatusConditionPresentAndEqual(conditions []ControllerConfigStatusCondition, conditionType ControllerConfigStatusConditionType, status corev1.ConditionStatus) bool
IsControllerConfigStatusConditionPresentAndEqual returns true when conditionType is present and equal to status.
func IsControllerConfigStatusConditionTrue ¶
func IsControllerConfigStatusConditionTrue(conditions []ControllerConfigStatusCondition, conditionType ControllerConfigStatusConditionType) bool
IsControllerConfigStatusConditionTrue returns true when the conditionType is present and set to `ConditionTrue`
func IsMachineConfigPoolConditionFalse ¶
func IsMachineConfigPoolConditionFalse(conditions []MachineConfigPoolCondition, conditionType MachineConfigPoolConditionType) bool
IsMachineConfigPoolConditionFalse returns true when the conditionType is present and set to `ConditionFalse`
func IsMachineConfigPoolConditionPresentAndEqual ¶
func IsMachineConfigPoolConditionPresentAndEqual(conditions []MachineConfigPoolCondition, conditionType MachineConfigPoolConditionType, status corev1.ConditionStatus) bool
IsMachineConfigPoolConditionPresentAndEqual returns true when conditionType is present and equal to status.
func IsMachineConfigPoolConditionTrue ¶
func IsMachineConfigPoolConditionTrue(conditions []MachineConfigPoolCondition, conditionType MachineConfigPoolConditionType) bool
IsMachineConfigPoolConditionTrue returns true when the conditionType is present and set to `ConditionTrue`
func RemoveControllerConfigStatusCondition ¶
func RemoveControllerConfigStatusCondition(status *ControllerConfigStatus, condType ControllerConfigStatusConditionType)
RemoveControllerConfigStatusCondition removes the ControllerConfigStatus condition with the provided type.
func RemoveMachineConfigPoolCondition ¶
func RemoveMachineConfigPoolCondition(status *MachineConfigPoolStatus, condType MachineConfigPoolConditionType)
RemoveMachineConfigPoolCondition removes the MachineConfigPool condition with the provided type.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetControllerConfigStatusCondition ¶
func SetControllerConfigStatusCondition(status *ControllerConfigStatus, condition ControllerConfigStatusCondition)
SetControllerConfigStatusCondition updates the ControllerConfigStatus to include the provided condition. If the condition that we are about to add already exists and has the same status and reason then we are not going to update.
func SetMachineConfigPoolCondition ¶
func SetMachineConfigPoolCondition(status *MachineConfigPoolStatus, condition MachineConfigPoolCondition)
SetMachineConfigPoolCondition updates the MachineConfigPool to include the provided condition. If the condition that we are about to add already exists and has the same status and reason then we are not going to update.
Types ¶
type ContainerRuntimeConfig ¶
type ContainerRuntimeConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ContainerRuntimeConfigSpec `json:"spec,omitempty"` Status ContainerRuntimeConfigStatus `json:"status,omitempty"` }
ContainerRuntimeConfig describes a customized Container Runtime configuration.
func (*ContainerRuntimeConfig) DeepCopy ¶
func (in *ContainerRuntimeConfig) DeepCopy() *ContainerRuntimeConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerRuntimeConfig.
func (*ContainerRuntimeConfig) DeepCopyInto ¶
func (in *ContainerRuntimeConfig) DeepCopyInto(out *ContainerRuntimeConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContainerRuntimeConfig) DeepCopyObject ¶
func (in *ContainerRuntimeConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContainerRuntimeConfigCondition ¶
type ContainerRuntimeConfigCondition struct { // type specifies the state of the operator's reconciliation functionality. Type ContainerRuntimeConfigStatusConditionType `json:"type"` // status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // lastTransitionTime is the time of the last update to the current status object. LastTransitionTime metav1.Time `json:"lastTransitionTime"` // reason is the reason for the condition's last transition. Reasons are CamelCase Reason string `json:"reason,omitempty"` // message provides additional information about the current condition. // This is only to be consumed by humans. Message string `json:"message,omitempty"` }
ContainerRuntimeConfigCondition defines the state of the ContainerRuntimeConfig
func NewContainerRuntimeConfigCondition ¶
func NewContainerRuntimeConfigCondition(condType ContainerRuntimeConfigStatusConditionType, status corev1.ConditionStatus, message string) *ContainerRuntimeConfigCondition
NewContainerRuntimeConfigCondition returns an instance of a ContainerRuntimeConfigCondition
func (*ContainerRuntimeConfigCondition) DeepCopy ¶
func (in *ContainerRuntimeConfigCondition) DeepCopy() *ContainerRuntimeConfigCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerRuntimeConfigCondition.
func (*ContainerRuntimeConfigCondition) DeepCopyInto ¶
func (in *ContainerRuntimeConfigCondition) DeepCopyInto(out *ContainerRuntimeConfigCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerRuntimeConfigList ¶
type ContainerRuntimeConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ContainerRuntimeConfig `json:"items"` }
ContainerRuntimeConfigList is a list of ContainerRuntimeConfig resources
func (*ContainerRuntimeConfigList) DeepCopy ¶
func (in *ContainerRuntimeConfigList) DeepCopy() *ContainerRuntimeConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerRuntimeConfigList.
func (*ContainerRuntimeConfigList) DeepCopyInto ¶
func (in *ContainerRuntimeConfigList) DeepCopyInto(out *ContainerRuntimeConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContainerRuntimeConfigList) DeepCopyObject ¶
func (in *ContainerRuntimeConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContainerRuntimeConfigSpec ¶
type ContainerRuntimeConfigSpec struct { MachineConfigPoolSelector *metav1.LabelSelector `json:"machineConfigPoolSelector,omitempty"` ContainerRuntimeConfig *ContainerRuntimeConfiguration `json:"containerRuntimeConfig,omitempty"` }
ContainerRuntimeConfigSpec defines the desired state of ContainerRuntimeConfig
func (*ContainerRuntimeConfigSpec) DeepCopy ¶
func (in *ContainerRuntimeConfigSpec) DeepCopy() *ContainerRuntimeConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerRuntimeConfigSpec.
func (*ContainerRuntimeConfigSpec) DeepCopyInto ¶
func (in *ContainerRuntimeConfigSpec) DeepCopyInto(out *ContainerRuntimeConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerRuntimeConfigStatus ¶
type ContainerRuntimeConfigStatus struct { // The generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Represents the latest available observations of current state. Conditions []ContainerRuntimeConfigCondition `json:"conditions"` }
ContainerRuntimeConfigStatus defines the observed state of a ContainerRuntimeConfig
func (*ContainerRuntimeConfigStatus) DeepCopy ¶
func (in *ContainerRuntimeConfigStatus) DeepCopy() *ContainerRuntimeConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerRuntimeConfigStatus.
func (*ContainerRuntimeConfigStatus) DeepCopyInto ¶
func (in *ContainerRuntimeConfigStatus) DeepCopyInto(out *ContainerRuntimeConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerRuntimeConfigStatusConditionType ¶
type ContainerRuntimeConfigStatusConditionType string
ContainerRuntimeConfigStatusConditionType is the state of the operator's reconciliation functionality.
const ( // ContainerRuntimeConfigSuccess designates a successful application of a ContainerRuntimeConfig CR. ContainerRuntimeConfigSuccess ContainerRuntimeConfigStatusConditionType = "Success" // ContainerRuntimeConfigFailure designates a failure applying a ContainerRuntimeConfig CR. ContainerRuntimeConfigFailure ContainerRuntimeConfigStatusConditionType = "Failure" )
type ContainerRuntimeConfiguration ¶
type ContainerRuntimeConfiguration struct { PidsLimit int64 `json:"pidsLimit,omitempty"` LogLevel string `json:"logLevel,omitempty"` LogSizeMax resource.Quantity `json:"logSizeMax,omitempty"` OverlaySize resource.Quantity `json:"overlaySize,omitempty"` }
ContainerRuntimeConfiguration defines the tuneables of the container runtime
func (*ContainerRuntimeConfiguration) DeepCopy ¶
func (in *ContainerRuntimeConfiguration) DeepCopy() *ContainerRuntimeConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerRuntimeConfiguration.
func (*ContainerRuntimeConfiguration) DeepCopyInto ¶
func (in *ContainerRuntimeConfiguration) DeepCopyInto(out *ContainerRuntimeConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerConfig ¶
type ControllerConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ControllerConfigSpec `json:"spec"` Status ControllerConfigStatus `json:"status"` }
ControllerConfig describes configuration for MachineConfigController. This is currently only used to drive the machineconfigs generated by the TemplateController.
func (*ControllerConfig) DeepCopy ¶
func (in *ControllerConfig) DeepCopy() *ControllerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerConfig.
func (*ControllerConfig) DeepCopyInto ¶
func (in *ControllerConfig) DeepCopyInto(out *ControllerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ControllerConfig) DeepCopyObject ¶
func (in *ControllerConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ControllerConfigList ¶
type ControllerConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ControllerConfig `json:"items"` }
ControllerConfigList is a list of ControllerConfig resources
func (*ControllerConfigList) DeepCopy ¶
func (in *ControllerConfigList) DeepCopy() *ControllerConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerConfigList.
func (*ControllerConfigList) DeepCopyInto ¶
func (in *ControllerConfigList) DeepCopyInto(out *ControllerConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ControllerConfigList) DeepCopyObject ¶
func (in *ControllerConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ControllerConfigSpec ¶
type ControllerConfigSpec struct { ClusterDNSIP string `json:"clusterDNSIP"` CloudProviderConfig string `json:"cloudProviderConfig"` // The openshift platform, e.g. "libvirt", "openstack", "aws", or "none" Platform string `json:"platform"` EtcdDiscoveryDomain string `json:"etcdDiscoveryDomain"` // CAs EtcdCAData []byte `json:"etcdCAData"` RootCAData []byte `json:"rootCAData"` // PullSecret is the default pull secret that needs to be installed // on all machines. PullSecret *corev1.ObjectReference `json:"pullSecret,omitempty"` // Public SSH SSHKey string `json:"sshKey"` // Images is map of images that are used by the controller. Images map[string]string `json:"images"` // Sourced from configmap/machine-config-osimageurl OSImageURL string `json:"osImageURL"` }
ControllerConfigSpec is the spec for ControllerConfig resource.
func (*ControllerConfigSpec) DeepCopy ¶
func (in *ControllerConfigSpec) DeepCopy() *ControllerConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerConfigSpec.
func (*ControllerConfigSpec) DeepCopyInto ¶
func (in *ControllerConfigSpec) DeepCopyInto(out *ControllerConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerConfigStatus ¶
type ControllerConfigStatus struct { // The generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Represents the latest available observations of current state. Conditions []ControllerConfigStatusCondition `json:"conditions"` }
ControllerConfigStatus is the status for ControllerConfig
func (*ControllerConfigStatus) DeepCopy ¶
func (in *ControllerConfigStatus) DeepCopy() *ControllerConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerConfigStatus.
func (*ControllerConfigStatus) DeepCopyInto ¶
func (in *ControllerConfigStatus) DeepCopyInto(out *ControllerConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerConfigStatusCondition ¶
type ControllerConfigStatusCondition struct { // type specifies the state of the operator's reconciliation functionality. Type ControllerConfigStatusConditionType `json:"type"` // status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // lastTransitionTime is the time of the last update to the current status object. LastTransitionTime metav1.Time `json:"lastTransitionTime"` // reason is the reason for the condition's last transition. Reasons are CamelCase Reason string `json:"reason,omitempty"` // message provides additional information about the current condition. // This is only to be consumed by humans. Message string `json:"message,omitempty"` }
ControllerConfigStatusCondition contains condition information for ControllerConfigStatus
func GetControllerConfigStatusCondition ¶
func GetControllerConfigStatusCondition(status ControllerConfigStatus, condType ControllerConfigStatusConditionType) *ControllerConfigStatusCondition
GetControllerConfigStatusCondition returns the condition with the provided type.
func NewControllerConfigStatusCondition ¶
func NewControllerConfigStatusCondition(condType ControllerConfigStatusConditionType, status corev1.ConditionStatus, reason, message string) *ControllerConfigStatusCondition
NewControllerConfigStatusCondition creates a new ControllerConfigStatus condition.
func (*ControllerConfigStatusCondition) DeepCopy ¶
func (in *ControllerConfigStatusCondition) DeepCopy() *ControllerConfigStatusCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerConfigStatusCondition.
func (*ControllerConfigStatusCondition) DeepCopyInto ¶
func (in *ControllerConfigStatusCondition) DeepCopyInto(out *ControllerConfigStatusCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerConfigStatusConditionType ¶
type ControllerConfigStatusConditionType string
ControllerConfigStatusConditionType valid conditions of a machineconfigpool
const ( TemplateContollerRunning ControllerConfigStatusConditionType = "TemplateContollerRunning" TemplateContollerCompleted ControllerConfigStatusConditionType = "TemplateContollerCompleted" TemplateContollerFailing ControllerConfigStatusConditionType = "TemplateContollerFailing" )
type KubeletConfig ¶
type KubeletConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KubeletConfigSpec `json:"spec,omitempty"` Status KubeletConfigStatus `json:"status,omitempty"` }
KubeletConfig describes a customized Kubelet configuration.
func (*KubeletConfig) DeepCopy ¶
func (in *KubeletConfig) DeepCopy() *KubeletConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeletConfig.
func (*KubeletConfig) DeepCopyInto ¶
func (in *KubeletConfig) DeepCopyInto(out *KubeletConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubeletConfig) DeepCopyObject ¶
func (in *KubeletConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubeletConfigCondition ¶
type KubeletConfigCondition struct { // type specifies the state of the operator's reconciliation functionality. Type KubeletConfigStatusConditionType `json:"type"` // status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // lastTransitionTime is the time of the last update to the current status object. LastTransitionTime metav1.Time `json:"lastTransitionTime"` // reason is the reason for the condition's last transition. Reasons are CamelCase Reason string `json:"reason,omitempty"` // message provides additional information about the current condition. // This is only to be consumed by humans. Message string `json:"message,omitempty"` }
KubeletConfigCondition defines the state of the KubeletConfig
func NewKubeletConfigCondition ¶
func NewKubeletConfigCondition(condType KubeletConfigStatusConditionType, status corev1.ConditionStatus, message string) *KubeletConfigCondition
NewKubeletConfigCondition returns an instance of a KubeletConfigCondition
func (*KubeletConfigCondition) DeepCopy ¶
func (in *KubeletConfigCondition) DeepCopy() *KubeletConfigCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeletConfigCondition.
func (*KubeletConfigCondition) DeepCopyInto ¶
func (in *KubeletConfigCondition) DeepCopyInto(out *KubeletConfigCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeletConfigList ¶
type KubeletConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []KubeletConfig `json:"items"` }
KubeletConfigList is a list of KubeletConfig resources
func (*KubeletConfigList) DeepCopy ¶
func (in *KubeletConfigList) DeepCopy() *KubeletConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeletConfigList.
func (*KubeletConfigList) DeepCopyInto ¶
func (in *KubeletConfigList) DeepCopyInto(out *KubeletConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubeletConfigList) DeepCopyObject ¶
func (in *KubeletConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubeletConfigSpec ¶
type KubeletConfigSpec struct { MachineConfigPoolSelector *metav1.LabelSelector `json:"machineConfigPoolSelector,omitempty"` KubeletConfig *kubeletconfigv1beta1.KubeletConfiguration `json:"kubeletConfig,omitempty"` }
KubeletConfigSpec defines the desired state of KubeletConfig
func (*KubeletConfigSpec) DeepCopy ¶
func (in *KubeletConfigSpec) DeepCopy() *KubeletConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeletConfigSpec.
func (*KubeletConfigSpec) DeepCopyInto ¶
func (in *KubeletConfigSpec) DeepCopyInto(out *KubeletConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeletConfigStatus ¶
type KubeletConfigStatus struct { // The generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Represents the latest available observations of current state. Conditions []KubeletConfigCondition `json:"conditions"` }
KubeletConfigStatus defines the observed state of a KubeletConfig
func (*KubeletConfigStatus) DeepCopy ¶
func (in *KubeletConfigStatus) DeepCopy() *KubeletConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeletConfigStatus.
func (*KubeletConfigStatus) DeepCopyInto ¶
func (in *KubeletConfigStatus) DeepCopyInto(out *KubeletConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeletConfigStatusConditionType ¶
type KubeletConfigStatusConditionType string
KubeletConfigStatusConditionType is the state of the operator's reconciliation functionality.
const ( // KubeletConfigSuccess designates a successful application of a KubeletConfig CR. KubeletConfigSuccess KubeletConfigStatusConditionType = "Success" // KubeletConfigFailure designates a failure applying a KubeletConfig CR. KubeletConfigFailure KubeletConfigStatusConditionType = "Failure" )
type MCOConfig ¶
type MCOConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MCOConfigSpec `json:"spec"` }
MCOConfig describes configuration for MachineConfigOperator.
func (*MCOConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCOConfig.
func (*MCOConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MCOConfig) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MCOConfigList ¶
type MCOConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []MCOConfig `json:"items"` }
MCOConfigList is a list of MCOConfig resources
func (*MCOConfigList) DeepCopy ¶
func (in *MCOConfigList) DeepCopy() *MCOConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCOConfigList.
func (*MCOConfigList) DeepCopyInto ¶
func (in *MCOConfigList) DeepCopyInto(out *MCOConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MCOConfigList) DeepCopyObject ¶
func (in *MCOConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MCOConfigSpec ¶
type MCOConfigSpec struct { }
MCOConfigSpec is the spec for MCOConfig resource.
func (*MCOConfigSpec) DeepCopy ¶
func (in *MCOConfigSpec) DeepCopy() *MCOConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCOConfigSpec.
func (*MCOConfigSpec) DeepCopyInto ¶
func (in *MCOConfigSpec) DeepCopyInto(out *MCOConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineConfig ¶
type MachineConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MachineConfigSpec `json:"spec"` }
MachineConfig defines the configuration for a machine
func MergeMachineConfigs ¶
func MergeMachineConfigs(configs []*MachineConfig) *MachineConfig
MergeMachineConfigs combines multiple machineconfig objects into one object. It sorts all the configs in increasing order of their name. It uses the Ign config from first object as base and appends all the rest. It uses the first non-empty OSImageURL.
func (*MachineConfig) DeepCopy ¶
func (in *MachineConfig) DeepCopy() *MachineConfig
DeepCopy copying the receiver, creating a new MachineConfig.
func (*MachineConfig) DeepCopyInto ¶
func (in *MachineConfig) DeepCopyInto(out *MachineConfig)
DeepCopyInto copying the receiver, writing into out. in must be non-nil.
func (*MachineConfig) DeepCopyObject ¶
func (in *MachineConfig) DeepCopyObject() runtime.Object
DeepCopyObject copying the receiver, creating a new runtime.Object.
type MachineConfigList ¶
type MachineConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []MachineConfig `json:"items"` }
MachineConfigList is a list of MachineConfig resources
func (*MachineConfigList) DeepCopy ¶
func (in *MachineConfigList) DeepCopy() *MachineConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfigList.
func (*MachineConfigList) DeepCopyInto ¶
func (in *MachineConfigList) DeepCopyInto(out *MachineConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineConfigList) DeepCopyObject ¶
func (in *MachineConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineConfigPool ¶
type MachineConfigPool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MachineConfigPoolSpec `json:"spec"` Status MachineConfigPoolStatus `json:"status"` }
MachineConfigPool describes a pool of MachineConfigs.
func (*MachineConfigPool) DeepCopy ¶
func (in *MachineConfigPool) DeepCopy() *MachineConfigPool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfigPool.
func (*MachineConfigPool) DeepCopyInto ¶
func (in *MachineConfigPool) DeepCopyInto(out *MachineConfigPool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineConfigPool) DeepCopyObject ¶
func (in *MachineConfigPool) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineConfigPoolCondition ¶
type MachineConfigPoolCondition struct { // Type of the condition, currently ('Done', 'Updating', 'Failed'). Type MachineConfigPoolConditionType `json:"type"` // Status of the condition, one of ('True', 'False', 'Unknown'). Status corev1.ConditionStatus `json:"status"` // LastTransitionTime is the timestamp corresponding to the last status // change of this condition. LastTransitionTime metav1.Time `json:"lastTransitionTime"` // Reason is a brief machine readable explanation for the condition's last // transition. Reason string `json:"reason"` // Message is a human readable description of the details of the last // transition, complementing reason. Message string `json:"message"` }
MachineConfigPoolCondition contains condition information for an MachineConfigPool.
func GetMachineConfigPoolCondition ¶
func GetMachineConfigPoolCondition(status MachineConfigPoolStatus, condType MachineConfigPoolConditionType) *MachineConfigPoolCondition
GetMachineConfigPoolCondition returns the condition with the provided type.
func NewMachineConfigPoolCondition ¶
func NewMachineConfigPoolCondition(condType MachineConfigPoolConditionType, status corev1.ConditionStatus, reason, message string) *MachineConfigPoolCondition
NewMachineConfigPoolCondition creates a new MachineConfigPool condition.
func (*MachineConfigPoolCondition) DeepCopy ¶
func (in *MachineConfigPoolCondition) DeepCopy() *MachineConfigPoolCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfigPoolCondition.
func (*MachineConfigPoolCondition) DeepCopyInto ¶
func (in *MachineConfigPoolCondition) DeepCopyInto(out *MachineConfigPoolCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineConfigPoolConditionType ¶
type MachineConfigPoolConditionType string
MachineConfigPoolConditionType valid conditions of a machineconfigpool
const ( // MachineConfigPoolUpdated means machineconfigpool is updated completely. // When the all the machines in the pool are updated to the correct machine config. MachineConfigPoolUpdated MachineConfigPoolConditionType = "Updated" // MachineConfigPoolUpdating means machineconfigpool is updating. // When at least one of machine is not either not updated or is in the process of updating // to the desired machine config. MachineConfigPoolUpdating MachineConfigPoolConditionType = "Updating" // MachineConfigPoolDegraded means the update for one of the machine is not progressing // due to an error MachineConfigPoolDegraded MachineConfigPoolConditionType = "Degraded" )
type MachineConfigPoolList ¶
type MachineConfigPoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []MachineConfigPool `json:"items"` }
MachineConfigPoolList is a list of MachineConfigPool resources
func (*MachineConfigPoolList) DeepCopy ¶
func (in *MachineConfigPoolList) DeepCopy() *MachineConfigPoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfigPoolList.
func (*MachineConfigPoolList) DeepCopyInto ¶
func (in *MachineConfigPoolList) DeepCopyInto(out *MachineConfigPoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineConfigPoolList) DeepCopyObject ¶
func (in *MachineConfigPoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineConfigPoolSpec ¶
type MachineConfigPoolSpec struct { // Label selector for MachineConfigs. // Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ on how label and selectors work. MachineConfigSelector *metav1.LabelSelector `json:"machineConfigSelector,omitempty"` // Label selector for Machines. MachineSelector *metav1.LabelSelector `json:"machineSelector,omitempty"` // If true, changes to this machine pool should be stopped. // This includes generating new desiredMachineConfig and update of machines. Paused bool `json:"paused"` // default is 1. MaxUnavailable *intstr.IntOrString `json:"maxUnavailable"` }
MachineConfigPoolSpec is the spec for MachineConfigPool resource.
func (*MachineConfigPoolSpec) DeepCopy ¶
func (in *MachineConfigPoolSpec) DeepCopy() *MachineConfigPoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfigPoolSpec.
func (*MachineConfigPoolSpec) DeepCopyInto ¶
func (in *MachineConfigPoolSpec) DeepCopyInto(out *MachineConfigPoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineConfigPoolStatus ¶
type MachineConfigPoolStatus struct { // The generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // The current MachineConfig object for the machine pool. Configuration MachineConfigPoolStatusConfiguration `json:"configuration"` // Total number of machines in the machine pool. MachineCount int32 `json:"machineCount"` // Total number of machines targeted by the pool that have the CurrentMachineConfig as their config. UpdatedMachineCount int32 `json:"updatedMachineCount"` // Total number of ready machines targeted by the pool. ReadyMachineCount int32 `json:"readyMachineCount"` // A node is marked unavailable if it is in updating state or NodeReady condition is false. UnavailableMachineCount int32 `json:"unavailableMachineCount"` // Represents the latest available observations of current state. Conditions []MachineConfigPoolCondition `json:"conditions"` }
MachineConfigPoolStatus is the status for MachineConfigPool resource.
func (*MachineConfigPoolStatus) DeepCopy ¶
func (in *MachineConfigPoolStatus) DeepCopy() *MachineConfigPoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfigPoolStatus.
func (*MachineConfigPoolStatus) DeepCopyInto ¶
func (in *MachineConfigPoolStatus) DeepCopyInto(out *MachineConfigPoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineConfigPoolStatusConfiguration ¶
type MachineConfigPoolStatusConfiguration struct { corev1.ObjectReference // source is the list of machineconfigs that were used to generate the single machineconfig object specified in `content`. // +optional Source []corev1.ObjectReference `json:"source,omitempty"` }
MachineConfigPoolStatusConfiguration stores the current configuration for the pool, and optionally also stores the list of machineconfig objects used to generate the configuration.
func (*MachineConfigPoolStatusConfiguration) DeepCopy ¶
func (in *MachineConfigPoolStatusConfiguration) DeepCopy() *MachineConfigPoolStatusConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineConfigPoolStatusConfiguration.
func (*MachineConfigPoolStatusConfiguration) DeepCopyInto ¶
func (in *MachineConfigPoolStatusConfiguration) DeepCopyInto(out *MachineConfigPoolStatusConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineConfigSpec ¶
type MachineConfigSpec struct { // OSImageURL specifies the remote location that will be used to // fetch the OS. OSImageURL string `json:"osImageURL"` // Config is a Ignition Config object. Config ignv2_2types.Config `json:"config"` }
MachineConfigSpec is the for MachineConfig
func (*MachineConfigSpec) DeepCopy ¶
func (in *MachineConfigSpec) DeepCopy() *MachineConfigSpec
DeepCopy copying the receiver, creating a new MachineConfigSpec.
func (*MachineConfigSpec) DeepCopyInto ¶
func (in *MachineConfigSpec) DeepCopyInto(out *MachineConfigSpec)
DeepCopyInto copying the receiver, writing into out. in must be non-nil.