Skip to content

Commit cc98004

Browse files
committed
fix variables
1 parent e034294 commit cc98004

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

statefulset.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ resource "kubernetes_stateful_set" "this" {
1111
spec {
1212
service_name = kubernetes_service.this-headless.metadata[0].name
1313
pod_management_policy = "Parallel"
14-
replicas = var.replicas
14+
replicas = var.replica_count
1515
revision_history_limit = 10
1616

1717
update_strategy {
@@ -105,7 +105,7 @@ resource "kubernetes_stateful_set" "this" {
105105

106106
container {
107107
name = "qdrant"
108-
image = "docker.io/qdrant/qdrant:v1.8.4"
108+
image = "docker.io/qdrant/qdrant:${var.qdrant_version}"
109109
image_pull_policy = "IfNotPresent"
110110
command = ["/bin/bash", "-c", "/qdrant/config/initialize.sh"]
111111

variables.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ variable "name" {
1010
default = "qdrant"
1111
}
1212

13-
variable "replicas" {
13+
variable "replica_count" {
1414
type = number
1515
description = "Replicas count for the Qdrant instances"
1616
default = 2
@@ -27,3 +27,9 @@ variable "storage_size" {
2727
description = "Storage size for the Qdrant instances"
2828
default = "10Gi"
2929
}
30+
31+
variable "qdrant_version" {
32+
type = string
33+
description = "The Qdrant version"
34+
default = "latest"
35+
}

0 commit comments

Comments
 (0)