From 77cc7b09aa63f7ab85c933a2d85ef6909e235500 Mon Sep 17 00:00:00 2001 From: Arthur Koziel Date: Fri, 17 May 2024 13:25:36 +0200 Subject: [PATCH 1/2] Add option to set shareProcessNamespace Issue https://github.com/qdrant/qdrant-helm/issues/162 --- charts/qdrant/templates/statefulset.yaml | 3 +++ charts/qdrant/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/qdrant/templates/statefulset.yaml b/charts/qdrant/templates/statefulset.yaml index 61c5b46..2bde7c4 100644 --- a/charts/qdrant/templates/statefulset.yaml +++ b/charts/qdrant/templates/statefulset.yaml @@ -37,6 +37,9 @@ spec: {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" {{- end }} + {{- if .Values.shareProcessNamespace }} + shareProcessNamespace: {{ .Values.shareProcessNamespace }} + {{- end }} initContainers: {{- if .Values.updateVolumeFsOwnership }} {{- if and .Values.containerSecurityContext .Values.containerSecurityContext.runAsUser }} diff --git a/charts/qdrant/values.yaml b/charts/qdrant/values.yaml index c450ab6..a343204 100644 --- a/charts/qdrant/values.yaml +++ b/charts/qdrant/values.yaml @@ -201,6 +201,8 @@ serviceAccount: priorityClassName: "" +shareProcessNamespace: false + # We disourage changing this setting. Using the "OrderedReady" policy in a # multi-node cluster will cause a deadlock where nodes refuse to become # "Ready" until all nodes are running. From ecf21f565800d0c559e957f3a91c9b42ecf2af1a Mon Sep 17 00:00:00 2001 From: Arthur Koziel Date: Fri, 17 May 2024 13:26:10 +0200 Subject: [PATCH 2/2] remove trailing whitespace --- charts/qdrant/templates/statefulset.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/qdrant/templates/statefulset.yaml b/charts/qdrant/templates/statefulset.yaml index 2bde7c4..fcfdbfb 100644 --- a/charts/qdrant/templates/statefulset.yaml +++ b/charts/qdrant/templates/statefulset.yaml @@ -55,7 +55,7 @@ spec: - {{ .Values.snapshotRestoration.mountPath }} {{- end }} volumeMounts: - - name: {{ .Values.persistence.storageVolumeName | default "qdrant-storage" }} + - name: {{ .Values.persistence.storageVolumeName | default "qdrant-storage" }} mountPath: /qdrant/storage - name: {{ .Values.snapshotPersistence.snapshotsVolumeName | default "qdrant-snapshots" }} mountPath: /qdrant/snapshots @@ -165,7 +165,7 @@ spec: {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - - name: {{ .Values.persistence.storageVolumeName | default "qdrant-storage" }} + - name: {{ .Values.persistence.storageVolumeName | default "qdrant-storage" }} mountPath: /qdrant/storage - name: qdrant-config mountPath: /qdrant/config/initialize.sh @@ -182,7 +182,7 @@ spec: - name: qdrant-snapshot-restoration mountPath: {{ .Values.snapshotRestoration.mountPath }} {{- end }} - - name: {{ .Values.snapshotPersistence.snapshotsVolumeName | default "qdrant-snapshots" }} + - name: {{ .Values.snapshotPersistence.snapshotsVolumeName | default "qdrant-snapshots" }} mountPath: /qdrant/snapshots - name: qdrant-init mountPath: /qdrant/init @@ -221,7 +221,7 @@ spec: claimName: {{ .Values.snapshotRestoration.pvcName }} {{- end }} {{- if not .Values.snapshotPersistence.enabled }} - - name: {{ .Values.snapshotPersistence.snapshotsVolumeName | default "qdrant-snapshots" }} + - name: {{ .Values.snapshotPersistence.snapshotsVolumeName | default "qdrant-snapshots" }} emptyDir: {} {{- end }} - name: qdrant-init @@ -237,7 +237,7 @@ spec: {{- end}} volumeClaimTemplates: - metadata: - name: {{ .Values.persistence.storageVolumeName | default "qdrant-storage" }} + name: {{ .Values.persistence.storageVolumeName | default "qdrant-storage" }} labels: app: {{ template "qdrant.name" . }} {{- with .Values.persistence.annotations }} @@ -255,7 +255,7 @@ spec: storage: {{ .Values.persistence.size | quote }} {{- if .Values.snapshotPersistence.enabled }} - metadata: - name: {{ .Values.snapshotPersistence.snapshotsVolumeName | default "qdrant-snapshots" }} + name: {{ .Values.snapshotPersistence.snapshotsVolumeName | default "qdrant-snapshots" }} labels: app: {{ template "qdrant.name" . }} {{- with .Values.snapshotPersistence.annotations }}