atlasproject

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusFailed      = "FAILED"
	StatusReady       = "AVAILABLE"
	StatusDeleting    = "DELETING"
	StatusTerminating = "TERMINATING"
)
View Source
const (
	ObjectIDRegex = "^([a-f0-9]{24})$"
)

Variables

This section is empty.

Functions

func AreIntegrationsEqual

func AreIntegrationsEqual(atlas, specAsAtlas *aliasThirdPartyIntegration) bool

func AtlasInSync

func AtlasInSync(atlas *mongodbatlas.EncryptionAtRest, spec *akov2.EncryptionAtRest) (bool, error)

func DeleteAllNetworkPeers

func DeleteAllNetworkPeers(ctx context.Context, groupID string, service admin.NetworkPeeringApi, logger *zap.SugaredLogger) workflow.Result

func DeleteAllPrivateEndpoints

func DeleteAllPrivateEndpoints(ctx *workflow.Context, projectID string) workflow.Result

func GetAllExistedNetworkPeer

func GetAllExistedNetworkPeer(ctx context.Context, peerService admin.NetworkPeeringApi, groupID string) ([]admin.BaseNetworkPeeringConnectionSettings, error)

func IsEncryptionAtlasEmpty

func IsEncryptionAtlasEmpty(atlas *mongodbatlas.EncryptionAtRest) bool

func IsEncryptionSpecEmpty

func IsEncryptionSpecEmpty(spec *akov2.EncryptionAtRest) bool

func SyncNetworkPeer

func SyncNetworkPeer(workflowCtx *workflow.Context, groupID string, peerStatuses []status.AtlasNetworkPeer, peerSpecs []akov2.NetworkPeer) (workflow.Result, status.ConditionType)

func UpdateStatuses

func UpdateStatuses(context context.Context, containerService admin.NetworkPeeringApi,
	peerStatuses []status.AtlasNetworkPeer, peersToUpdate []admin.BaseNetworkPeeringConnectionSettings, groupID string, logger *zap.SugaredLogger) ([]status.AtlasNetworkPeer, error)

Types

type AtlasProjectReconciler

type AtlasProjectReconciler struct {
	Client client.Client
	watch.DeprecatedResourceWatcher
	Log                         *zap.SugaredLogger
	Scheme                      *runtime.Scheme
	GlobalPredicates            []predicate.Predicate
	EventRecorder               record.EventRecorder
	AtlasProvider               atlas.Provider
	ObjectDeletionProtection    bool
	SubObjectDeletionProtection bool
}

AtlasProjectReconciler reconciles a AtlasProject object

func (*AtlasProjectReconciler) Reconcile

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

func (*AtlasProjectReconciler) SetupWithManager

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

type CloudProviderIntegrationIdentifiable added in v2.1.0

type CloudProviderIntegrationIdentifiable akov2.CloudProviderIntegration

func (CloudProviderIntegrationIdentifiable) Identifier added in v2.1.0

func (cpa CloudProviderIntegrationIdentifiable) Identifier() interface{}

type CustomRolesOperations

type CustomRolesOperations struct {
	Create map[string]akov2.CustomRole
	Update map[string]akov2.CustomRole
	Delete map[string]akov2.CustomRole
}

type TeamDataContainer

type TeamDataContainer struct {
	ProjectTeam *akov2.Team
	Team        *akov2.AtlasTeam
	Context     *workflow.Context
}

Jump to

Keyboard shortcuts

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