private async Task UpdateDatabaseConfigs(ClusterDatabaseHost resource)
        {
            var spec   = resource.Spec;
            var secret = await Client.Get <V1Secret>(spec.SecretName, spec.SecretNamespace);

            if (secret == null)
            {
                resource.Status.Connected = false;
                resource.Status.Error     =
                    $@"Secret with name ""{spec.SecretName}"" in namespace ""{spec.SecretNamespace}"" not found.";
                await Client.UpdateStatus(resource);

                return;
            }

            var user = secret.ReadData(spec.UsernameKey);
            var pass = secret.ReadData(spec.PasswordKey);

            _connectionsManager.Add(
                resource.Metadata.Name,
                new ConnectionConfig
            {
                Type     = spec.Type,
                Host     = spec.Host,
                Port     = spec.Port,
                Username = user,
                Password = pass,
            });

            await CheckConnectivity(resource);
        }