Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the mongodb v1alpha1 API group +kubebuilder:object:generate=true +groupName=mongodb.operator.ibm.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "operator.ibm.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 Image ¶
type Image struct {
Tag string `json:"tag,omitempty"`
}
NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDB ¶
type MongoDB struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MongoDBSpec `json:"spec,omitempty"` Status MongoDBStatus `json:"status,omitempty"` }
MongoDB is the Schema for the mongodbs API +kubebuilder:subresource:status +kubebuilder:resource:path=mongodbs,scope=Namespaced
func (*MongoDB) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDB.
func (*MongoDB) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDB) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MongoDBList ¶
type MongoDBList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MongoDB `json:"items"` }
MongoDBList contains a list of MongoDB
func (*MongoDBList) DeepCopy ¶
func (in *MongoDBList) DeepCopy() *MongoDBList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBList.
func (*MongoDBList) DeepCopyInto ¶
func (in *MongoDBList) DeepCopyInto(out *MongoDBList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBList) DeepCopyObject ¶
func (in *MongoDBList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MongoDBPVCSpec ¶ added in v1.4.1
type MongoDBPVCSpec struct {
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}
MongoDBPVCSpec defines the desired state of the MongoDB PVCs
type MongoDBSpec ¶
type MongoDBSpec struct { ImageRegistry string `json:"imageRegistry,omitempty"` Replicas int `json:"replicas,omitempty"` StorageClass string `json:"storageClass,omitempty"` InitImage Image `json:"initImage,omitempty"` BootstrapImage Image `json:"bootstrapImage,omitempty"` MetricsImage Image `json:"metricsImage,omitempty"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` PVC MongoDBPVCSpec `json:"pvc,omitempty"` }
MongoDBSpec defines the desired state of MongoDB
func (*MongoDBSpec) DeepCopy ¶
func (in *MongoDBSpec) DeepCopy() *MongoDBSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBSpec.
func (*MongoDBSpec) DeepCopyInto ¶
func (in *MongoDBSpec) DeepCopyInto(out *MongoDBSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBStatus ¶
type MongoDBStatus struct {
StorageClass string `json:"storageClass,omitempty"`
}
MongoDBStatus defines the observed state of MongoDB
func (*MongoDBStatus) DeepCopy ¶
func (in *MongoDBStatus) DeepCopy() *MongoDBStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBStatus.
func (*MongoDBStatus) DeepCopyInto ¶
func (in *MongoDBStatus) DeepCopyInto(out *MongoDBStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.