Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the dbaas v1 API group +kubebuilder:object:generate=true +groupName=dbaas.bedag.ch
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "dbaas.bedag.ch", Version: "v1"} // 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 KubernetesDbaas ¶
type KubernetesDbaas struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec KubernetesDbaasSpec `json:"spec,omitempty"`
Status KubernetesDbaasStatus `json:"status,omitempty"`
}
KubernetesDbaas is the Schema for the kubernetesdbaas API
func (*KubernetesDbaas) DeepCopy ¶
func (in *KubernetesDbaas) DeepCopy() *KubernetesDbaas
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesDbaas.
func (*KubernetesDbaas) DeepCopyInto ¶
func (in *KubernetesDbaas) DeepCopyInto(out *KubernetesDbaas)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubernetesDbaas) DeepCopyObject ¶
func (in *KubernetesDbaas) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubernetesDbaasList ¶
type KubernetesDbaasList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []KubernetesDbaas `json:"items"`
}
KubernetesDbaasList contains a list of KubernetesDbaas
func (*KubernetesDbaasList) DeepCopy ¶
func (in *KubernetesDbaasList) DeepCopy() *KubernetesDbaasList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesDbaasList.
func (*KubernetesDbaasList) DeepCopyInto ¶
func (in *KubernetesDbaasList) DeepCopyInto(out *KubernetesDbaasList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubernetesDbaasList) DeepCopyObject ¶
func (in *KubernetesDbaasList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubernetesDbaasSpec ¶
type KubernetesDbaasSpec struct {
// Provisioner identifies the type of system responsible for provisioning resources (must be supported)
Provisioner string `json:"provisioner,omitempty"`
// Endpoint associates this resource with a particular endpoint (must be already configured on the operator side)
Endpoint string `json:"endpoint,omitempty"`
// Params is a map containing parameters to be mapped to the database instance
Params map[string]string `json:"params,omitempty"`
}
KubernetesDbaasSpec defines the desired state of KubernetesDbaas.
Important: Run "make" to regenerate code after modifying this file. Json tags are required.
func (*KubernetesDbaasSpec) DeepCopy ¶
func (in *KubernetesDbaasSpec) DeepCopy() *KubernetesDbaasSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesDbaasSpec.
func (*KubernetesDbaasSpec) DeepCopyInto ¶
func (in *KubernetesDbaasSpec) DeepCopyInto(out *KubernetesDbaasSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubernetesDbaasStatus ¶
type KubernetesDbaasStatus struct {
// LastError if not nil, the resource in an error state
LastError string `json:"lastError,omitempty"`
// LastUpdate specifies the last time the Status field has been updated
LastUpdate string `json:"lastUpdate,omitempty"`
// LastErrorUpdateCount specifies how many times the LastError field has been updated
LastErrorUpdateCount int `json:"lastErrorUpdateCount,omitempty"`
// If Unrecoverable is set to true, the controller was unable to fix the issue by itself
//
// TODO: Do something like 'kubectl get pods', i.e. create a set of state and enable users to print column with the current state
Unrecoverable bool `json:"unrecoverable,omitempty"`
}
KubernetesDbaasStatus defines the observed state of KubernetesDbaas.
func (*KubernetesDbaasStatus) DeepCopy ¶
func (in *KubernetesDbaasStatus) DeepCopy() *KubernetesDbaasStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesDbaasStatus.
func (*KubernetesDbaasStatus) DeepCopyInto ¶
func (in *KubernetesDbaasStatus) DeepCopyInto(out *KubernetesDbaasStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.