Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the v1 API group +kubebuilder:object:generate=true +groupName=unagex.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "unagex.com", 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 DBSpec ¶
type DBSpec struct { // The image name to use for PostgreSQL containers. // +kubebuilder:default="postgres:latest" // +kubebuilder:validation:Optional Image string `json:"image,omitempty"` // ImagePullPolicy is used to determine when Kubernetes will attempt to // pull (download) container images. // +kubebuilder:validation:Enum={Always,Never,IfNotPresent} // +kubebuilder:default="IfNotPresent" // +kubebuilder:validation:Optional ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` // Number of desired PostgreSQL pods. // +kubebuilder:validation:Minimum=1 // +kubebuilder:default=1 // +kubebuilder:validation:Optional Replicas *int32 `json:"replicas,omitempty"` // Resources of the PostgreSQL container. // +kubebuilder:default={requests:{cpu: "100m", memory: "256Mi"}, limits:{cpu: "1", memory: "2Gi"}} // +kubebuilder:validation:Optional Resources corev1.ResourceRequirements `json:"resources,omitempty"` // +kubebuilder:validation:Required Volume VolumeSpec `json:"volume"` }
func (*DBSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBSpec.
func (*DBSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Metabase ¶
type Metabase struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec MetabaseSpec `json:"spec"` Status MetabaseStatus `json:"status,omitempty"` }
Metabase is the Schema for the metabases API
func (*Metabase) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metabase.
func (*Metabase) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Metabase) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetabaseList ¶
type MetabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Metabase `json:"items"` }
MetabaseList contains a list of Metabase
func (*MetabaseList) DeepCopy ¶
func (in *MetabaseList) DeepCopy() *MetabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetabaseList.
func (*MetabaseList) DeepCopyInto ¶
func (in *MetabaseList) DeepCopyInto(out *MetabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetabaseList) DeepCopyObject ¶
func (in *MetabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetabasePodSpec ¶
type MetabasePodSpec struct { // The image name to use for Metabase container. // +kubebuilder:default="metabase/metabase:latest" // +kubebuilder:validation:Optional Image string `json:"image,omitempty"` // ImagePullPolicy is used to determine when Kubernetes will attempt to // pull (download) container images. // +kubebuilder:validation:Enum={Always,Never,IfNotPresent} // +kubebuilder:default="IfNotPresent" // +kubebuilder:validation:Optional ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` // Resources of the metabase container. // +kubebuilder:default={requests:{cpu: "1", memory: "2Gi"}, limits:{cpu: "1", memory: "2Gi"}} // +kubebuilder:validation:Optional Resources corev1.ResourceRequirements `json:"resources,omitempty"` }
func (*MetabasePodSpec) DeepCopy ¶
func (in *MetabasePodSpec) DeepCopy() *MetabasePodSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetabasePodSpec.
func (*MetabasePodSpec) DeepCopyInto ¶
func (in *MetabasePodSpec) DeepCopyInto(out *MetabasePodSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetabaseSpec ¶
type MetabaseSpec struct { // +kubebuilder:validation:Required Metabase MetabasePodSpec `json:"metabase"` // +kubebuilder:validation:Required DB DBSpec `json:"db"` }
MetabaseSpec defines the desired state of Metabase
func (*MetabaseSpec) DeepCopy ¶
func (in *MetabaseSpec) DeepCopy() *MetabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetabaseSpec.
func (*MetabaseSpec) DeepCopyInto ¶
func (in *MetabaseSpec) DeepCopyInto(out *MetabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetabaseStatus ¶
type MetabaseStatus struct { // Instance ready to accept connections. // +kubebuilder:validation:default=false // +kubebuilder:validation:Required Ready bool `json:"ready"` // Host to connect to the metabase. // +kubebuilder:validation:Optional Host *string `json:"host"` }
MetabaseStatus defines the observed state of Metabase
func (*MetabaseStatus) DeepCopy ¶
func (in *MetabaseStatus) DeepCopy() *MetabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetabaseStatus.
func (*MetabaseStatus) DeepCopyInto ¶
func (in *MetabaseStatus) DeepCopyInto(out *MetabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeSpec ¶
type VolumeSpec struct { // StorageClassName defined for the volume. // +kubebuilder:validation:Optional StorageClassName *string `json:"storageClassName,omitempty"` // Size of the volume. // +kubebuilder:validation:default=10Gi // +kubebuilder:validation:Pattern=`^\d+(Gi|Gb|Ki|)$` // +kubebuilder:validation:Pattern=`^\d+(Ki|Mi|Gi|Ti|Pi|Ei|m|k|M|G|T|P|E)$` // +kubebuilder:validation:Required Size string `json:"size"` }
func (*VolumeSpec) DeepCopy ¶
func (in *VolumeSpec) DeepCopy() *VolumeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSpec.
func (*VolumeSpec) DeepCopyInto ¶
func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.