atlasproject

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 45 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 added in v1.4.0

func AreIntegrationsEqual(atlas, specAsAtlas *aliasThirdPartyIntegration) bool

func AtlasInSync added in v1.3.0

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

func DeleteAllNetworkPeers added in v1.3.0

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

func DeleteAllPrivateEndpoints added in v0.7.0

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

func GetAllExistedNetworkPeer added in v1.6.0

func GetAllExistedNetworkPeer(ctx context.Context, peerService mongodbatlas.PeersService, groupID string) ([]mongodbatlas.Peer, error)

func IsEncryptionAtlasEmpty added in v1.3.0

func IsEncryptionAtlasEmpty(atlas *mongodbatlas.EncryptionAtRest) bool

func IsEncryptionSpecEmpty added in v1.3.0

func IsEncryptionSpecEmpty(spec *mdbv1.EncryptionAtRest) bool

func SetNewStatuses added in v1.3.0

func SetNewStatuses(customContext *workflow.Context, specToStatus map[v1.CloudProviderAccessRole]status.CloudProviderAccessRole)

func SyncNetworkPeer added in v1.3.0

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

func UpdateStatuses added in v1.3.0

func UpdateStatuses(context context.Context, containerService mongodbatlas.ContainersService,
	peerStatuses []status.AtlasNetworkPeer, peersToUpdate []mongodbatlas.Peer, groupID string, logger *zap.SugaredLogger) ([]status.AtlasNetworkPeer, error)

Types

type AtlasProjectReconciler

type AtlasProjectReconciler struct {
	Client client.Client
	watch.ResourceWatcher
	Log                         *zap.SugaredLogger
	Scheme                      *runtime.Scheme
	AtlasDomain                 string
	GlobalAPISecret             client.ObjectKey
	GlobalPredicates            []predicate.Predicate
	EventRecorder               record.EventRecorder
	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 CustomRolesOperations added in v1.4.1

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

type IPAccessListStatus added in v0.8.0

type IPAccessListStatus struct {
	Status string `json:"STATUS"`
}

func GetIPAccessListStatus added in v0.8.0

func GetIPAccessListStatus(client mongodbatlas.Client, accessList mongodbatlas.ProjectIPAccessList) (IPAccessListStatus, error)

GetIPAccessListStatus returns the status of an individual project ip access list. The documentation can be found here https://docs.atlas.mongodb.com/reference/api/ip-access-list/get-one-access-list-entry-status/

type IPAccessListStatusType added in v0.8.0

type IPAccessListStatusType string
const (
	IPAccessListActive  IPAccessListStatusType = "ACTIVE"
	IPAccessListFailed  IPAccessListStatusType = "FAILED"
	IPAccessListPending IPAccessListStatusType = "PENDING"
)

type TeamDataContainer added in v1.5.0

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

Jump to

Keyboard shortcuts

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