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