Documentation
¶
Index ¶
- Constants
- func AdvancedDeploymentFromAtlas(advancedDeployment mongodbatlas.AdvancedCluster) (mdbv1.AdvancedDeploymentSpec, error)
- func AdvancedDeploymentsEqual(log *zap.SugaredLogger, deploymentAtlas mdbv1.AdvancedDeploymentSpec, ...) bool
- func CompareInstanceSizes(is1 InstanceSize, is2 InstanceSize) int
- func DeploymentsEqual(log *zap.SugaredLogger, deploymentAtlas mongodbatlas.Cluster, ...) bool
- func EnsureCustomZoneMapping(service *workflow.Context, groupID string, ...) workflow.Result
- func EnsureManagedNamespaces(service *workflow.Context, groupID string, clusterType string, ...) workflow.Result
- func GetAllDeploymentNames(client mongodbatlas.Client, projectID string) ([]string, error)
- func GetGlobalDeploymentState(ctx context.Context, client mongodbatlas.GlobalClustersService, groupID string, ...) ([]mongodbatlas.ManagedNamespace, map[string]string, error)
- func GetServerlessProvider(deploymentSpec *mdbv1.ServerlessSpec) provider.ProviderName
- func IsFreeTierAdvancedDeployment(deployment *mongodbatlas.AdvancedCluster) bool
- func IsFreeTierCluster(deployment *mongodbatlas.Cluster) bool
- func MergedAdvancedDeployment(atlasDeploymentAsAtlas mongodbatlas.AdvancedCluster, ...) (mergedDeployment mdbv1.AdvancedDeploymentSpec, ...)
- func MergedDeployment(atlasDeployment mongodbatlas.Cluster, spec mdbv1.AtlasDeploymentSpec) (result mongodbatlas.Cluster, err error)
- type AtlasDeploymentReconciler
- type InstanceSize
- type NamespaceDiff
- type SPEDiff
Constants ¶
View Source
const ( SPEStatusDeleting = "DELETING" SPEStatusReserved = "RESERVED" //stage 1 SPEStatusReservationRequested = "RESERVATION_REQUESTED" //stage 1 SPEStatusAvailable = "AVAILABLE" //stage 2 SPEStatusInitiating = "INITIATING" //stage 2 SPEStatusFailed = "FAILED" //stage 2 )
View Source
const FreeTier = "M0"
Variables ¶
This section is empty.
Functions ¶
func AdvancedDeploymentFromAtlas ¶ added in v1.2.0
func AdvancedDeploymentFromAtlas(advancedDeployment mongodbatlas.AdvancedCluster) (mdbv1.AdvancedDeploymentSpec, error)
func AdvancedDeploymentsEqual ¶
func AdvancedDeploymentsEqual(log *zap.SugaredLogger, deploymentAtlas mdbv1.AdvancedDeploymentSpec, deploymentOperator mdbv1.AdvancedDeploymentSpec) bool
AdvancedDeploymentsEqual compares two Atlas Advanced Deployments
func CompareInstanceSizes ¶ added in v1.4.0
func CompareInstanceSizes(is1 InstanceSize, is2 InstanceSize) int
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 EnsureCustomZoneMapping ¶ added in v1.6.0
func EnsureManagedNamespaces ¶ added in v1.6.0
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 GetGlobalDeploymentState ¶ added in v1.6.0
func GetGlobalDeploymentState(ctx context.Context, client mongodbatlas.GlobalClustersService, groupID string, deploymentName string) ([]mongodbatlas.ManagedNamespace, map[string]string, error)
func GetServerlessProvider ¶ added in v1.6.0
func GetServerlessProvider(deploymentSpec *mdbv1.ServerlessSpec) provider.ProviderName
func IsFreeTierAdvancedDeployment ¶ added in v1.7.0
func IsFreeTierAdvancedDeployment(deployment *mongodbatlas.AdvancedCluster) bool
func IsFreeTierCluster ¶ added in v1.7.0
func IsFreeTierCluster(deployment *mongodbatlas.Cluster) bool
func MergedAdvancedDeployment ¶
func MergedAdvancedDeployment(atlasDeploymentAsAtlas mongodbatlas.AdvancedCluster, specDeployment mdbv1.AdvancedDeploymentSpec) (mergedDeployment mdbv1.AdvancedDeploymentSpec, atlasDeployment mdbv1.AdvancedDeploymentSpec, err 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
type InstanceSize ¶ added in v1.4.0
func NewFromInstanceSizeName ¶ added in v1.4.0
func NewFromInstanceSizeName(instanceSizeName string) (InstanceSize, error)
type NamespaceDiff ¶ added in v1.6.0
type NamespaceDiff struct { ToCreate []mongodbatlas.ManagedNamespace ToDelete []mongodbatlas.ManagedNamespace ToUpdateStatus []mongodbatlas.ManagedNamespace }
type SPEDiff ¶ added in v1.5.0
type SPEDiff struct { PEToCreate []mdbv1.ServerlessPrivateEndpoint PEToConnect []mongodbatlas.ServerlessPrivateEndpointConnection PEToUpdateStatus []mongodbatlas.ServerlessPrivateEndpointConnection PEToDelete []string DuplicateToCreate []mdbv1.ServerlessPrivateEndpoint }
Click to show internal directories.
Click to hide internal directories.