atlascluster

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

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

Delete implements a handler for the Delete event.

func (*AtlasClusterReconciler) Reconcile

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

func (*AtlasClusterReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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