atlasdeployment

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexTypeVector = "vectorSearch"
	IndexTypeSearch = "search"
)
View Source
const (
	SPEStatusDeleting  = "DELETING"
	SPEStatusReserved  = "RESERVED"
	SPEStatusAvailable = "AVAILABLE"
)

Status transitions: RESERVATION_REQUESTED -> RESERVED -> INITIATING -> AVAILABLE -> DELETING I assume FAILED state can be reach from any other state transition

View Source
const FreeTier = "M0"
View Source
const (
	IndexStatusActive = "STEADY"
)

Variables

This section is empty.

Functions

func EnsureCustomZoneMapping

func EnsureCustomZoneMapping(service *workflow.Context, groupID string, customZoneMappings []akov2.CustomZoneMapping, deploymentName string) workflow.Result

func EnsureManagedNamespaces

func EnsureManagedNamespaces(service *workflow.Context, groupID string, clusterType string, managedNamespace []akov2.ManagedNamespace, deploymentName string) workflow.Result

func GetGlobalDeploymentState

func GetGlobalDeploymentState(ctx context.Context, client mongodbatlas.GlobalClustersService, groupID string, deploymentName string) ([]mongodbatlas.ManagedNamespace, map[string]string, error)

Types

type AtlasDeploymentReconciler

type AtlasDeploymentReconciler struct {
	Client                      client.Client
	Log                         *zap.SugaredLogger
	Scheme                      *runtime.Scheme
	GlobalPredicates            []predicate.Predicate
	EventRecorder               record.EventRecorder
	AtlasProvider               atlas.Provider
	ObjectDeletionProtection    bool
	SubObjectDeletionProtection bool
	// contains filtered or unexported fields
}

AtlasDeploymentReconciler reconciles an AtlasDeployment object

func NewAtlasDeploymentReconciler added in v2.3.1

func NewAtlasDeploymentReconciler(
	mgr manager.Manager,
	predicates []predicate.Predicate,
	atlasProvider atlas.Provider,
	deletionProtection bool,
	independentSyncPeriod time.Duration,
	logger *zap.Logger,
) *AtlasDeploymentReconciler

func (*AtlasDeploymentReconciler) Reconcile

func (*AtlasDeploymentReconciler) SetupWithManager

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

type NamespaceDiff

type NamespaceDiff struct {
	ToCreate       []mongodbatlas.ManagedNamespace
	ToDelete       []mongodbatlas.ManagedNamespace
	ToUpdateStatus []mongodbatlas.ManagedNamespace
}

Jump to

Keyboard shortcuts

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