atlasdeployment

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

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

Delete implements a handler for the Delete event.

func (*AtlasDeploymentReconciler) Reconcile

func (r *AtlasDeploymentReconciler) Reconcile(context context.Context, req ctrl.Request) (ctrl.Result, error)

func (*AtlasDeploymentReconciler) SetupWithManager

func (r *AtlasDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL