Skip to content

Qdrant Ops Request #1631

Open
al-masood wants to merge 15 commits intomasterfrom
qdrant-ops
Open

Qdrant Ops Request #1631
al-masood wants to merge 15 commits intomasterfrom
qdrant-ops

Conversation

@al-masood
Copy link
Copy Markdown
Member

No description provided.

@al-masood al-masood force-pushed the qdrant-ops branch 2 times, most recently from 95a792b to f7d9210 Compare April 3, 2026 10:23
@Neaj-Morshad-101 Neaj-Morshad-101 marked this pull request as ready for review April 8, 2026 08:50
Copilot AI review requested due to automatic review settings April 8, 2026 08:50
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces Qdrant OpsRequest support (API types + CRD + admission validation) and adds a Qdrant HTTP client utility package to interact with Qdrant endpoints (cluster/collections/points/snapshots/shards), alongside necessary generated-code updates.

Changes:

  • Add QdrantOpsRequest API types, enums/helpers, CRD schema updates, and webhook validation logic.
  • Introduce a new pkg/utils/http/qdrant HTTP client with typed request/response models for key Qdrant APIs.
  • Update Qdrant TLS config schema (rotate/remove) and regenerate deepcopy/OpenAPI artifacts.

Reviewed changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
pkg/webhooks/ops/v1alpha1/qdrant.go Adds validating admission webhook for QdrantOpsRequest (type-specific validation + resume-on-complete).
pkg/utils/http/qdrant/client.go Introduces a reusable Qdrant HTTP client (base URL, API key, request creation).
pkg/utils/http/qdrant/config.go Adds client configuration (host/port/TLS/transport timeouts).
pkg/utils/http/qdrant/qdrant.go Implements basic API call(s) (health check).
pkg/utils/http/qdrant/qdrant_types.go Adds typed response model(s) for basic endpoints.
pkg/utils/http/qdrant/cluster.go Adds cluster-related API calls (cluster info, peer removal, collection cluster info).
pkg/utils/http/qdrant/cluster_types.go Adds typed models for cluster API responses/structures.
pkg/utils/http/qdrant/collection.go Adds collection management queries (list/details/exists/create).
pkg/utils/http/qdrant/collection_types.go Adds request/response types for collections (including vectors config marshaling).
pkg/utils/http/qdrant/point.go Adds point operations (upsert/get).
pkg/utils/http/qdrant/point_types.go Adds typed models for point operations.
pkg/utils/http/qdrant/shard.go Adds shard movement/replica operations via the cluster endpoint.
pkg/utils/http/qdrant/shard_types.go Adds typed request payloads for shard move/drop replica ops.
pkg/utils/http/qdrant/snapshot.go Adds snapshot APIs (full/collection/shard create/list/delete/recover/download).
pkg/utils/http/qdrant/snapshot_types.go Adds typed models for snapshot API responses.
pkg/utils/http/qdrant/common_types.go Adds shared response/result types used by multiple endpoints.
crds/ops.kubedb.com_qdrantopsrequests.yaml Extends the OpsRequest CRD schema with Qdrant-specific spec fields/types.
crds/kubedb.com_qdrants.yaml Extends Qdrant CRD TLS schema to include remove and rotateCertificates.
apis/ops/v1alpha1/qdrant_ops_types.go Defines QdrantOpsRequestSpec fields and per-operation spec structs.
apis/ops/v1alpha1/qdrant_ops_types_enum.go Adds generated enum helpers for QdrantOpsRequestType.
apis/ops/v1alpha1/qdrant_ops_helpers.go Adds resource metadata/accessor helpers for QdrantOpsRequest.
apis/ops/v1alpha1/constant.go Adds a Qdrant-related ops constant.
apis/ops/v1alpha1/zz_generated.deepcopy.go Regenerates deepcopy implementations for new Qdrant ops types.
apis/ops/v1alpha1/openapi_generated.go Regenerates OpenAPI schema for new/updated ops types.
apis/kubedb/v1alpha2/qdrant_types.go Extends QdrantTLSConfig and adds condition accessor methods.
apis/kubedb/v1alpha2/qdrant_helpers.go Updates connection scheme logic and adds peer-id/ordinal extraction helpers using the new HTTP client.
apis/kubedb/v1alpha2/openapi_generated.go Regenerates OpenAPI schema for QdrantTLSConfig changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

al-masood and others added 14 commits April 8, 2026 17:04
Signed-off-by: Masood <[email protected]>
Signed-off-by: Masood <[email protected]>
Signed-off-by: Masood <[email protected]>
Signed-off-by: Masood <[email protected]>
Signed-off-by: Masood <[email protected]>
Signed-off-by: masood <[email protected]>
Signed-off-by: masood <[email protected]>
Signed-off-by: Masood <[email protected]>
Signed-off-by: Masood <[email protected]>
Signed-off-by: Masood <[email protected]>
Signed-off-by: Masood <[email protected]>
Signed-off-by: Masood <[email protected]>
Signed-off-by: Masood <[email protected]>
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