Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=example.com
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Amqp
- type AmqpList
- type ClusteringMode
- type Condition
- type ConditionType
- type ConfigMap
- type Phase
- type Placement
- type PlacementSpec
- type PodPolicy
- type QueueSpec
- type Rabbitmq
- type RabbitmqList
- type ResourceSpec
- type Spec
- type Status
Constants ¶
const ( CustomResourceGroup = "example.com" Version = "v1alpha1" CustomResourceKind = "Rabbitmq" )
Variables ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: samplecontroller.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Amqp ¶
type Amqp struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec QueueSpec `json:"spec"` }
func (*Amqp) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Amqp.
func (*Amqp) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Amqp) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AmqpList ¶
type AmqpList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Amqp `json:"items"` }
func (*AmqpList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AmqpList.
func (*AmqpList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AmqpList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusteringMode ¶
type ClusteringMode string
const ( PeerDiscovery_K8s ClusteringMode = "Peer_Discovery_K8s" Native ClusteringMode = "Native" None ClusteringMode = "None" )
type Condition ¶
type Condition struct { Type ConditionType `json:"type"` Reason string `json:"reason,omitempty"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionType ¶
type ConditionType string
const ( ConditionAddSeedMaster ConditionType = "AddingSeedMaster" ConditionRemoveSeedMaster ConditionType = "removingSeedMaster" ConditionJoinMaster ConditionType = "JoiningMaster" ConditionRemoveMaster ConditionType = "removingMaster" ConditionAddSlave ConditionType = "AddingSlave" ConditionRemoveSlave ConditionType = "removingSlave" ConditionReady ConditionType = "Ready" )
type Placement ¶
type Placement struct { metav1.TypeMeta `json:",inline"` NodeAffinity *v1.NodeAffinity `json:"nodeAffinity,omitempty"` PodAffinity *v1.PodAffinity `json:"podAffinity,omitempty"` PodAntiAffinity *v1.PodAntiAffinity `json:"podAntiAffinity,omitempty"` Tolerations []v1.Toleration `json:"tolerations,omitemtpy"` }
Placement encapsulates the various kubernetes options that control where pods are scheduled and executed.
func (*Placement) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Placement.
func (*Placement) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Placement) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PlacementSpec ¶
type PlacementSpec struct { metav1.TypeMeta `json:",inline"` All Placement `json:"all,omitempty"` API Placement `json:"api,omitempty"` SERVER Placement `json:"server,omitempty"` }
func (*PlacementSpec) DeepCopy ¶
func (in *PlacementSpec) DeepCopy() *PlacementSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlacementSpec.
func (*PlacementSpec) DeepCopyInto ¶
func (in *PlacementSpec) DeepCopyInto(out *PlacementSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PlacementSpec) DeepCopyObject ¶
func (in *PlacementSpec) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodPolicy ¶
type PodPolicy struct {
Resources v1.ResourceRequirements `json:"resources,omitempty"`
}
func (*PodPolicy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPolicy.
func (*PodPolicy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueueSpec ¶
type QueueSpec struct { Count *int32 `json:"count,omitempty"` StatefulSetName string `json:"statefulSetName,omitempty"` ServiceName string `json:"serviceName,omitempty"` Mode ClusteringMode `json:"mode,omitempty"` Image string `json:"image,omitempty"` // The path on the host where config and data can be persisted. DataDirHostPath string `json:"dataDirHostPath,omitempty"` // The placement-related configuration to pass to kubernetes (affinity, node selector, tolerations). Placement PlacementSpec `json:"placement,omitempty"` // HostNetwork to enable host network HostNetwork bool `json:"hostNetwork,omitempty"` // Resources set resource requests and limits Resources ResourceSpec `json:"resources,omitempty"` }
func (*QueueSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueueSpec.
func (*QueueSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Rabbitmq ¶
type Rabbitmq struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec Spec `json:"spec"` Status Status `json:"status"` }
func (*Rabbitmq) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rabbitmq.
func (*Rabbitmq) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rabbitmq) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RabbitmqList ¶
type RabbitmqList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata metav1.ListMeta `json:"metadata,omitempty"` Items []Rabbitmq `json:"items"` }
func (*RabbitmqList) DeepCopy ¶
func (in *RabbitmqList) DeepCopy() *RabbitmqList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqList.
func (*RabbitmqList) DeepCopyInto ¶
func (in *RabbitmqList) DeepCopyInto(out *RabbitmqList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RabbitmqList) DeepCopyObject ¶
func (in *RabbitmqList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceSpec ¶
type ResourceSpec struct { API v1.ResourceRequirements `json:"api,omitempty"` SERVER v1.ResourceRequirements `json:"server,omitempty"` }
func (*ResourceSpec) DeepCopy ¶
func (in *ResourceSpec) DeepCopy() *ResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSpec.
func (*ResourceSpec) DeepCopyInto ¶
func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Spec ¶
type Spec struct { Count *int32 `json:"count,omitempty"` Mode ClusteringMode `json:"mode,omitempty"` StatefulSetName string `json:"statefulSetName,omitempty"` ServiceName string `json:"serviceName,omitempty"` Pod *PodPolicy `json:"pod,omitempty"` }
func (*Spec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec.
func (*Spec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Status ¶
type Status struct { Phase Phase `json:"phase"` Conditions []Condition `json:"conditions"` Ready []string `json:"ready,omitempty"` Unready []string `json:"unready,omitempty"` }
func (*Status) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.