Versions in this module Expand all Collapse all v2 v2.12.0 Dec 1, 2025 Changes in this version + const ConnectionTypelKey + const CredLabelVal + const DatabaseUserLabelKey + const ProjectLabelKey + const TargetLabelKey + const TypeLabelKey + var ConnectionSecretGoFieldOwner = client.FieldOwner("connectionsecret") + var ErrAmbiguousPairing = errors.New("multiple users/connectionTargets with the same name found") + var ErrInternalFormatErr = errors.New("identifiers could not be loaded from internal format") + var ErrK8SFormatErr = errors.New("identifiers could not be loaded from k8s format") + var ErrMissingPairing = errors.New("missing user/connectionTarget") + var ErrUnresolvedProjectID = errors.New("could not resolve the project id") + func ComputeHash(projectID, targetName, userName, connectionTargetType string) string + func CreateURL(hostname, username, password string) (string, error) + func K8sConnectionSecretName(projectID, targetName, userName, connectionTargetType string) string + type ConnectionSecretData struct + ConnectionURL string + DBUserName string + Password string + PrivateConnectionURLs []PrivateLinkConnectionURLs + SrvConnectionURL string + type ConnectionSecretIdentifiers struct + ConnectionType string + DatabaseUsername string + ProjectID string + TargetName string + type ConnectionSecretReconciler struct + ConnectionTargetKinds []ConnectionTarget + EventRecorder record.EventRecorder + GlobalPredicates []predicate.Predicate + Scheme *runtime.Scheme + func NewConnectionSecretReconciler(c cluster.Cluster, predicates []predicate.Predicate, ...) *ConnectionSecretReconciler + func (r *ConnectionSecretReconciler) For() (client.Object, builder.Predicates) + func (r *ConnectionSecretReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) + func (r *ConnectionSecretReconciler) SetupWithManager(mgr ctrl.Manager, skipNameValidation bool) error + type ConnectionTarget interface + BuildConnectionData func(ctx context.Context, user *akov2.AtlasDatabaseUser) (ConnectionSecretData, error) + GetConnectionTargetType func() string + GetName func() string + GetProjectID func(ctx context.Context) (string, error) + GetScopeType func() akov2.ScopeType + IsReady func() bool + SelectorByProjectID func(projectID string) fields.Selector + type DataFederationConnectionTarget struct + func (DataFederationConnectionTarget) SelectorByProjectID(projectID string) fields.Selector + func (e DataFederationConnectionTarget) BuildConnectionData(ctx context.Context, user *akov2.AtlasDatabaseUser) (ConnectionSecretData, error) + func (e DataFederationConnectionTarget) GetConnectionTargetType() string + func (e DataFederationConnectionTarget) GetName() string + func (e DataFederationConnectionTarget) GetProjectID(ctx context.Context) (string, error) + func (e DataFederationConnectionTarget) GetScopeType() akov2.ScopeType + func (e DataFederationConnectionTarget) IsReady() bool + type DeploymentConnectionTarget struct + func (DeploymentConnectionTarget) SelectorByProjectID(projectID string) fields.Selector + func (e DeploymentConnectionTarget) BuildConnectionData(ctx context.Context, user *akov2.AtlasDatabaseUser) (ConnectionSecretData, error) + func (e DeploymentConnectionTarget) GetConnectionTargetType() string + func (e DeploymentConnectionTarget) GetName() string + func (e DeploymentConnectionTarget) GetProjectID(ctx context.Context) (string, error) + func (e DeploymentConnectionTarget) GetScopeType() akov2.ScopeType + func (e DeploymentConnectionTarget) IsReady() bool + type PrivateLinkConnectionURLs struct + ConnectionURL string + ShardConnectionURL string + SrvConnectionURL string