Documentation
¶
Index ¶
- func AdvancedDeploymentsEqual(log *zap.SugaredLogger, deploymentAtlas mongodbatlas.AdvancedCluster, ...) bool
- func DeploymentsEqual(log *zap.SugaredLogger, deploymentAtlas mongodbatlas.Cluster, ...) bool
- func GetAllDeploymentNames(client mongodbatlas.Client, projectID string) ([]string, error)
- func MergedAdvancedDeployment(advancedDeployment mongodbatlas.AdvancedCluster, ...) (mongodbatlas.AdvancedCluster, error)
- func MergedDeployment(atlasDeployment 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, deploymentAtlas mongodbatlas.AdvancedCluster, deploymentOperator mongodbatlas.AdvancedCluster) bool
AdvancedDeploymentsEqual compares two Atlas Advanced Deployments
func DeploymentsEqual ¶ added in v1.1.0
func DeploymentsEqual(log *zap.SugaredLogger, deploymentAtlas mongodbatlas.Cluster, deploymentOperator mongodbatlas.Cluster) bool
DeploymentsEqual compares two Atlas Deployments
func GetAllDeploymentNames ¶ added in v1.1.0
func GetAllDeploymentNames(client mongodbatlas.Client, projectID string) ([]string, error)
GetAllDeploymentNames returns all deployment names including regular and advanced deployment.
func MergedAdvancedDeployment ¶
func MergedAdvancedDeployment(advancedDeployment mongodbatlas.AdvancedCluster, spec mdbv1.AtlasDeploymentSpec) (mongodbatlas.AdvancedCluster, error)
MergedAdvancedDeployment will return the result of merging AtlasDeploymentSpec with Atlas Advanced Deployment
func MergedDeployment ¶ added in v1.1.0
func MergedDeployment(atlasDeployment mongodbatlas.Cluster, spec mdbv1.AtlasDeploymentSpec) (result mongodbatlas.Cluster, err error)
MergedDeployment will return the result of merging AtlasDeploymentSpec with Atlas Deployment
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.