Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the rainbond v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=rainbond.io
Package v1alpha1 contains API Schema definitions for the rainbond v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=rainbond.io
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Resource(resource string) schema.GroupResource
- type ConditionStatus
- type ControllerStatus
- type ControllerType
- type Database
- type EtcdConfig
- type FstabLine
- type ImageHub
- type InstallMode
- type KubeletConfig
- type LogLevel
- type NodeAvailPorts
- type RainbondCluster
- type RainbondClusterCondition
- type RainbondClusterConditionType
- type RainbondClusterList
- type RainbondClusterPhase
- type RainbondClusterSpec
- type RainbondClusterStatus
- type RainbondPackage
- type RainbondPackageList
- type RainbondPackagePhase
- type RainbondPackageSpec
- type RainbondPackageStatus
- type RbdComponent
- func (in *RbdComponent) DeepCopy() *RbdComponent
- func (in *RbdComponent) DeepCopyInto(out *RbdComponent)
- func (in *RbdComponent) DeepCopyObject() runtime.Object
- func (in *RbdComponent) GetLabels() map[string]string
- func (in *RbdComponent) ImagePullPolicy() corev1.PullPolicy
- func (in *RbdComponent) LogLevel() LogLevel
- type RbdComponentList
- type RbdComponentSpec
- type RbdComponentStatus
- type StorageClass
Constants ¶
const ( // InstallationModeWithPackage means some Rainbond images are from the specified image repository, some are from the installation package. InstallationModeWithPackage InstallMode = "WithPackage" // InstallationModeWithoutPackage means all Rainbond images are from the specified image repository, not the installation package. InstallationModeWithoutPackage InstallMode = "WithoutPackage" // LoadBalancerWidth is the width how we describe load balancer LoadBalancerWidth = 16 // LabelNodeRolePrefix is a label prefix for node roles // It's copied over to here until it's merged in core: https://github.com/kubernetes/kubernetes/pull/39112 LabelNodeRolePrefix = "node-role.kubernetes.io/" // NodeLabelRole specifies the role of a node NodeLabelRole = "kubernetes.io/role" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "rainbond.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} AddToScheme = SchemeBuilder.AddToScheme )
var RainbondClusterPhase2Range = map[RainbondClusterPhase]int{ RainbondClusterWaiting: 0, RainbondClusterPreparing: 1, RainbondClusterPackageProcessing: 2, RainbondClusterPending: 3, RainbondClusterRunning: 4, }
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource gets an EtcdCluster GroupResource for a specified resource
Types ¶
type ConditionStatus ¶
type ConditionStatus string
ConditionStatus condition status
const ( ConditionTrue ConditionStatus = "True" ConditionFalse ConditionStatus = "False" ConditionUnknown ConditionStatus = "Unknown" )
These are valid condition statuses. "ConditionTrue" means a resource is in the condition. "ConditionFalse" means a resource is not in the condition. "ConditionUnknown" means rainbond operator can't decide if a resource is in the condition or not.
type ControllerStatus ¶
type ControllerStatus struct { Name string `json:"name,omitempty"` Replicas int32 `json:"replicas,omitempty"` ReadyReplicas int32 `json:"readyReplicas,omitempty"` }
func (*ControllerStatus) DeepCopy ¶
func (in *ControllerStatus) DeepCopy() *ControllerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerStatus.
func (*ControllerStatus) DeepCopyInto ¶
func (in *ControllerStatus) DeepCopyInto(out *ControllerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerType ¶
type ControllerType string
ControllerType -
const ( // ControllerTypeDeployment - ControllerTypeDeployment ControllerType = "deployment" // ControllerTypeDaemonSet - ControllerTypeDaemonSet ControllerType = "daemonset" // ControllerTypeStatefulSet - ControllerTypeStatefulSet ControllerType = "statefuleset" // ControllerTypeUnknown - ControllerTypeUnknown ControllerType = "unknown" )
func (ControllerType) String ¶
func (c ControllerType) String() string
type Database ¶
type Database struct { Host string `json:"host,omitempty"` Port int `json:"port,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
Database defines the connection information of database.
func (*Database) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Database.
func (*Database) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Database) RegionDataSource ¶
type EtcdConfig ¶
type EtcdConfig struct { // Endpoints is a list of URLs. Endpoints []string `json:"endpoints,omitempty"` // Whether to use tls to connect to etcd SecretName string `json:"secretName,omitempty"` }
EtcdConfig defines the configuration of etcd client.
func (*EtcdConfig) DeepCopy ¶
func (in *EtcdConfig) DeepCopy() *EtcdConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdConfig.
func (*EtcdConfig) DeepCopyInto ¶
func (in *EtcdConfig) DeepCopyInto(out *EtcdConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FstabLine ¶
type FstabLine struct { FileSystem string `json:"fileSystem,omitempty"` MountPoint string `json:"mountPoint,omitempty"` Type string `json:"type,omitempty"` Options string `json:"options,omitempty"` Dump int `json:"dump,omitempty"` Pass int `json:"pass,omitempty"` }
FstabLine represents a line in file /etc/fstab.
func (*FstabLine) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FstabLine.
func (*FstabLine) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageHub ¶
type ImageHub struct { Domain string `json:"domain,omitempty"` Namespace string `json:"namespace,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
ImageHub image hub
func (*ImageHub) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageHub.
func (*ImageHub) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeletConfig ¶
type KubeletConfig struct { // Whether to use tls to connect to etcd SecretName string `json:"secretName,omitempty"` }
KubeletConfig defines the configuration of kubelet.
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.
type NodeAvailPorts ¶
type NodeAvailPorts struct { NodeName string `json:"nodeName,omitempty"` NodeIP string `json:"nodeIP,omitempty"` Ports []int `json:"ports,omitempty"` }
NodeAvailPorts node avail port
func (*NodeAvailPorts) DeepCopy ¶
func (in *NodeAvailPorts) DeepCopy() *NodeAvailPorts
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeAvailPorts.
func (*NodeAvailPorts) DeepCopyInto ¶
func (in *NodeAvailPorts) DeepCopyInto(out *NodeAvailPorts)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RainbondCluster ¶
type RainbondCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RainbondClusterSpec `json:"spec,omitempty"` Status *RainbondClusterStatus `json:"status,omitempty"` }
RainbondCluster is the Schema for the rainbondclusters API +kubebuilder:subresource:status +kubebuilder:resource:path=rainbondclusters,scope=Namespaced
func (*RainbondCluster) DeepCopy ¶
func (in *RainbondCluster) DeepCopy() *RainbondCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RainbondCluster.
func (*RainbondCluster) DeepCopyInto ¶
func (in *RainbondCluster) DeepCopyInto(out *RainbondCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RainbondCluster) DeepCopyObject ¶
func (in *RainbondCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RainbondCluster) GatewayIngressIP ¶
func (in *RainbondCluster) GatewayIngressIP() string
type RainbondClusterCondition ¶
type RainbondClusterCondition struct { // Type is the type of the condition. Type RainbondClusterConditionType `json:"type"` // Status is the status of the condition. Status ConditionStatus `json:"status"` // Last time we probed the condition. // +optional LastProbeTime *metav1.Time `json:"lastProbeTime,omitempty"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` // Unique, one-word, CamelCase reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // Human-readable message indicating details about last transition. // +optional Message string `json:"message,omitempty"` }
RainbondClusterCondition contains details for the current condition of this rainbondcluster.
func (*RainbondClusterCondition) DeepCopy ¶
func (in *RainbondClusterCondition) DeepCopy() *RainbondClusterCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RainbondClusterCondition.
func (*RainbondClusterCondition) DeepCopyInto ¶
func (in *RainbondClusterCondition) DeepCopyInto(out *RainbondClusterCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RainbondClusterConditionType ¶
type RainbondClusterConditionType string
RainbondClusterConditionType is a valid value for RainbondClusterConditionType.Type
const ( // StorageReady indicates whether the storage is ready. StorageReady RainbondClusterConditionType = "StorageReady" // ImageRepositoryReady indicates whether the image repository is ready. ImageRepositoryInstalled RainbondClusterConditionType = "ImageRepositoryInstalled" // PackageExtracted indicates whether the installation package has been decompressed. PackageExtracted RainbondClusterConditionType = "PackageExtracted" // ImagesPushed means that all images from the installation package has been pushed successfully. ImagesPushed RainbondClusterConditionType = "ImagesPushed" )
These are valid conditions of rainbondcluster.
type RainbondClusterList ¶
type RainbondClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RainbondCluster `json:"items"` }
RainbondClusterList contains a list of RainbondCluster
func (*RainbondClusterList) DeepCopy ¶
func (in *RainbondClusterList) DeepCopy() *RainbondClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RainbondClusterList.
func (*RainbondClusterList) DeepCopyInto ¶
func (in *RainbondClusterList) DeepCopyInto(out *RainbondClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RainbondClusterList) DeepCopyObject ¶
func (in *RainbondClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RainbondClusterPhase ¶
type RainbondClusterPhase string
RainbondClusterPhase is a label for the condition of a rainbondcluster at the current time.
const ( // RainbondClusterWaiting - RainbondClusterWaiting RainbondClusterPhase = "Waiting" // RainbondClusterPreparing - RainbondClusterPreparing RainbondClusterPhase = "Preparing" // RainbondClusterPackageProcessing means the installation package is being processed. RainbondClusterPackageProcessing RainbondClusterPhase = "PackageProcessing" // RainbondClusterRunning means all of the rainbond components has been created. // And at least one component is not ready. RainbondClusterPending RainbondClusterPhase = "Pending" // RainbondClusterRunning means all of the rainbond components has been created. // For each component controller(eg. deploy, sts, ds), at least one Pod is already Ready. RainbondClusterRunning RainbondClusterPhase = "Running" )
These are the valid statuses of rainbondcluster.
type RainbondClusterSpec ¶
type RainbondClusterSpec struct { // Domain name of the image repository which Rainbond is installed // Default goodrain.me // +optional RainbondImageRepositoryDomain string `json:"rainbondImageRepositoryHost,omitempty"` // Suffix of component default domain name SuffixHTTPHost string `json:"suffixHTTPHost"` // Ingress IP addresses of rbd-gateway. If not specified, // the IP of the node where the rbd-gateway is located will be used. GatewayIngressIPs []string `json:"gatewayIngressIPs,omitempty"` // Information about the node where the gateway is located. // If not specified, the gateway will run on nodes where all ports do not conflict. GatewayNodes []NodeAvailPorts `json:"gatewayNodes,omitempty"` // InstallMode is the mode of Rainbond cluster installation. InstallMode InstallMode `json:"installMode,omitempty"` ImageHub *ImageHub `json:"imageHub,omitempty"` // the storage class that rainbond component will be used. // rainbond-operator will create one if StorageClassName is empty StorageClassName string `json:"storageClassName,omitempty"` // the region database information that rainbond component will be used. // rainbond-operator will create one if DBInfo is empty RegionDatabase *Database `json:"regionDatabase,omitempty"` // the ui database information that rainbond component will be used. // rainbond-operator will create one if DBInfo is empty UIDatabase *Database `json:"uiDatabase,omitempty"` // the etcd connection information that rainbond component will be used. // rainbond-operator will create one if EtcdConfig is empty EtcdConfig *EtcdConfig `json:"etcdConfig,omitempty"` KubeletConfig *KubeletConfig `json:"kubeletConfig,omitempty"` Version string `json:"version,omitempty"` FstabLines []FstabLine `json:"fstabLines,omitempty"` }
RainbondClusterSpec defines the desired state of RainbondCluster
func (*RainbondClusterSpec) DeepCopy ¶
func (in *RainbondClusterSpec) DeepCopy() *RainbondClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RainbondClusterSpec.
func (*RainbondClusterSpec) DeepCopyInto ¶
func (in *RainbondClusterSpec) DeepCopyInto(out *RainbondClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RainbondClusterStatus ¶
type RainbondClusterStatus struct { // Rainbond cluster phase Phase RainbondClusterPhase `json:"phase,omitempty"` Conditions []RainbondClusterCondition `json:"conditions,omitempty"` // A human readable message indicating details about why the pod is in this condition. // +optional Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` // A brief CamelCase message indicating details about why the pod is in this state. // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // +optional NodeAvailPorts []*NodeAvailPorts `json:"NodeAvailPorts,omitempty"` // List of existing StorageClasses in the cluster // +optional StorageClasses []*StorageClass `json:"storageClasses,omitempty"` // Destination path of the installation package extraction. PkgDestPath string `json:"pkgDestPath"` // A list of controller statuses associated with rbdcomponent. ControllerStatues []*ControllerStatus `json:"controllerStatus,omitempty"` MasterRoleLabel string `json:"masterRoleLabel,omitempty"` }
RainbondClusterStatus defines the observed state of RainbondCluster
func (*RainbondClusterStatus) DeepCopy ¶
func (in *RainbondClusterStatus) DeepCopy() *RainbondClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RainbondClusterStatus.
func (*RainbondClusterStatus) DeepCopyInto ¶
func (in *RainbondClusterStatus) DeepCopyInto(out *RainbondClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RainbondClusterStatus) MasterNodeLabel ¶
func (in *RainbondClusterStatus) MasterNodeLabel() map[string]string
type RainbondPackage ¶
type RainbondPackage struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RainbondPackageSpec `json:"spec,omitempty"` Status *RainbondPackageStatus `json:"status,omitempty"` }
RainbondPackage is the Schema for the rainbondpackages API +kubebuilder:subresource:status +kubebuilder:resource:path=rainbondpackages,scope=Namespaced
func (*RainbondPackage) DeepCopy ¶
func (in *RainbondPackage) DeepCopy() *RainbondPackage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RainbondPackage.
func (*RainbondPackage) DeepCopyInto ¶
func (in *RainbondPackage) DeepCopyInto(out *RainbondPackage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RainbondPackage) DeepCopyObject ¶
func (in *RainbondPackage) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RainbondPackageList ¶
type RainbondPackageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RainbondPackage `json:"items"` }
RainbondPackageList contains a list of RainbondPackage
func (*RainbondPackageList) DeepCopy ¶
func (in *RainbondPackageList) DeepCopy() *RainbondPackageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RainbondPackageList.
func (*RainbondPackageList) DeepCopyInto ¶
func (in *RainbondPackageList) DeepCopyInto(out *RainbondPackageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RainbondPackageList) DeepCopyObject ¶
func (in *RainbondPackageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RainbondPackagePhase ¶
type RainbondPackagePhase string
RainbondPackagePhase is a label for the condition of a rainbondcluster at the current time.
const ( // RainbondPackageFailed meas an unknown error occurred while processing the installation package RainbondPackageFailed RainbondPackagePhase = "Failed" // RainbondPackageWaiting means waiting for prerequisites to be ready RainbondPackageWaiting RainbondPackagePhase = "Waiting" // RainbondPackageExtracting means that the prerequisites are in place // and the installation package is being extracted. RainbondPackageExtracting RainbondPackagePhase = "Extracting" // RainbondPackageLoading means that the installation package has been extracted // and the image is being loaded to the host. RainbondPackageLoading RainbondPackagePhase = "Loading" // RainbondPackagePushing means that the image has been loaded, // and the image is being pushed to the private image repository. RainbondPackagePushing RainbondPackagePhase = "Pushing" // RainbondPackageCompleted the processing of the installation package has been completed, // including extracting the package, loading the images, and pushing the images. RainbondPackageCompleted RainbondPackagePhase = "Completed" )
These are the valid statuses of rainbondcluster.
type RainbondPackageSpec ¶
type RainbondPackageSpec struct { // The path where the rainbond package is located. PkgPath string `json:"pkgPath"` }
RainbondPackageSpec defines the desired state of RainbondPackage
func (*RainbondPackageSpec) DeepCopy ¶
func (in *RainbondPackageSpec) DeepCopy() *RainbondPackageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RainbondPackageSpec.
func (*RainbondPackageSpec) DeepCopyInto ¶
func (in *RainbondPackageSpec) DeepCopyInto(out *RainbondPackageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RainbondPackageStatus ¶
type RainbondPackageStatus struct { // The phase of a RainbondPackage is a simple, high-level summary of where the Pod is in its lifecycle. // The conditions array, the reason and message fields, and the individual container status // arrays contain more detail about the pod's status. // +optional Phase RainbondPackagePhase `json:"phase,omitempty"` // A human readable message indicating details about why the pod is in this condition. // +optional Message string `json:"message,omitempty"` // A brief CamelCase message indicating details about why the pod is in this state. // +optional Reason string `json:"reason,omitempty"` FilesNumber int32 `json:"filesNumber,omitempty"` NumberExtracted int32 `json:"numberExtracted,omitempty"` // The number of images that should be load and pushed. ImagesNumber int32 `json:"imagesNumber"` // ImagesPushed contains the images have been pushed. ImagesPushed map[string]struct{} `json:"imagesPushed,omitempty"` }
RainbondPackageStatus defines the observed state of RainbondPackage
func (*RainbondPackageStatus) DeepCopy ¶
func (in *RainbondPackageStatus) DeepCopy() *RainbondPackageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RainbondPackageStatus.
func (*RainbondPackageStatus) DeepCopyInto ¶
func (in *RainbondPackageStatus) DeepCopyInto(out *RainbondPackageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RbdComponent ¶
type RbdComponent struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RbdComponentSpec `json:"spec,omitempty"` Status *RbdComponentStatus `json:"status,omitempty"` }
RbdComponent is the Schema for the rbdcomponents API +kubebuilder:subresource:status +kubebuilder:resource:path=rbdcomponents,scope=Namespaced
func (*RbdComponent) DeepCopy ¶
func (in *RbdComponent) DeepCopy() *RbdComponent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RbdComponent.
func (*RbdComponent) DeepCopyInto ¶
func (in *RbdComponent) DeepCopyInto(out *RbdComponent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RbdComponent) DeepCopyObject ¶
func (in *RbdComponent) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RbdComponent) GetLabels ¶
func (in *RbdComponent) GetLabels() map[string]string
func (*RbdComponent) ImagePullPolicy ¶
func (in *RbdComponent) ImagePullPolicy() corev1.PullPolicy
func (*RbdComponent) LogLevel ¶
func (in *RbdComponent) LogLevel() LogLevel
type RbdComponentList ¶
type RbdComponentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RbdComponent `json:"items"` }
RbdComponentList contains a list of RbdComponent
func (*RbdComponentList) DeepCopy ¶
func (in *RbdComponentList) DeepCopy() *RbdComponentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RbdComponentList.
func (*RbdComponentList) DeepCopyInto ¶
func (in *RbdComponentList) DeepCopyInto(out *RbdComponentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RbdComponentList) DeepCopyObject ¶
func (in *RbdComponentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RbdComponentSpec ¶
type RbdComponentSpec struct { // Number of desired pods. This is a pointer to distinguish between explicit // zero and not specified. Defaults to 1. // +optional Replicas *int32 `json:"replicas,omitempty"` // type of rainbond component Type string `json:"type,omitempty"` // version of rainbond component Version string `json:"version,omitempty"` LogLevel LogLevel `json:"logLevel,omitempty"` // Docker image name. Image string `json:"image,omitempty"` // Image pull policy. // One of Always, Never, IfNotPresent. // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. // Cannot be updated. ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` PackagePath string `json:"packagePath,omitempty"` }
RbdComponentSpec defines the desired state of RbdComponent
func (*RbdComponentSpec) DeepCopy ¶
func (in *RbdComponentSpec) DeepCopy() *RbdComponentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RbdComponentSpec.
func (*RbdComponentSpec) DeepCopyInto ¶
func (in *RbdComponentSpec) DeepCopyInto(out *RbdComponentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RbdComponentStatus ¶
type RbdComponentStatus struct { // Type of Controller owned by RbdComponent ControllerType ControllerType `json:"controllerType"` // ControllerName represents the Controller associated with RbdComponent // The controller could be Deployment, StatefulSet or DaemonSet ControllerName string `json:"controllerName"` PackageExtracted bool `json:"packageExtracted"` ImagesLoaded bool `json:"imagesLoaded"` ImagesPushed bool `json:"imagesPushed"` Reason string `json:"reason"` Message string `json:"message"` }
RbdComponentStatus defines the observed state of RbdComponent
func (*RbdComponentStatus) DeepCopy ¶
func (in *RbdComponentStatus) DeepCopy() *RbdComponentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RbdComponentStatus.
func (*RbdComponentStatus) DeepCopyInto ¶
func (in *RbdComponentStatus) DeepCopyInto(out *RbdComponentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageClass ¶
StorageClass storage class
func (*StorageClass) DeepCopy ¶
func (in *StorageClass) DeepCopy() *StorageClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass.
func (*StorageClass) DeepCopyInto ¶
func (in *StorageClass) DeepCopyInto(out *StorageClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.