v1alpha1

package
v0.0.0-...-ab0235b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: ndbcontroller.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

func (in *Ndb) DeepCopy() *Ndb

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ndb.

func (*Ndb) DeepCopyInto

func (in *Ndb) DeepCopyInto(out *Ndb)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Ndb) DeepCopyObject

func (in *Ndb) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Ndb) GetConfigMapName

func (ndb *Ndb) GetConfigMapName() string

func (*Ndb) GetDataNodeLabels

func (ndb *Ndb) GetDataNodeLabels() map[string]string

Ndb data node label ...

func (*Ndb) GetDataNodeServiceName

func (ndb *Ndb) GetDataNodeServiceName() string

func (*Ndb) GetLabels

func (ndb *Ndb) GetLabels() map[string]string

func (*Ndb) GetManagementNodeLabels

func (ndb *Ndb) GetManagementNodeLabels() map[string]string

Ndb management server label ...

func (*Ndb) GetManagementServiceName

func (ndb *Ndb) GetManagementServiceName() string

func (*Ndb) GetPodDisruptionBudgetName

func (ndb *Ndb) GetPodDisruptionBudgetName() string

func (*Ndb) IsConfigHashEqual

func (ndb *Ndb) IsConfigHashEqual() (string, bool, error)

comparing the stored hash with the newly calculated hash of the Spec we see if it changed

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

func (in *NdbList) DeepCopy() *NdbList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NdbList.

func (*NdbList) DeepCopyInto

func (in *NdbList) DeepCopyInto(out *NdbList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NdbList) DeepCopyObject

func (in *NdbList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NdbMgmdSpec

type NdbMgmdSpec struct {
	NodeCount *int32 `json:"nodecount"`
	Name      string `json:"name"`
}

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

type NdbMysqldSpec struct {
	NodeCount *int32 `json:"nodecount"`
	Name      string `json:"name"`
}

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

func (in *NdbSpec) DeepCopy() *NdbSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NdbSpec.

func (*NdbSpec) DeepCopyInto

func (in *NdbSpec) DeepCopyInto(out *NdbSpec)

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

func (in *NdbStatus) DeepCopy() *NdbStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NdbStatus.

func (*NdbStatus) DeepCopyInto

func (in *NdbStatus) DeepCopyInto(out *NdbStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL