Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Ndb
- func (in *Ndb) DeepCopy() *Ndb
- func (in *Ndb) DeepCopyInto(out *Ndb)
- func (in *Ndb) DeepCopyObject() runtime.Object
- func (ndb *Ndb) GetConfigMapName() string
- func (ndb *Ndb) GetDataNodeLabels() map[string]string
- func (ndb *Ndb) GetDataNodeServiceName() string
- func (ndb *Ndb) GetLabels() map[string]string
- func (ndb *Ndb) GetManagementNodeLabels() map[string]string
- func (ndb *Ndb) GetManagementServiceName() string
- func (ndb *Ndb) GetPodDisruptionBudgetName() string
- func (ndb *Ndb) IsConfigHashEqual() (string, bool, error)
- type NdbList
- type NdbMgmdSpec
- type NdbMysqldSpec
- type NdbNdbdSpec
- type NdbSpec
- type NdbStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: ndbcontroller.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 Ndb ¶
type Ndb struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NdbSpec `json:"spec"` Status NdbStatus `json:"status"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status Ndb is a specification for a Ndb resource
func (*Ndb) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ndb.
func (*Ndb) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Ndb) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Ndb) GetConfigMapName ¶
func (*Ndb) GetDataNodeLabels ¶
Ndb data node label ...
func (*Ndb) GetDataNodeServiceName ¶
func (*Ndb) GetManagementNodeLabels ¶
Ndb management server label ...
func (*Ndb) GetManagementServiceName ¶
func (*Ndb) GetPodDisruptionBudgetName ¶
type NdbList ¶
type NdbList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Ndb `json:"items"` }
NdbList is a list of Ndb resources
func (*NdbList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NdbList.
func (*NdbList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NdbList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NdbMgmdSpec ¶
func (*NdbMgmdSpec) DeepCopy ¶
func (in *NdbMgmdSpec) DeepCopy() *NdbMgmdSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NdbMgmdSpec.
func (*NdbMgmdSpec) DeepCopyInto ¶
func (in *NdbMgmdSpec) DeepCopyInto(out *NdbMgmdSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NdbMysqldSpec ¶
func (*NdbMysqldSpec) DeepCopy ¶
func (in *NdbMysqldSpec) DeepCopy() *NdbMysqldSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NdbMysqldSpec.
func (*NdbMysqldSpec) DeepCopyInto ¶
func (in *NdbMysqldSpec) DeepCopyInto(out *NdbMysqldSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NdbNdbdSpec ¶
type NdbNdbdSpec struct { NoOfReplicas *int32 `json:"noofreplicas"` NodeCount *int32 `json:"nodecount"` Name string `json:"deploymentName"` }
func (*NdbNdbdSpec) DeepCopy ¶
func (in *NdbNdbdSpec) DeepCopy() *NdbNdbdSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NdbNdbdSpec.
func (*NdbNdbdSpec) DeepCopyInto ¶
func (in *NdbNdbdSpec) DeepCopyInto(out *NdbNdbdSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NdbSpec ¶
type NdbSpec struct { DeploymentName string `json:"deploymentname"` Mgmd NdbMgmdSpec `json:"mgmd"` Ndbd NdbNdbdSpec `json:"ndbd"` Mysqld NdbMysqldSpec `json:"mysqld"` // Config allows a user to specify a custom configuration file for MySQL. // +optional Config *corev1.LocalObjectReference `json:"config,omitempty"` }
NdbSpec is the spec for a Ndb resource
func (*NdbSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NdbSpec.
func (*NdbSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NdbStatus ¶
type NdbStatus struct { ProcessedGeneration int64 `json:"processedGeneration,omitempty"` LastUpdate metav1.Time `json:"lastUpdate,omitempty"` /* here we store the config hash of every new generation of a spec that we received and thus acknowledged */ ReceivedConfigHash string `json:"receivedConfigHash,omitempty"` }
NdbStatus is the status for a Ndb resource
func (*NdbStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NdbStatus.
func (*NdbStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.