atlasproject

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: 57 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 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, api.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
	Log                         *zap.SugaredLogger
	Scheme                      *runtime.Scheme
	GlobalPredicates            []predicate.Predicate
	EventRecorder               record.EventRecorder
	AtlasProvider               atlas.Provider
	ObjectDeletionProtection    bool
	SubObjectDeletionProtection bool
	// contains filtered or unexported fields
}

AtlasProjectReconciler reconciles a AtlasProject object

func NewAtlasProjectReconciler added in v2.3.1

func NewAtlasProjectReconciler(
	mgr manager.Manager,
	predicates []predicate.Predicate,
	atlasProvider atlas.Provider,
	deletionProtection bool,
	logger *zap.Logger,
) *AtlasProjectReconciler

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, skipNameValidation bool) 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]customroles.CustomRole
	Update map[string]customroles.CustomRole
	Delete map[string]customroles.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