diff --git a/share/dataset-mongo/index.yaml b/share/dataset-mongo/index.yaml index 17f3132..5e4711a 100644 --- a/share/dataset-mongo/index.yaml +++ b/share/dataset-mongo/index.yaml @@ -6,16 +6,6 @@ metadata: name: dataset-mongo description: null options: - mongo: - default: - version: 6.0.13 - examples: - - version: 6.0.13 - properties: - version: - default: 6.0.13 - type: string - type: object image: default: pull_policy: IfNotPresent @@ -30,16 +20,26 @@ options: - IfNotPresent type: string type: object - replicas: - default: 1 - examples: - - 1 - type: integer cacheSizeGB: default: 1 examples: - 1 type: integer + replicas: + default: 1 + examples: + - 1 + type: integer + mongo: + default: + version: 6.0.13 + examples: + - version: 6.0.13 + properties: + version: + default: 6.0.13 + type: string + type: object ressources: default: limits: diff --git a/share/dataset-mongo/mongo.tf b/share/dataset-mongo/mongo.tf index c263125..12e1440 100644 --- a/share/dataset-mongo/mongo.tf +++ b/share/dataset-mongo/mongo.tf @@ -80,7 +80,7 @@ resource "kubectl_manifest" "prj_mongo" { passwordSecretRef: name: "${var.instance}-${var.component}" roles: - - db: ${var.component} + - db: ${var.instance} name: readWrite scramCredentialsSecretName: "${var.instance}-${var.component}-scram" EOF