Documentation
¶
Index ¶
- func AdvancedDeploymentsEqual(log *zap.SugaredLogger, clusterAtlas mongodbatlas.AdvancedCluster, ...) bool
- func ClustersEqual(log *zap.SugaredLogger, clusterAtlas mongodbatlas.Cluster, ...) bool
- func GetAllClusterNames(client mongodbatlas.Client, projectID string) ([]string, error)
- func MergedAdvancedDeployment(advancedCluster mongodbatlas.AdvancedCluster, spec mdbv1.AtlasDeploymentSpec) (mongodbatlas.AdvancedCluster, error)
- func MergedCluster(atlasCluster mongodbatlas.Cluster, spec mdbv1.AtlasDeploymentSpec) (result mongodbatlas.Cluster, err error)
- type AtlasDeploymentReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdvancedDeploymentsEqual ¶
func AdvancedDeploymentsEqual(log *zap.SugaredLogger, clusterAtlas mongodbatlas.AdvancedCluster, clusterOperator mongodbatlas.AdvancedCluster) bool
AdvancedDeploymentsEqual compares two Atlas Advanced Clusters
func ClustersEqual ¶
func ClustersEqual(log *zap.SugaredLogger, clusterAtlas mongodbatlas.Cluster, clusterOperator mongodbatlas.Cluster) bool
ClustersEqual compares two Atlas Clusters
func GetAllClusterNames ¶
func GetAllClusterNames(client mongodbatlas.Client, projectID string) ([]string, error)
GetAllClusterNames returns all cluster names including regular and advanced clusters.
func MergedAdvancedDeployment ¶
func MergedAdvancedDeployment(advancedCluster mongodbatlas.AdvancedCluster, spec mdbv1.AtlasDeploymentSpec) (mongodbatlas.AdvancedCluster, error)
MergedAdvancedDeployment will return the result of merging AtlasDeploymentSpec with Atlas Advanced Cluster
func MergedCluster ¶
func MergedCluster(atlasCluster mongodbatlas.Cluster, spec mdbv1.AtlasDeploymentSpec) (result mongodbatlas.Cluster, err error)
MergedCluster will return the result of merging AtlasDeploymentSpec with Atlas Cluster
Types ¶
type AtlasDeploymentReconciler ¶
type AtlasDeploymentReconciler struct { watch.ResourceWatcher Client client.Client Log *zap.SugaredLogger Scheme *runtime.Scheme AtlasDomain string GlobalAPISecret client.ObjectKey GlobalPredicates []predicate.Predicate EventRecorder record.EventRecorder }
AtlasDeploymentReconciler reconciles an AtlasDeployment object
func (*AtlasDeploymentReconciler) Delete ¶
func (r *AtlasDeploymentReconciler) Delete(e event.DeleteEvent) error
Delete implements a handler for the Delete event.
func (*AtlasDeploymentReconciler) SetupWithManager ¶
func (r *AtlasDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.