atlascluster

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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