Skip to content

Conversation

@Al-Masood
Copy link

No description provided.

Signed-off-by: Masood <[email protected]>
@Neaj-Morshad-101 Neaj-Morshad-101 marked this pull request as ready for review October 30, 2025 09:23
Comment on lines 32 to 51
func (o *KubeDBClientBuilder) GetQdrantAPIKey() string {
db := o.db
var secretName string
if db.Spec.AuthSecret != nil {
secretName = db.GetAuthSecretName()
}

var secret core.Secret
err := o.kc.Get(o.ctx, client.ObjectKey{Namespace: db.Namespace, Name: secretName}, &secret)
if err != nil {
return ""
}

apiKey, ok := secret.Data[kubedb.QdrantAPIKey]
if !ok {
return ""
}

return string(apiKey)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use from apimachinery.

Signed-off-by: Masood <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants