Documentation
¶
Index ¶
- Constants
- func AddCredentialsToConnectionURL(connURL, userName, password string) (string, error)
- func Ensure(ctx context.Context, client client.Client, ...) (string, error)
- func ListByDeploymentName(ctx context.Context, k8sClient client.Client, ...) ([]corev1.Secret, error)
- func ListByUserName(ctx context.Context, k8sClient client.Client, ...) ([]corev1.Secret, error)
- type ConnectionData
- type PrivateLinkConnURLs
Constants ¶
View Source
const ( ProjectLabelKey string = "atlas.mongodb.com/project-id" ClusterLabelKey string = "atlas.mongodb.com/cluster-name" TypeLabelKey = "atlas.mongodb.com/type" CredLabelVal = "credentials" )
Variables ¶
This section is empty.
Functions ¶
func Ensure ¶
func Ensure(ctx context.Context, client client.Client, namespace, projectName, projectID, clusterName string, data ConnectionData) (string, error)
Ensure creates or updates the connection Secret for the specific cluster and db user. Returns the name of the Secret created.
Types ¶
type ConnectionData ¶
type ConnectionData struct { DBUserName string Password string ConnURL string SrvConnURL string PrivateConnURLs []PrivateLinkConnURLs }
type PrivateLinkConnURLs ¶
Click to show internal directories.
Click to hide internal directories.