310 Commits

Author SHA1 Message Date
Bastian Hofmann
7c6496def9 Update Qdrant to 1.7.1 (#113) 2023-12-12 09:49:25 +00:00
dependabot[bot]
1e9b52a996 Bump github.com/gruntwork-io/terratest from 0.43.13 to 0.46.8 (#108)
Bumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.43.13 to 0.46.8.
- [Release notes](https://github.com/gruntwork-io/terratest/releases)
- [Commits](https://github.com/gruntwork-io/terratest/compare/v0.43.13...v0.46.8)

---
updated-dependencies:
- dependency-name: github.com/gruntwork-io/terratest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 13:50:52 +01:00
dependabot[bot]
a06481e672 Bump helm.sh/helm/v3 from 3.12.3 to 3.13.2 (#110)
Bumps [helm.sh/helm/v3](https://github.com/helm/helm) from 3.12.3 to 3.13.2.
- [Release notes](https://github.com/helm/helm/releases)
- [Commits](https://github.com/helm/helm/compare/v3.12.3...v3.13.2)

---
updated-dependencies:
- dependency-name: helm.sh/helm/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 13:40:08 +01:00
dependabot[bot]
1f251372b1 Bump github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring (#106)
Bumps [github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring](https://github.com/prometheus-operator/prometheus-operator) from 0.67.1 to 0.70.0.
- [Release notes](https://github.com/prometheus-operator/prometheus-operator/releases)
- [Changelog](https://github.com/prometheus-operator/prometheus-operator/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus-operator/prometheus-operator/compare/v0.67.1...v0.70.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 12:56:56 +01:00
dependabot[bot]
b8cbe9b97a Bump k8s.io/api from 0.28.1 to 0.28.4 (#107)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.28.1 to 0.28.4.
- [Commits](https://github.com/kubernetes/api/compare/v0.28.1...v0.28.4)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 12:52:25 +01:00
dependabot[bot]
ec850ce8c6 Bump stefanzweifel/git-auto-commit-action from 4 to 5 (#102)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4 to 5.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 12:51:31 +01:00
dependabot[bot]
523e7c4ba6 Bump actions/checkout from 3 to 4 (#103)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 12:51:10 +01:00
dependabot[bot]
eb5b65de48 Bump actions/setup-go from 4 to 5 (#104)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 12:50:53 +01:00
dependabot[bot]
6dae5d7d1c Bump helm/chart-releaser-action from 1.5.0 to 1.6.0 (#105)
Bumps [helm/chart-releaser-action](https://github.com/helm/chart-releaser-action) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/helm/chart-releaser-action/releases)
- [Commits](https://github.com/helm/chart-releaser-action/compare/v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: helm/chart-releaser-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 12:50:10 +01:00
dependabot[bot]
9fb63ca724 Bump golang.org/x/net from 0.13.0 to 0.17.0 (#109)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.13.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.13.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 12:49:48 +01:00
Bastian Hofmann
49f5ee0ee6 Create dependabot.yml 2023-12-08 12:34:51 +01:00
Bastian Hofmann
2f85d1bd4b Update Qdrant to 1.7.0 (#101) 2023-12-08 12:23:08 +01:00
Mac Chaffee
2ddefd61cc Fix snapshot restoration and add integration test (#96)
* Fix snapshot restoration and add integration test

* Fix updateConfigurationOnChange

* Add retries to all curl commands to fix flakiness in kind
2023-10-16 13:35:39 -04:00
Bastian Hofmann
46e0d1f23a Update for Qdrant 1.6.1 and release (#95) 2023-10-12 16:13:56 +02:00
Bastian Hofmann
582709cae4 Update setup-go in Github Action (#94) 2023-10-11 15:25:02 +02:00
Mac Chaffee
a6e8b35ba0 Remove extraneous exec in initialize.sh (#93) 2023-10-11 09:47:29 +02:00
Bastian Hofmann
7a269d8153 Make annotations for the ServiceAccount configurable (#92)
One use-case would be associating a ServiceAccount with an IAM role in EKS (https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html)

Fixes https://github.com/qdrant/qdrant-helm/issues/89
2023-10-10 15:38:09 +02:00
Mac Chaffee
706a3acad3 Propagate signals to qdrant by using /bin/bash (#91) 2023-10-10 08:33:23 -04:00
Mac Chaffee
98684d001a Document release process (#88) 2023-10-09 11:30:52 -04:00
Bastian Hofmann
a43be2aa3f Update Qdrant to 1.6.0 and create release (#87) 2023-10-09 16:07:07 +02:00
Bastian Hofmann
cea92d092a Make ingressClassName configurable (#86)
* Make ingressClassName configurable

Fixes https://github.com/qdrant/qdrant-helm/issues/84

* Fix CI

* Fix CI

* Fix CI
2023-10-05 16:36:52 +02:00
Bastian Hofmann
264b4cfe96 Fix and improve probes (#79)
* Fix probes when Qdrant is served over TLS

This also improves the integration test runtime and reliability by not installing a fresh cluster for every test but upgrading it with the new config.

Fixes https://github.com/qdrant/qdrant-helm/issues/77

* Deactivate liveness and startup probes by default

Since these probes restart the pod on failure, they can disrupt the health of the Qdrant cluster unnecessarily and cause more problems then actually help. Having a readinessProbe is usually enough.

* Fix tests

* Try to fix connection issues
2023-09-29 12:31:54 +02:00
Bastian Hofmann
52515f661e Release 0.5.1 (#76)
* Release 0.5.1

This also adds an integration test which actually hits the API and experimental support for unprivileged container images

* Add debug statement

* Add debug statement

* Bump Qdrant to 1.5.1

* Try to fix tests

* Add comment and remove duplicated test
2023-09-13 11:15:21 +02:00
Bastian Hofmann
bc06c7b751 Ensure that the qdrant-init-file-path is on a writable, ephemeral volume (#75)
Fixes https://github.com/qdrant/qdrant-helm/issues/74
2023-09-11 10:09:17 +02:00
Bastian Hofmann
ae5fb05b1d Update to Qdrant 1.5.0 (#73)
* Update to Qdrant 1.5.0

This also changes the probes to use the new healthz readyz and livez endpoints

Resolves https://github.com/qdrant/qdrant-helm/issues/72
Resolves https://github.com/qdrant/qdrant-helm/issues/71

* Update charts/qdrant/templates/statefulset.yaml

Co-authored-by: Tim Visée <tim+github@visee.me>

* Update qdrant_probes_test.go

---------

Co-authored-by: Tim Visée <tim+github@visee.me>
2023-09-07 17:12:24 +02:00
Bastian Hofmann
0eb3d7b087 Release 0.4.1 (#70) 2023-09-04 16:44:52 +02:00
Bastian Hofmann
70f9d16ded Don't use alpine image for file permission updates (#69)
Using an additional image makes compliance validations harder.

This also adds a test if the upgrade from root to nonRoot works correctly.
2023-09-04 12:54:21 +02:00
Brent Dearth
afdec2c6f4 Add PriorityClass support to StatefulSet Pod template (#68) 2023-09-04 10:49:05 +02:00
Bastian Hofmann
d101737c31 Release qdrant-0.4.0 (#67)
* Release qdrant-0.4.0

* Add release notes for chart-releaser-action

* Bump release date
2023-09-01 10:34:56 +02:00
Bastian Hofmann
17ab935d00 Make pod topologySpreadConstraints configurable (#66)
Fixes https://github.com/qdrant/qdrant-helm/issues/65
More info https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
2023-08-31 18:07:27 +02:00
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
Tony Skorik
e705e6a61f Add support for qdrant recovery mode (#54)
* Add support for qdrant recovery mode by adding environment variables support to helm template as well as starting qdrant from `entrypoint.sh`.

* Fix indentation;

* Fix indentation

* More indentation fixes

---------

Co-authored-by: Tony Skorik <anton.skorik@aliexpress.ru>
2023-08-30 17:06:48 +02:00
Bastian Hofmann
f9ebbaa4fc Add default container and pod securityContexts and make the configurable (#60)
This also ensures that the pre-existing files in the volume are owned by the right user and group.
This is why the default podSecurityContext allows running as root for the init containers that change the permissions and only the container is restricted by default.
2023-08-29 15:42:36 +02:00
Bastian Hofmann
894b0bd0b2 Make relabelings and metricRelabelings configurable in ServiceMonitor (#61)
This also makes the go test repo structure more standard and fixes `require.equal` argument order
2023-08-29 11:47:46 +02:00
Bastian Hofmann
ff7e1adc19 Allow annotations on volumeClaimTemplate of qdrant statefulset (#63)
Fixes https://github.com/qdrant/qdrant-helm/issues/45

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-08-29 11:47:13 +02:00
Bastian Hofmann
1abd33831b Add license file into chart package
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-08-24 14:59:40 +02:00
Bastian Hofmann
eaca2bd11e Support configuring additional labels on resources and add ServiceAccount (#56)
* Support configuring additional labels on resources and add ServiceAccount

Fixes https://github.com/qdrant/qdrant-helm/issues/55

This adds a ServiceAccount for the Statefulset. This errors if a namespace has no default ServiceAccount and prevents accidentally using a default namespace ServiceAccount with elevated permissions.

This also introduces terratest as a way to do unit tests on the rendered helm chart.

* Fix setup-go cache-dependency-path for faster executions

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

---------

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-08-24 12:46:23 +02:00
Cyril Corbon
cd3fcab101 feat: add pdb and documentation (#57)
Signed-off-by: Cyril Corbon <corboncyril@gmail.com>
2023-08-23 13:45:27 +02:00
Bastian Hofmann
5005e4008b Bump qdrant to 0.3.1 and only execute release flow if Chart.yaml has been updated (#59)
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-08-23 11:55:06 +02:00
Nicolas Mauti
1533a84640 Change target port for serviceMonitor to rely on new naming (http) (#58)
Co-authored-by: Nicolas Mauti <nicolas.mauti@malt.com>
2023-08-23 11:28:40 +02:00
Bastian Hofmann
ed31b29a39 Re-structure git repo and improve qdrant chart (#53)
* Re-structure git repo and improve qdrant chart

This allows us to host multiple helm charts in the future and to use the standard helm/chart-releaser-action and helm/chart-testing-action.

Additional changes:

* Fixed typos in README
* Added helm tests
* Change to use more standard ingress.tls values structure
* Use fixed versioning
* Added chart metadata
* Improve install notes
* Add LICENSE information

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

* Bump version

* Bump version

* Update Chart.yaml

* Add necessary permissions to flow

* Skip existing helm releases

* Remove Skip existing helm releases

* Update Chart.yaml

* Reset chart version for merge

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

* Remove BC break in .Values.image.tag

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

* Fix change detection for chart-releaser and chart-testing

---------

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-08-21 16:05:00 +02:00
Cyril Corbon
7810eaa8c7 chore: add support to args modification & update readme (#35)
Signed-off-by: Cyril Corbon <corboncyril@gmail.com>
2023-08-15 14:43:44 +02:00
Sebastian Klatt
c4d78e68aa fix: Adhere to port naming conventions (#51)
reference: https://istio.io/latest/docs/reference/config/analysis/ist0118/
2023-08-15 14:39:26 +02:00
Ian Muge
dc6e609018 feat/add service monitor (#38)
* add a gitignore file

* template and add an optional service monitor

* slight oversight, match service labels
2023-08-15 14:32:16 +02:00
Ayuei
10803702ff Fix README.md typo (#37)
The uninstall command for pvc is incorrect
2023-08-15 14:29:31 +02:00
Moustafa Nawar
3b360aec89 Merge pull request #40 from qdrant/feat/nawar/add-generic-ingress
support a generic ingress
2023-06-22 12:43:51 +03:00
Moustafa Nawar
6099247157 target the qdrant service by default 2023-06-21 18:32:15 +03:00
Moustafa Nawar
e940864646 support a generic ingress 2023-06-21 15:49:26 +03:00
Moustafa Nawar
00c82f509c Merge pull request #33 from qdrant/fix/nawar/increase-pvc-size
increase default pvc size to 10Gi, Bump chart version
2023-04-13 14:39:08 +02:00
Moustafa Nawar
8250915e79 increase default pvc size to 10Gi, Bump chart version 2023-04-13 14:38:12 +02:00