fix
This commit is contained in:
@@ -75,15 +75,15 @@ resource "kubernetes_secret_v1" "dbgate-config-secret" {
|
|||||||
data "kubernetes_secret_v1" "pgs" {
|
data "kubernetes_secret_v1" "pgs" {
|
||||||
count = length(var.pg)
|
count = length(var.pg)
|
||||||
metadata {
|
metadata {
|
||||||
name = "${var.pgs[count.index].secret.name}"
|
name = "${var.pg[count.index].secret.name}"
|
||||||
namespace = "${var.pgs[count.index].namespace}"
|
namespace = "${var.pg[count.index].namespace}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data "kubernetes_secret_v1" "mongos" {
|
data "kubernetes_secret_v1" "mongos" {
|
||||||
count = length(var.mongo)
|
count = length(var.mongo)
|
||||||
metadata {
|
metadata {
|
||||||
name = "${var.pgs[count.index].secret.name}"
|
name = "${var.mongo[count.index].secret.name}"
|
||||||
namespace = "${var.pgs[count.index].namespace}"
|
namespace = "${var.mongo[count.index].namespace}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,11 @@ options:
|
|||||||
examples:
|
examples:
|
||||||
- dbgate
|
- dbgate
|
||||||
type: string
|
type: string
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
images:
|
images:
|
||||||
default:
|
default:
|
||||||
dbgate:
|
dbgate:
|
||||||
@@ -50,39 +55,17 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
domain-name:
|
issuer:
|
||||||
default: your_company.com
|
default: letsencrypt-prod
|
||||||
examples:
|
examples:
|
||||||
- your_company.com
|
- letsencrypt-prod
|
||||||
type: string
|
type: string
|
||||||
storage:
|
app-group:
|
||||||
default:
|
default: dev
|
||||||
accessMode: ReadWriteOnce
|
|
||||||
size: 1Gi
|
|
||||||
type: Filesystem
|
|
||||||
examples:
|
examples:
|
||||||
- accessMode: ReadWriteOnce
|
- dev
|
||||||
size: 1Gi
|
type: string
|
||||||
type: Filesystem
|
pg:
|
||||||
properties:
|
|
||||||
accessMode:
|
|
||||||
default: ReadWriteOnce
|
|
||||||
enum:
|
|
||||||
- ReadWriteOnce
|
|
||||||
- ReadOnlyMany
|
|
||||||
- ReadWriteMany
|
|
||||||
type: string
|
|
||||||
size:
|
|
||||||
default: 1Gi
|
|
||||||
type: string
|
|
||||||
type:
|
|
||||||
default: Filesystem
|
|
||||||
enum:
|
|
||||||
- Filesystem
|
|
||||||
- Block
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
maria:
|
|
||||||
default: []
|
default: []
|
||||||
examples:
|
examples:
|
||||||
- []
|
- []
|
||||||
@@ -111,15 +94,10 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
ingress-class:
|
domain-name:
|
||||||
default: traefik
|
default: your_company.com
|
||||||
examples:
|
examples:
|
||||||
- traefik
|
- your_company.com
|
||||||
type: string
|
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
type: string
|
||||||
mongo:
|
mongo:
|
||||||
default: []
|
default: []
|
||||||
@@ -150,17 +128,39 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
app-group:
|
storage:
|
||||||
default: dev
|
default:
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
size: 1Gi
|
||||||
|
type: Filesystem
|
||||||
examples:
|
examples:
|
||||||
- dev
|
- accessMode: ReadWriteOnce
|
||||||
type: string
|
size: 1Gi
|
||||||
issuer:
|
type: Filesystem
|
||||||
default: letsencrypt-prod
|
properties:
|
||||||
|
accessMode:
|
||||||
|
default: ReadWriteOnce
|
||||||
|
enum:
|
||||||
|
- ReadWriteOnce
|
||||||
|
- ReadOnlyMany
|
||||||
|
- ReadWriteMany
|
||||||
|
type: string
|
||||||
|
size:
|
||||||
|
default: 1Gi
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
default: Filesystem
|
||||||
|
enum:
|
||||||
|
- Filesystem
|
||||||
|
- Block
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
ingress-class:
|
||||||
|
default: traefik
|
||||||
examples:
|
examples:
|
||||||
- letsencrypt-prod
|
- traefik
|
||||||
type: string
|
type: string
|
||||||
pg:
|
maria:
|
||||||
default: []
|
default: []
|
||||||
examples:
|
examples:
|
||||||
- []
|
- []
|
||||||
|
|||||||
Reference in New Issue
Block a user