# Functions
GetCassandraUserCredentialsSecret gets the secret holding Cassandra credentials in the form <secret name>, <username key>, <password key>.
GetRabbitMQCredentialsFor returns the RabbitMQ host, username and password for a given CR.
GetRabbitMQHostnameAndPort returns the Cluster-accessible Hostname and AMQP port for RabbitMQ.
GetRabbitMQUserCredentialsSecret gets the secret holding RabbitMQ credentials in the form <secret name>, <username key>, <password key>.
GetResourcesForAstarteComponent returns the allocated resources for a given Astarte component, taking into account both the directive from Components, and the directive from the individual component (if any).
GetVerneMQBrokerURL returns the complete URL for VerneMQ (MQTT) for an Astarte resource.
IsAstarteComponentDeployed returns whether an Astarte component is deployed by cr.
LogCreateOrUpdateOperationResult logs conveniently a controllerutil Operation.
ReconcileConfigMap creates or updates a ConfigMap through controllerutil through its data map.
ReconcileSecret creates or updates a Secret through controllerutil through its data.
ReconcileSecretString creates or updates a Secret through controllerutil by using StringData.
ReconcileSecretStringWithLabels creates or updates a Secret through controllerutil by using StringData, and adding a set of Labels.
ReconcileTLSSecret creates or updates a TLS Secret through controllerutil through its data.
# Constants
CassandraDefaultUserCredentialsPasswordKey is the default Password key for Cassandra Secret.
CassandraDefaultUserCredentialsUsernameKey is the default Username key for Cassandra Secret.
RabbitMQDefaultUserCredentialsPasswordKey is the default Password key for RabbitMQ Secret.
RabbitMQDefaultUserCredentialsUsernameKey is the default Username key for RabbitMQ Secret.