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