From 766fc68834d4bd18a16cf4ec451f726d2f9d5cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sun, 15 Oct 2023 12:38:53 +0200 Subject: [PATCH] fix --- share/dataset-mongo/index.yaml | 41 +++++++++++++++++----------------- share/dataset-mongo/mongo.tf | 6 ++--- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/share/dataset-mongo/index.yaml b/share/dataset-mongo/index.yaml index 678cf37..7d458ed 100644 --- a/share/dataset-mongo/index.yaml +++ b/share/dataset-mongo/index.yaml @@ -6,6 +6,26 @@ metadata: name: dataset-mongo description: null options: + cacheSizeGB: + default: 1 + examples: + - 1 + type: integer + replicas: + default: 1 + examples: + - 1 + type: integer + mongo: + default: + version: 4.4.0 + examples: + - version: 4.4.0 + properties: + version: + default: 4.4.0 + type: string + type: object image: default: pullPolicy: IfNotPresent @@ -20,26 +40,6 @@ options: - IfNotPresent type: string type: object - mongo: - default: - version: 4.4.0 - examples: - - version: 4.4.0 - properties: - version: - default: 4.4.0 - type: string - type: object - replicas: - default: 1 - examples: - - 1 - type: integer - cacheSizeGB: - default: 1 - examples: - - 1 - type: integer ressources: default: limits: @@ -92,4 +92,5 @@ providers: postgresql: null restapi: null http: null + gitea: null tfaddtype: null diff --git a/share/dataset-mongo/mongo.tf b/share/dataset-mongo/mongo.tf index 03a3ec5..b034e6b 100644 --- a/share/dataset-mongo/mongo.tf +++ b/share/dataset-mongo/mongo.tf @@ -75,10 +75,10 @@ resource "kubectl_manifest" "prj_mongo" { additionalMongodConfig: storage.wiredTiger.engineConfig.cacheSizeGB: ${var.cacheSizeGB} users: - - name: ${var.component} - db: ${var.component} + - name: ${var.instance} + db: ${var.instance} passwordSecretRef: - name: "${var.instance}-${var.component}" + name: "${var.instance}" roles: - db: ${var.component} name: readWrite