Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the kataconfiguration v1 API group +kubebuilder:object:generate=true +groupName=kataconfiguration.openshift.io
Index ¶
- Variables
- type FailedNodeStatus
- type KataConfig
- type KataConfigCompletedStatus
- type KataConfigList
- type KataConfigSpec
- type KataConfigStatus
- type KataFailedNodeStatus
- type KataInstallConfig
- type KataInstallationInProgressStatus
- type KataInstallationStatus
- type KataUnInstallationInProgressStatus
- type KataUnInstallationStatus
- type KataUpgradeStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "kataconfiguration.openshift.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type FailedNodeStatus ¶
type FailedNodeStatus struct {
// Name of the failed node
Name string `json:"name"`
// Error message of the failed node reported by the installation daemon
Error string `json:"error"`
}
FailedNodeStatus holds the name and the error message of the failed node
func (*FailedNodeStatus) DeepCopy ¶
func (in *FailedNodeStatus) DeepCopy() *FailedNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailedNodeStatus.
func (*FailedNodeStatus) DeepCopyInto ¶
func (in *FailedNodeStatus) DeepCopyInto(out *FailedNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KataConfig ¶
type KataConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +optional
// +nullable
Spec KataConfigSpec `json:"spec,omitempty"`
Status KataConfigStatus `json:"status,omitempty"`
}
KataConfig is the Schema for the kataconfigs API +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path=kataconfigs,scope=Cluster
func (*KataConfig) DeepCopy ¶
func (in *KataConfig) DeepCopy() *KataConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataConfig.
func (*KataConfig) DeepCopyInto ¶
func (in *KataConfig) DeepCopyInto(out *KataConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KataConfig) DeepCopyObject ¶
func (in *KataConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KataConfigCompletedStatus ¶
type KataConfigCompletedStatus struct {
// CompletedNodesCount reflects the number of nodes that have completed kata operation
CompletedNodesCount int `json:"completedNodesCount,omitempty"`
// CompletedNodesList reflects the list of nodes that have completed kata operation
// +optional
CompletedNodesList []string `json:"completedNodesList,omitempty"`
}
KataConfigCompletedStatus reflects the status of nodes that have completed kata operation
func (*KataConfigCompletedStatus) DeepCopy ¶
func (in *KataConfigCompletedStatus) DeepCopy() *KataConfigCompletedStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataConfigCompletedStatus.
func (*KataConfigCompletedStatus) DeepCopyInto ¶
func (in *KataConfigCompletedStatus) DeepCopyInto(out *KataConfigCompletedStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KataConfigList ¶
type KataConfigList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []KataConfig `json:"items"`
}
KataConfigList contains a list of KataConfig
func (*KataConfigList) DeepCopy ¶
func (in *KataConfigList) DeepCopy() *KataConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataConfigList.
func (*KataConfigList) DeepCopyInto ¶
func (in *KataConfigList) DeepCopyInto(out *KataConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KataConfigList) DeepCopyObject ¶
func (in *KataConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KataConfigSpec ¶
type KataConfigSpec struct {
// KataConfigPoolSelector is used to filer the worker nodes
// if not specified, all worker nodes are selected
// +optional
// +nullable
KataConfigPoolSelector *metav1.LabelSelector `json:"kataConfigPoolSelector"`
// +optional
Config KataInstallConfig `json:"config"`
}
KataConfigSpec defines the desired state of KataConfig
func (*KataConfigSpec) DeepCopy ¶
func (in *KataConfigSpec) DeepCopy() *KataConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataConfigSpec.
func (*KataConfigSpec) DeepCopyInto ¶
func (in *KataConfigSpec) DeepCopyInto(out *KataConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KataConfigStatus ¶
type KataConfigStatus struct {
// RuntimeClass is the name of the runtime class used in CRIO configuration
RuntimeClass string `json:"runtimeClass"`
// KataImage is the image used for delivering kata binaries
KataImage string `json:"kataImage"`
// TotalNodesCounts is the total number of worker nodes targeted by this CR
TotalNodesCount int `json:"totalNodesCount"`
// InstallationStatus reflects the status of the ongoing kata installation
// +optional
InstallationStatus KataInstallationStatus `json:"installationStatus,omitempty"`
// UnInstallationStatus reflects the status of the ongoing kata uninstallation
// +optional
UnInstallationStatus KataUnInstallationStatus `json:"unInstallationStatus,omitempty"`
// Upgradestatus reflects the status of the ongoing kata upgrade
// +optional
Upgradestatus KataUpgradeStatus `json:"upgradeStatus,omitempty"`
BaseMcpGeneration int64 `json:"prevMcpGeneration"`
}
KataConfigStatus defines the observed state of KataConfig
func (*KataConfigStatus) DeepCopy ¶
func (in *KataConfigStatus) DeepCopy() *KataConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataConfigStatus.
func (*KataConfigStatus) DeepCopyInto ¶
func (in *KataConfigStatus) DeepCopyInto(out *KataConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KataFailedNodeStatus ¶
type KataFailedNodeStatus struct {
// FailedNodesCount reflects the number of nodes that have failed kata operation
FailedNodesCount int `json:"failedNodesCount,omitempty"`
FailedReason string `json:"failedNodesReason,omitempty"`
// FailedNodesList reflects the list of nodes that have failed kata operation
// +optional
FailedNodesList []FailedNodeStatus `json:"failedNodesList,omitempty"`
}
KataFailedNodeStatus reflects the status of nodes that have failed kata operation
func (*KataFailedNodeStatus) DeepCopy ¶
func (in *KataFailedNodeStatus) DeepCopy() *KataFailedNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataFailedNodeStatus.
func (*KataFailedNodeStatus) DeepCopyInto ¶
func (in *KataFailedNodeStatus) DeepCopyInto(out *KataFailedNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KataInstallConfig ¶
type KataInstallConfig struct {
// SourceImage is the name of the kata-deploy image
SourceImage string `json:"sourceImage"`
}
KataInstallConfig is a placeholder struct
func (*KataInstallConfig) DeepCopy ¶
func (in *KataInstallConfig) DeepCopy() *KataInstallConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataInstallConfig.
func (*KataInstallConfig) DeepCopyInto ¶
func (in *KataInstallConfig) DeepCopyInto(out *KataInstallConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KataInstallationInProgressStatus ¶
type KataInstallationInProgressStatus struct {
// InProgressNodesCount reflects the number of nodes that are in the process of kata installation
InProgressNodesCount int `json:"inProgressNodesCount,omitempty"`
// IsInProgress reflects if installation is still in progress
IsInProgress bool `json:"isInProgress,omitempty"`
// +optional
BinariesInstalledNodesList []string `json:"binariesInstallNodesList,omitempty"`
}
KataInstallationInProgressStatus reflects the status of nodes that are in the process of kata installation
func (*KataInstallationInProgressStatus) DeepCopy ¶
func (in *KataInstallationInProgressStatus) DeepCopy() *KataInstallationInProgressStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataInstallationInProgressStatus.
func (*KataInstallationInProgressStatus) DeepCopyInto ¶
func (in *KataInstallationInProgressStatus) DeepCopyInto(out *KataInstallationInProgressStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KataInstallationStatus ¶
type KataInstallationStatus struct {
// InProgress reflects the status of nodes that are in the process of kata installation
InProgress KataInstallationInProgressStatus `json:"inprogress,omitempty"`
// IsInProgress reflects the current state of installing or not installing
IsInProgress corev1.ConditionStatus `json:"IsInProgress,omit"`
// Completed reflects the status of nodes that have completed kata installation
Completed KataConfigCompletedStatus `json:"completed,omitempty"`
// Failed reflects the status of nodes that have failed kata installation
Failed KataFailedNodeStatus `json:"failed,omitempty"`
}
KataInstallationStatus reflects the status of the ongoing kata installation
func (*KataInstallationStatus) DeepCopy ¶
func (in *KataInstallationStatus) DeepCopy() *KataInstallationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataInstallationStatus.
func (*KataInstallationStatus) DeepCopyInto ¶
func (in *KataInstallationStatus) DeepCopyInto(out *KataInstallationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KataUnInstallationInProgressStatus ¶
type KataUnInstallationInProgressStatus struct {
InProgressNodesCount int `json:"inProgressNodesCount,omitempty"`
IsInProgress corev1.ConditionStatus `json:"status"`
// +optional
BinariesUnInstalledNodesList []string `json:"binariesUninstallNodesList,omitempty"`
}
KataUnInstallationInProgressStatus reflects the status of nodes that are in the process of kata installation
func (*KataUnInstallationInProgressStatus) DeepCopy ¶
func (in *KataUnInstallationInProgressStatus) DeepCopy() *KataUnInstallationInProgressStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataUnInstallationInProgressStatus.
func (*KataUnInstallationInProgressStatus) DeepCopyInto ¶
func (in *KataUnInstallationInProgressStatus) DeepCopyInto(out *KataUnInstallationInProgressStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KataUnInstallationStatus ¶
type KataUnInstallationStatus struct {
// InProgress reflects the status of nodes that are in the process of kata uninstallation
InProgress KataUnInstallationInProgressStatus `json:"inProgress,omitempty"`
// Completed reflects the status of nodes that have completed kata uninstallation
Completed KataConfigCompletedStatus `json:"completed,omitempty"`
// Failed reflects the status of nodes that have failed kata uninstallation
Failed KataFailedNodeStatus `json:"failed,omitempty"`
// Stores an error message if any. Note that this is currently meant for a single
// failure source when kata uninstallation is blocked by existing kata-based pods, so
// handling of this field in the controller code is correspondingly simple. A review
// might be necessary if this field were ever to store messages coming from another
// source.
ErrorMessage string `json:"errorMessage,omitempty"`
}
KataUnInstallationStatus reflects the status of the ongoing kata uninstallation
func (*KataUnInstallationStatus) DeepCopy ¶
func (in *KataUnInstallationStatus) DeepCopy() *KataUnInstallationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataUnInstallationStatus.
func (*KataUnInstallationStatus) DeepCopyInto ¶
func (in *KataUnInstallationStatus) DeepCopyInto(out *KataUnInstallationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KataUpgradeStatus ¶
type KataUpgradeStatus struct {
}
KataUpgradeStatus reflects the status of the ongoing kata upgrade
func (*KataUpgradeStatus) DeepCopy ¶
func (in *KataUpgradeStatus) DeepCopy() *KataUpgradeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KataUpgradeStatus.
func (*KataUpgradeStatus) DeepCopyInto ¶
func (in *KataUpgradeStatus) DeepCopyInto(out *KataUpgradeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.