Skip to content

Commit d661f27

Browse files
make Qdrant Entity selectable by .spec.entityType
1 parent 5e23ee3 commit d661f27

15 files changed

+19
-14
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
1111
CRD_REF_DOCS ?= $(LOCALBIN)/crd-ref-docs
1212
GCI ?= $(LOCALBIN)/gci
1313

14-
CONTROLLER_TOOLS_VERSION ?= v0.16.1
14+
CONTROLLER_TOOLS_VERSION ?= v0.16.5
1515
CRD_REF_DOCS_VERSION ?= v0.0.12
1616
CHART_DIR ?= charts/qdrant-kubernetes-api
1717
CRDS_DIR ?= crds

api/v1/qdrantentity_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ func (r *QdrantEntityStatusResult) SetPayloadFromGRPC(payload *structpb.Struct)
119119
// +kubebuilder:resource:path=qdrantentities,singular=qdrantentity,shortName=qe
120120
// +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`
121121
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
122+
// +kubebuilder:selectablefield:JSONPath=`.spec.entityType`
122123

123124
// QdrantEntity is the Schema for the qdrantentities API
124125
type QdrantEntity struct {

charts/qdrant-kubernetes-api/templates/management-crds/qdrant.io_qdrantreleases.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.16.1
7+
controller-gen.kubebuilder.io/version: v0.16.5
88
name: qdrantreleases.qdrant.io
99
spec:
1010
group: qdrant.io

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantcloudregions.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.16.1
7+
controller-gen.kubebuilder.io/version: v0.16.5
88
name: qdrantcloudregions.qdrant.io
99
spec:
1010
group: qdrant.io

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantclusterrestores.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.16.1
7+
controller-gen.kubebuilder.io/version: v0.16.5
88
name: qdrantclusterrestores.qdrant.io
99
spec:
1010
group: qdrant.io

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantclusters.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.16.1
7+
controller-gen.kubebuilder.io/version: v0.16.5
88
name: qdrantclusters.qdrant.io
99
spec:
1010
group: qdrant.io

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantclusterscheduledsnapshots.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.16.1
7+
controller-gen.kubebuilder.io/version: v0.16.5
88
name: qdrantclusterscheduledsnapshots.qdrant.io
99
spec:
1010
group: qdrant.io

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantclustersnapshots.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.16.1
7+
controller-gen.kubebuilder.io/version: v0.16.5
88
name: qdrantclustersnapshots.qdrant.io
99
spec:
1010
group: qdrant.io

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantentities.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.16.1
7+
controller-gen.kubebuilder.io/version: v0.16.5
88
name: qdrantentities.qdrant.io
99
spec:
1010
group: qdrant.io
@@ -107,6 +107,8 @@ spec:
107107
type: object
108108
x-kubernetes-preserve-unknown-fields: true
109109
type: object
110+
selectableFields:
111+
- jsonPath: .spec.entityType
110112
served: true
111113
storage: true
112114
subresources:

crds/qdrant.io_qdrantcloudregions.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: qdrantcloudregions.qdrant.io
88
spec:
99
group: qdrant.io

crds/qdrant.io_qdrantclusterrestores.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: qdrantclusterrestores.qdrant.io
88
spec:
99
group: qdrant.io

crds/qdrant.io_qdrantclusters.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: qdrantclusters.qdrant.io
88
spec:
99
group: qdrant.io

crds/qdrant.io_qdrantclusterscheduledsnapshots.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: qdrantclusterscheduledsnapshots.qdrant.io
88
spec:
99
group: qdrant.io

crds/qdrant.io_qdrantclustersnapshots.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: qdrantclustersnapshots.qdrant.io
88
spec:
99
group: qdrant.io

crds/qdrant.io_qdrantentities.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: qdrantentities.qdrant.io
88
spec:
99
group: qdrant.io
@@ -106,6 +106,8 @@ spec:
106106
type: object
107107
x-kubernetes-preserve-unknown-fields: true
108108
type: object
109+
selectableFields:
110+
- jsonPath: .spec.entityType
109111
served: true
110112
storage: true
111113
subresources:

0 commit comments

Comments
 (0)