From fe990006e06970c234dd5a03b2635b25f4a23fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Wed, 21 Feb 2024 11:32:35 +0100 Subject: [PATCH] fix --- share/dataset-mongo/index.yaml | 20 ++++++++++---------- share/dataset-mongo/mongo.tf | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/share/dataset-mongo/index.yaml b/share/dataset-mongo/index.yaml index 5363a3a..17f3132 100644 --- a/share/dataset-mongo/index.yaml +++ b/share/dataset-mongo/index.yaml @@ -16,11 +16,6 @@ options: default: 6.0.13 type: string type: object - cacheSizeGB: - default: 1 - examples: - - 1 - type: integer image: default: pull_policy: IfNotPresent @@ -35,6 +30,16 @@ options: - IfNotPresent type: string type: object + replicas: + default: 1 + examples: + - 1 + type: integer + cacheSizeGB: + default: 1 + examples: + - 1 + type: integer ressources: default: limits: @@ -76,11 +81,6 @@ options: type: string type: object type: object - replicas: - default: 1 - examples: - - 1 - type: integer dependencies: - dist: null category: dbo diff --git a/share/dataset-mongo/mongo.tf b/share/dataset-mongo/mongo.tf index 738b5f6..c263125 100644 --- a/share/dataset-mongo/mongo.tf +++ b/share/dataset-mongo/mongo.tf @@ -78,7 +78,7 @@ resource "kubectl_manifest" "prj_mongo" { - name: ${var.instance} db: ${var.instance} passwordSecretRef: - name: "${var.instance}" + name: "${var.instance}-${var.component}" roles: - db: ${var.component} name: readWrite