diff --git a/share/wildduck/index.yaml b/share/wildduck/index.yaml index c098174..610cc48 100644 --- a/share/wildduck/index.yaml +++ b/share/wildduck/index.yaml @@ -6,26 +6,21 @@ metadata: name: wildduck description: null options: - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string additional-domains: default: [] items: type: string type: array - domain-name: - default: your_company.com - examples: - - your_company.com - type: string ingress-class: default: traefik examples: - traefik type: string + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string redis: default: exporter: @@ -59,6 +54,16 @@ options: default: 2Gi type: string type: object + sub-domain: + default: mail + examples: + - mail + type: string + domain: + default: your-company + examples: + - your-company + type: string backups: default: enable: false @@ -89,11 +94,6 @@ options: default: backup-settings type: string type: object - domain: - default: your-company - examples: - - your-company - type: string images: default: haraka: @@ -257,10 +257,10 @@ options: type: string type: object type: object - sub-domain: - default: mail + domain-name: + default: your_company.com examples: - - mail + - your_company.com type: string dependencies: - dist: null diff --git a/share/wildduck/mongo.tf b/share/wildduck/mongo.tf index d296b68..1926007 100644 --- a/share/wildduck/mongo.tf +++ b/share/wildduck/mongo.tf @@ -41,8 +41,12 @@ resource "kubectl_manifest" "prj_mongo" { members: 1 type: ReplicaSet version: "4.4.0" - podSpec: - podTemplate: + statefulSet: + properties + metadata: + annotations: + "k8up.io/backupcommand": "sh -c 'mongodump --username=$MONGODB_USER --password=$MONGODB_PASSWORD mongodb://localhost/$MONGODB_NAME --archive'" + "k8up.io/file-extension": ".archive" spec: containers: - name: mongod @@ -56,10 +60,6 @@ resource "kubectl_manifest" "prj_mongo" { secretKeyRef: name: "${var.instance}-${var.component}-mongo" key: password - metadata: - annotations: - "k8up.io/backupcommand": "sh -c 'mongodump --username=$MONGODB_USER --password=$MONGODB_PASSWORD mongodb://localhost/$MONGODB_NAME --archive'" - "k8up.io/file-extension": ".archive" security: authentication: modes: ["SCRAM"]