Documentation ¶
Index ¶
Constants ¶
const (
ClusterCRDResourceKind = "BrokerCluster"
)
const GroupName = "rocketmq.huanwei.io"
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type BrokerCluster ¶
type BrokerCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec BrokerClusterSpec `json:"spec"` Status BrokerClusterStatus `json:"status"` }
func (*BrokerCluster) DeepCopy ¶
func (in *BrokerCluster) DeepCopy() *BrokerCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BrokerCluster.
func (*BrokerCluster) DeepCopyInto ¶
func (in *BrokerCluster) DeepCopyInto(out *BrokerCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BrokerCluster) DeepCopyObject ¶
func (in *BrokerCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BrokerCluster) EnsureDefaults ¶
func (c *BrokerCluster) EnsureDefaults() *BrokerCluster
EnsureDefaults will ensure that if a user omits and fields in the spec that are required, we set some sensible defaults. For example a user can choose to omit the version and number of members.
type BrokerClusterCondition ¶
type BrokerClusterCondition struct { Type BrokerClusterConditionType Status corev1.ConditionStatus LastTransitionTime metav1.Time Reason string Message string }
func (*BrokerClusterCondition) DeepCopy ¶
func (in *BrokerClusterCondition) DeepCopy() *BrokerClusterCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BrokerClusterCondition.
func (*BrokerClusterCondition) DeepCopyInto ¶
func (in *BrokerClusterCondition) DeepCopyInto(out *BrokerClusterCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BrokerClusterConditionType ¶
type BrokerClusterConditionType string
const BrokerClusterReady BrokerClusterConditionType = "Ready"
type BrokerClusterList ¶
type BrokerClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []BrokerCluster `json:"items"` }
func (*BrokerClusterList) DeepCopy ¶
func (in *BrokerClusterList) DeepCopy() *BrokerClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BrokerClusterList.
func (*BrokerClusterList) DeepCopyInto ¶
func (in *BrokerClusterList) DeepCopyInto(out *BrokerClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BrokerClusterList) DeepCopyObject ¶
func (in *BrokerClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BrokerClusterSpec ¶
type BrokerClusterSpec struct { ContainerSpec NameServers string `json:"nameServers"` AllMaster bool `json:"allMaster` ReplicationMode string `json:"replicationMode` GroupReplica int32 `json:"groupReplica,omitempty"` MembersPerGroup int32 `json:"membersPerGroup,omitempty"` StorageClassName string `json:"storageClassName,omitempty"` Properties map[string]string `json:"properties,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Affinity *corev1.Affinity `json:"affinity,omitempty"` VolumeClaimTemplate *corev1.PersistentVolumeClaim `json:"volumeClaimTemplate,omitempty"` Config *corev1.LocalObjectReference `json:"config,omitempty"` }
func (*BrokerClusterSpec) DeepCopy ¶
func (in *BrokerClusterSpec) DeepCopy() *BrokerClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BrokerClusterSpec.
func (*BrokerClusterSpec) DeepCopyInto ¶
func (in *BrokerClusterSpec) DeepCopyInto(out *BrokerClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BrokerClusterStatus ¶
type BrokerClusterStatus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Conditions []BrokerClusterCondition }
func (*BrokerClusterStatus) DeepCopy ¶
func (in *BrokerClusterStatus) DeepCopy() *BrokerClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BrokerClusterStatus.
func (*BrokerClusterStatus) DeepCopyInto ¶
func (in *BrokerClusterStatus) DeepCopyInto(out *BrokerClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerSpec ¶ added in v0.1.2
type ContainerSpec struct { BrokerImage string `json:"brokerImage"` Requests *ResourceRequirement `json:"requests,omitempty"` Limits *ResourceRequirement `json:"limits,omitempty"` }
func (*ContainerSpec) DeepCopy ¶ added in v0.1.2
func (in *ContainerSpec) DeepCopy() *ContainerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerSpec.
func (*ContainerSpec) DeepCopyInto ¶ added in v0.1.2
func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRequirement ¶ added in v0.1.2
type ResourceRequirement struct { CPU string `json:"cpu,omitempty"` Memory string `json:"memory,omitempty"` LogStorage string `json:"logStorage,omitempty"` StoreStorage string `json:"storeStorage,omitempty"` }
func (*ResourceRequirement) DeepCopy ¶ added in v0.1.2
func (in *ResourceRequirement) DeepCopy() *ResourceRequirement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequirement.
func (*ResourceRequirement) DeepCopyInto ¶ added in v0.1.2
func (in *ResourceRequirement) DeepCopyInto(out *ResourceRequirement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.