Open
Conversation
95a792b to
f7d9210
Compare
There was a problem hiding this comment.
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
QdrantOpsRequestAPI types, enums/helpers, CRD schema updates, and webhook validation logic. - Introduce a new
pkg/utils/http/qdrantHTTP 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.
Neaj-Morshad-101
requested changes
Apr 8, 2026
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]>
Signed-off-by: Masood <[email protected]>
Neaj-Morshad-101
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.