Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions charts/qdrant/templates/tests/test-db-interaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,18 @@ spec:
- name: test-script
image: {{ .Values.chartTests.dbInteraction.image | quote }}
args: ['bash', '/app/entrypoint.sh']
{{- with .Values.chartTests.dbInteraction.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
env:
- name: HOME
value: /tmp/home
volumeMounts:
- mountPath: /app
name: test-script
- mountPath: /tmp/home
name: home
{{- if .Values.additionalVolumeMounts }}
{{- toYaml .Values.additionalVolumeMounts | default "" | nindent 8 }}
{{- end}}
Expand All @@ -41,6 +50,8 @@ spec:
- name: test-script
configMap:
name: "{{ include "qdrant.fullname" . }}-test-db-interaction"
- name: home
emptyDir: {}
{{- if .Values.additionalVolumes }}
{{- toYaml .Values.additionalVolumes | default "" | nindent 4 }}
{{- end}}
Expand Down
8 changes: 8 additions & 0 deletions test/integration/readonly_rootfs.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
setup_file() {
helm upgrade --install qdrant charts/qdrant -n qdrant-helm-integration --wait --set chartTests.dbInteraction.containerSecurityContext.readOnlyRootFilesystem=true
}

@test "helm test - with read-only root filesystem" {
run helm test qdrant -n qdrant-helm-integration --logs
[ $status -eq 0 ]
}