Skip to content

Commit

Permalink
chore: support parameters api for qdrant (#1371)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2a08997)
  • Loading branch information
sophon-zt committed Mar 3, 2025
1 parent 9e8b0e7 commit 186f2fb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 14 deletions.
7 changes: 7 additions & 0 deletions addons/qdrant/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,10 @@ Define qdrant config constraint name
{{- define "qdrant.configConstraintName" -}}
qdrant-config-constraints
{{- end -}}

{{/*
Define qdrant parameter config renderer name
*/}}
{{- define "qdrant.pcrName" -}}
qdrant-pcr
{{- end -}}
1 change: 0 additions & 1 deletion addons/qdrant/templates/componentdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ spec:
configs:
- name: qdrant-config-template
templateRef: {{ include "qdrant.configTplName" . }}
constraintRef: {{ include "qdrant.configConstraintName" . }}
volumeName: qdrant-config
namespace: {{ .Release.Namespace }}
scripts:
Expand Down
13 changes: 0 additions & 13 deletions addons/qdrant/templates/configconstraint.yaml

This file was deleted.

15 changes: 15 additions & 0 deletions addons/qdrant/templates/pcr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: parameters.kubeblocks.io/v1alpha1
kind: ParamConfigRenderer
metadata:
name: {{ include "qdrant.pcrName" . }}
labels:
{{- include "qdrant.labels" . | nindent 4 }}
spec:
componentDef: {{ include "qdrant.cmpdName" . }}
configs:
- name: production.yaml
fileFormatConfig:
format: yaml
- name: config.yaml
fileFormatConfig:
format: yaml

0 comments on commit 186f2fb

Please sign in to comment.