Bastian Hofmann dfff7fac6a Make the qdrant api key easily configurable (#62)
* Make the qdrant api key easily configurable

This adds a new `apiKey` value.

If `true` it generates a random apiKey, stores it in a secret and ensures that it stays the same during upgrades.
If a string is passed, this string is used as the api key.

The secret is mounted as a `local.yaml` config into the container. See also https://qdrant.tech/documentation/guides/configuration/#order-and-priority.

Alternatively, there are two new values `additionalVolumes` and `additionalVolumeMounts` which allow to mount additional existing volumes, such as pre-existing secrets into the qdrant container.

This also adds bats-core based integration tests to test the correct api key handling

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

* Fix bats integration tests

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

* Fix bats integration tests

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

* Fix bats integration tests

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

* Fix bats integration tests

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

* Fix statefulset

* doc: fix typo

---------

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
Co-authored-by: Tim Eggert <tim@elbart.com>
2023-08-31 15:22:54 +02:00
2022-10-25 09:59:19 +02:00
2023-08-15 14:32:16 +02:00

Qdrant helm repository

Qdrant documentation

This repository hosts the following helm charts:

Usage

helm repo add qdrant https://qdrant.github.io/qdrant-helm

Running tests

This repository has unit and integration tests for the charts. All charts are also linted.

Linting

Linting is done with helm lint.

Prerequisites:

  • Helm
brew install helm

To lint all charts:

make lint

Unit tests

Unit tests are in the ./test directory and written in Go with terratest.

Prerequisites:

  • Go
brew install go

To run the tests:

make test-unit

Integration tests

Integration tests are in the ./test/integration directory and written with bats.

There is an additional simple Helm test in ./charts/qdrant/templates/tests.

Prerequisites:

  • Docker
  • Kind
  • Kubectl
  • Helm
  • Bats
brew install helm kubectl kind bats-core homebrew/cask/docker

To run the tests:

make test-integration
Description
No description provided
Readme Apache-2.0 584 KiB
Languages
Go 67.4%
Shell 24.3%
Smarty 8%
Makefile 0.3%