Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the knappek v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=knappek.com
Package v1alpha1 contains API Schema definitions for the knappek v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=knappek.com
Index ¶
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func IsMongoDBAtlasClusterToBeUpdated(m1 MongoDBAtlasClusterRequestBody, m2 MongoDBAtlasClusterRequestBody) bool
- func RegisterDefaults(scheme *runtime.Scheme) error
- type MongoDBAtlasCluster
- type MongoDBAtlasClusterList
- type MongoDBAtlasClusterRequestBody
- type MongoDBAtlasClusterSpec
- type MongoDBAtlasClusterStatus
- type MongoDBAtlasProject
- type MongoDBAtlasProjectList
- type MongoDBAtlasProjectSpec
- type MongoDBAtlasProjectStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "knappek.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func IsMongoDBAtlasClusterToBeUpdated ¶ added in v0.0.6
func IsMongoDBAtlasClusterToBeUpdated(m1 MongoDBAtlasClusterRequestBody, m2 MongoDBAtlasClusterRequestBody) bool
IsMongoDBAtlasClusterToBeUpdated is used to compare spec.MongoDBAtlasClusterRequestBody with status.MongoDBAtlasClusterRequestBody
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
Types ¶
type MongoDBAtlasCluster ¶
type MongoDBAtlasCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MongoDBAtlasClusterSpec `json:"spec,omitempty"` Status MongoDBAtlasClusterStatus `json:"status,omitempty"` }
MongoDBAtlasCluster is the Schema for the mongodbatlasclusters API +k8s:openapi-gen=true +kubebuilder:printcolumn:name="Project Name",type="string",JSONPath=".spec.projectName",description="The MongoDB Atlas Project where the cluster has been deployed" +kubebuilder:printcolumn:name="MongoDB_Version",type="string",JSONPath=".status.mongoDBVersion",description="The MongoDB version of the cluster" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.stateName",description="The status of the cluster" +kubebuilder:printcolumn:name="Region",type="string",JSONPath=".status.providerSettings.regionName",description="Physical location of your MongoDB cluster" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="Provider",type="string",JSONPath=".status.providerSettings.providerName",description="Cloud service provider on which the servers are provisioned",priority="1" +kubebuilder:printcolumn:name="ContinuousBackups",type="boolean",JSONPath=".status.backupEnabled",description="Set to true to enable Atlas continuous backups for the cluster",priority="1" +kubebuilder:printcolumn:name="ProviderBackups",type="boolean",JSONPath=".status.providerBackupEnabled",description="Flag indicating if the cluster uses Cloud Provider Snapshots for backups",priority="1" +kubebuilder:printcolumn:name="SRV_Address",type="string",JSONPath=".status.srvAddress",description="Connection string (DNS SRV Record) for connecting to the Atlas cluster",priority="1" +kubebuilder:subresource:status +kubebuilder:resource:path=mongodbatlasclusters,shortName=mac +kubebuilder:categories=all,mongodbatlas
func (*MongoDBAtlasCluster) DeepCopy ¶
func (in *MongoDBAtlasCluster) DeepCopy() *MongoDBAtlasCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBAtlasCluster.
func (*MongoDBAtlasCluster) DeepCopyInto ¶
func (in *MongoDBAtlasCluster) DeepCopyInto(out *MongoDBAtlasCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBAtlasCluster) DeepCopyObject ¶
func (in *MongoDBAtlasCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MongoDBAtlasClusterList ¶
type MongoDBAtlasClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MongoDBAtlasCluster `json:"items"` }
MongoDBAtlasClusterList contains a list of MongoDBAtlasCluster
func (*MongoDBAtlasClusterList) DeepCopy ¶
func (in *MongoDBAtlasClusterList) DeepCopy() *MongoDBAtlasClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBAtlasClusterList.
func (*MongoDBAtlasClusterList) DeepCopyInto ¶
func (in *MongoDBAtlasClusterList) DeepCopyInto(out *MongoDBAtlasClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBAtlasClusterList) DeepCopyObject ¶
func (in *MongoDBAtlasClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MongoDBAtlasClusterRequestBody ¶ added in v0.0.6
type MongoDBAtlasClusterRequestBody struct { MongoDBMajorVersion string `json:"mongoDBMajorVersion,omitempty"` DiskSizeGB float64 `json:"diskSizeGB,omitempty"` BackupEnabled bool `json:"backupEnabled"` ProviderBackupEnabled bool `json:"providerBackupEnabled"` // TODO: ReplicationSpec is deprecated, update to ReplicationSpecs. // This needs to be done in the Go clinet library first: https://github.com/akshaykarle/go-mongodbatlas ReplicationSpec map[string]ma.ReplicationSpec `json:"replicationSpec,omitempty"` NumShards int `json:"numShards,omitempty"` AutoScaling ma.AutoScaling `json:"autoScaling,omitempty"` ProviderSettings ma.ProviderSettings `json:"providerSettings,omitempty"` }
MongoDBAtlasClusterRequestBody defines the Request Body Parameters when creating/updating a cluster
func (*MongoDBAtlasClusterRequestBody) DeepCopy ¶ added in v0.0.6
func (in *MongoDBAtlasClusterRequestBody) DeepCopy() *MongoDBAtlasClusterRequestBody
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBAtlasClusterRequestBody.
func (*MongoDBAtlasClusterRequestBody) DeepCopyInto ¶ added in v0.0.6
func (in *MongoDBAtlasClusterRequestBody) DeepCopyInto(out *MongoDBAtlasClusterRequestBody)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBAtlasClusterSpec ¶
type MongoDBAtlasClusterSpec struct { ProjectName string `json:"projectName,project"` MongoDBAtlasClusterRequestBody `json:",inline"` }
MongoDBAtlasClusterSpec defines the desired state of MongoDBAtlasCluster +k8s:openapi-gen=true
func (*MongoDBAtlasClusterSpec) DeepCopy ¶
func (in *MongoDBAtlasClusterSpec) DeepCopy() *MongoDBAtlasClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBAtlasClusterSpec.
func (*MongoDBAtlasClusterSpec) DeepCopyInto ¶
func (in *MongoDBAtlasClusterSpec) DeepCopyInto(out *MongoDBAtlasClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBAtlasClusterStatus ¶
type MongoDBAtlasClusterStatus struct { ID string `json:"id,omitempty"` GroupID string `json:"groupID,omitempty"` Name string `json:"name,omitempty"` MongoDBAtlasClusterRequestBody `json:",inline"` MongoDBVersion string `json:"mongoDBVersion,omitempty"` MongoURI string `json:"mongoURI,omitempty"` MongoURIUpdated string `json:"mongoURIUpdated,omitempty"` MongoURIWithOptions string `json:"mongoURIWithOptions,omitempty"` SrvAddress string `json:"srvAddress,omitempty"` StateName string `json:"stateName,omitempty"` Paused bool `json:"paused"` }
MongoDBAtlasClusterStatus defines the observed state of MongoDBAtlasCluster +k8s:openapi-gen=true
func (*MongoDBAtlasClusterStatus) DeepCopy ¶
func (in *MongoDBAtlasClusterStatus) DeepCopy() *MongoDBAtlasClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBAtlasClusterStatus.
func (*MongoDBAtlasClusterStatus) DeepCopyInto ¶
func (in *MongoDBAtlasClusterStatus) DeepCopyInto(out *MongoDBAtlasClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBAtlasProject ¶
type MongoDBAtlasProject struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MongoDBAtlasProjectSpec `json:"spec,omitempty"` Status MongoDBAtlasProjectStatus `json:"status,omitempty"` }
MongoDBAtlasProject is the Schema for the mongodbatlasprojects API +k8s:openapi-gen=true +kubebuilder:printcolumn:name="OrgID",type="string",JSONPath=".spec.orgID",description="The MongoDB Atlas Organization ID" +kubebuilder:printcolumn:name="ClusterCount",type="integer",JSONPath=".status.clusterCount",description="The number of Clusters in the Project" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="ProjectID",type="string",JSONPath=".status.id",description="The ID of the Project",priority="1" +kubebuilder:subresource:status +kubebuilder:resource:path=mongodbatlasprojects,shortName=map +kubebuilder:categories=all,mongodbatlas
func (*MongoDBAtlasProject) DeepCopy ¶
func (in *MongoDBAtlasProject) DeepCopy() *MongoDBAtlasProject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBAtlasProject.
func (*MongoDBAtlasProject) DeepCopyInto ¶
func (in *MongoDBAtlasProject) DeepCopyInto(out *MongoDBAtlasProject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBAtlasProject) DeepCopyObject ¶
func (in *MongoDBAtlasProject) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MongoDBAtlasProjectList ¶
type MongoDBAtlasProjectList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MongoDBAtlasProject `json:"items"` }
MongoDBAtlasProjectList contains a list of MongoDBAtlasProject
func (*MongoDBAtlasProjectList) DeepCopy ¶
func (in *MongoDBAtlasProjectList) DeepCopy() *MongoDBAtlasProjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBAtlasProjectList.
func (*MongoDBAtlasProjectList) DeepCopyInto ¶
func (in *MongoDBAtlasProjectList) DeepCopyInto(out *MongoDBAtlasProjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBAtlasProjectList) DeepCopyObject ¶
func (in *MongoDBAtlasProjectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MongoDBAtlasProjectSpec ¶
type MongoDBAtlasProjectSpec struct {
OrgID string `json:"orgID"`
}
MongoDBAtlasProjectSpec defines the desired state of MongoDBAtlasProject +k8s:openapi-gen=true
func (*MongoDBAtlasProjectSpec) DeepCopy ¶
func (in *MongoDBAtlasProjectSpec) DeepCopy() *MongoDBAtlasProjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBAtlasProjectSpec.
func (*MongoDBAtlasProjectSpec) DeepCopyInto ¶
func (in *MongoDBAtlasProjectSpec) DeepCopyInto(out *MongoDBAtlasProjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBAtlasProjectStatus ¶
type MongoDBAtlasProjectStatus struct { ID string `json:"id"` Name string `json:"name"` OrgID string `json:"orgID"` Created string `json:"created"` ClusterCount int `json:"clusterCount"` }
MongoDBAtlasProjectStatus defines the observed state of MongoDBAtlasProject +k8s:openapi-gen=true
func (*MongoDBAtlasProjectStatus) DeepCopy ¶
func (in *MongoDBAtlasProjectStatus) DeepCopy() *MongoDBAtlasProjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBAtlasProjectStatus.
func (*MongoDBAtlasProjectStatus) DeepCopyInto ¶
func (in *MongoDBAtlasProjectStatus) DeepCopyInto(out *MongoDBAtlasProjectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.