Documentation ¶
Index ¶
- Constants
- func AreIntegrationsEqual(atlas, specAsAtlas *aliasThirdPartyIntegration) bool
- func AtlasInSync(atlas *mongodbatlas.EncryptionAtRest, spec *mdbv1.EncryptionAtRest) (bool, error)
- func DeleteAllNetworkPeers(ctx context.Context, groupID string, service mongodbatlas.PeersService, ...) workflow.Result
- func DeleteAllPrivateEndpoints(ctx *workflow.Context, projectID string) workflow.Result
- func GetAllExistedNetworkPeer(ctx context.Context, peerService mongodbatlas.PeersService, groupID string) ([]mongodbatlas.Peer, error)
- func IsEncryptionAtlasEmpty(atlas *mongodbatlas.EncryptionAtRest) bool
- func IsEncryptionSpecEmpty(spec *mdbv1.EncryptionAtRest) bool
- func SetNewStatuses(customContext *workflow.Context, ...)
- func SyncNetworkPeer(context context.Context, ctx *workflow.Context, groupID string, ...) (workflow.Result, status.ConditionType)
- func UpdateStatuses(context context.Context, containerService mongodbatlas.ContainersService, ...) ([]status.AtlasNetworkPeer, error)
- type AtlasProjectReconciler
- type CustomRolesOperations
- type IPAccessListStatus
- type IPAccessListStatusType
- type TeamDataContainer
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 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) 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" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.