-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to Qdrant 1.5.0 This also changes the probes to use the new healthz readyz and livez endpoints Resolves #72 Resolves #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>
- Loading branch information
1 parent
0eb3d7b
commit ae5fb05
Showing
5 changed files
with
61 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Changelog | ||
|
||
## [qdrant-0.4.1](https://github.com/qdrant/qdrant-helm/tree/qdrant-0.4.1) (2023-09-04) | ||
## [qdrant-0.5.0](https://github.com/qdrant/qdrant-helm/tree/qdrant-0.5.0) (2023-09-07) | ||
|
||
- Add PriorityClass support to StatefulSet Pod template [\#68](https://github.com/qdrant/qdrant-helm/pull/68) | ||
- Don't use alpine image for file permission updates [\#69](https://github.com/qdrant/qdrant-helm/pull/69) | ||
- Update to Qdrant 1.5.0 [\#72](https://github.com/qdrant/qdrant-helm/issues/72) | ||
- Use new Qdrant readiness and liveness endpoints [\#71](https://github.com/qdrant/qdrant-helm/issues/71) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package test | ||
|
||
import ( | ||
"github.com/samber/lo" | ||
corev1 "k8s.io/api/core/v1" | ||
"path/filepath" | ||
"strings" | ||
"testing" | ||
|
||
"github.com/gruntwork-io/terratest/modules/helm" | ||
"github.com/gruntwork-io/terratest/modules/k8s" | ||
"github.com/gruntwork-io/terratest/modules/logger" | ||
"github.com/gruntwork-io/terratest/modules/random" | ||
"github.com/stretchr/testify/require" | ||
appsv1 "k8s.io/api/apps/v1" | ||
) | ||
|
||
func TestDefaultProbesOnStatefulset(t *testing.T) { | ||
t.Parallel() | ||
|
||
helmChartPath, err := filepath.Abs("../charts/qdrant") | ||
releaseName := "qdrant" | ||
require.NoError(t, err) | ||
|
||
namespaceName := "qdrant-" + strings.ToLower(random.UniqueId()) | ||
logger.Log(t, "Namespace: %s\n", namespaceName) | ||
|
||
options := &helm.Options{ | ||
KubectlOptions: k8s.NewKubectlOptions("", "", namespaceName), | ||
} | ||
|
||
output := helm.RenderTemplate(t, options, helmChartPath, releaseName, []string{"templates/statefulset.yaml"}) | ||
|
||
var statefulSet appsv1.StatefulSet | ||
helm.UnmarshalK8SYaml(t, output, &statefulSet) | ||
|
||
container, _ := lo.Find(statefulSet.Spec.Template.Spec.Containers, func(container corev1.Container) bool { | ||
return container.Name == "qdrant" | ||
}) | ||
|
||
require.Equal(t, "/readyz", container.StartupProbe.HTTPGet.Path) | ||
require.Equal(t, "/readyz", container.ReadinessProbe.HTTPGet.Path) | ||
require.Equal(t, "/livez", container.LivenessProbe.HTTPGet.Path) | ||
} |