Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the ndb v1alpha1 API group +kubebuilder:object:generate=true +groupName=ndb.nutanix.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "ndb.nutanix.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DatabaseSpec `json:"spec,omitempty"`
Status DatabaseStatus `json:"status,omitempty"`
}
Database is the Schema for the databases API +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:shortName={"db","dbs"} +kubebuilder:printcolumn:name="IP Address",type=string,JSONPath=`.status.ipAddress` +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.status` +kubebuilder:printcolumn:name="Type",type=string,JSONPath=`.status.type`
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) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseList ¶
type DatabaseList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Database `json:"items"`
}
+kubebuilder:object:root=true DatabaseList contains a list of Database
func (*DatabaseList) DeepCopy ¶
func (in *DatabaseList) DeepCopy() *DatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseList.
func (*DatabaseList) DeepCopyInto ¶
func (in *DatabaseList) DeepCopyInto(out *DatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseList) DeepCopyObject ¶
func (in *DatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseSpec ¶
DatabaseSpec defines the desired state of Database
func (*DatabaseSpec) DeepCopy ¶
func (in *DatabaseSpec) DeepCopy() *DatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseSpec.
func (*DatabaseSpec) DeepCopyInto ¶
func (in *DatabaseSpec) DeepCopyInto(out *DatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseStatus ¶
type DatabaseStatus struct {
IPAddress string `json:"ipAddress"`
Id string `json:"id"`
Status string `json:"status"`
DatabaseServerId string `json:"dbServerId"`
Type string `json:"type"`
}
DatabaseStatus defines the observed state of Database
func (*DatabaseStatus) DeepCopy ¶
func (in *DatabaseStatus) DeepCopy() *DatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseStatus.
func (*DatabaseStatus) DeepCopyInto ¶
func (in *DatabaseStatus) DeepCopyInto(out *DatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Instance ¶
type Instance struct {
// +kubebuilder:default:=database_instance_name
// Name of the database instance
DatabaseInstanceName string `json:"databaseInstanceName"`
// +kubebuilder:default:={"database_one", "database_two", "database_three"}
// +kubebuilder:validation:MinItems:=1
// Name of the database to be provisiond in the database instance
DatabaseNames []string `json:"databaseNames"`
// +kubebuilder:validation:Required
// Name of the secret holding the credentials for the database instance (password and ssh key)
CredentialSecret string `json:"credentialSecret"`
// +kubebuilder:validation:Minimum:=10
// +kubebuilder:default:=10
// +optional
// Size of the database instance
Size int `json:"size"`
// +kubebuilder:default:=UTC
// +optional
TimeZone string `json:"timezone"`
// +kubebuilder:validation:Enum=mysql;postgres;mongodb;mssql
// +kubebuilder:default:=postgres
Type string `json:"type"`
// +optional
Profiles Profiles `json:"profiles"`
}
Database instance specific details
func (*Instance) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Instance.
func (*Instance) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NDB ¶
type NDB struct {
// +kubebuilder:validation:Required
ClusterId string `json:"clusterId"`
// +kubebuilder:validation:Required
// Name of the secret holding the credentials for NDB (username and password)
CredentialSecret string `json:"credentialSecret"`
// +kubebuilder:validation:Required
Server string `json:"server"`
// +kubebuilder:default:=false
// +optional
// Skip server's certificate and hostname verification
SkipCertificateVerification bool `json:"skipCertificateVerification"`
}
Details of the NDB installation
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.
type Profile ¶
func (*Profile) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Profile.
func (*Profile) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Profiles ¶
type Profiles struct {
// +optional
Software Profile `json:"software"`
// +optional
Compute Profile `json:"compute"`
// +optional
Network Profile `json:"network"`
// +optional
DbParam Profile `json:"dbParam"`
// +optional
DbParamInstance Profile `json:"dbParamInstance"`
}
func (*Profiles) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Profiles.
func (*Profiles) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.