fix
This commit is contained in:
@@ -87,21 +87,3 @@ data "kubernetes_secret_v1" "mongos" {
|
|||||||
namespace = "${var.mongo[count.index].namespace}"
|
namespace = "${var.mongo[count.index].namespace}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
locals {
|
|
||||||
authentik-token = data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"]
|
|
||||||
request_headers = {
|
|
||||||
"Content-Type" = "application/json"
|
|
||||||
Authorization = "Bearer ${local.authentik-token}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
provider "restapi" {
|
|
||||||
uri = "http://authentik.${var.domain}-auth.svc/api/v3/"
|
|
||||||
headers = local.request_headers
|
|
||||||
create_method = "PATCH"
|
|
||||||
update_method = "PATCH"
|
|
||||||
destroy_method = "PATCH"
|
|
||||||
write_returns_object = true
|
|
||||||
id_attribute = "name"
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -6,33 +6,55 @@ metadata:
|
|||||||
name: dbgate
|
name: dbgate
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
storage:
|
mongo:
|
||||||
default:
|
default: []
|
||||||
accessMode: ReadWriteOnce
|
|
||||||
size: 1Gi
|
|
||||||
type: Filesystem
|
|
||||||
examples:
|
examples:
|
||||||
- accessMode: ReadWriteOnce
|
- []
|
||||||
size: 1Gi
|
items:
|
||||||
type: Filesystem
|
properties:
|
||||||
properties:
|
dbname:
|
||||||
accessMode:
|
default: ''
|
||||||
default: ReadWriteOnce
|
type: string
|
||||||
enum:
|
name:
|
||||||
- ReadWriteOnce
|
default: ''
|
||||||
- ReadOnlyMany
|
type: string
|
||||||
- ReadWriteMany
|
namespace:
|
||||||
type: string
|
default: ''
|
||||||
size:
|
type: string
|
||||||
default: 1Gi
|
secret:
|
||||||
type: string
|
properties:
|
||||||
type:
|
key:
|
||||||
default: Filesystem
|
default: ''
|
||||||
enum:
|
type: string
|
||||||
- Filesystem
|
name:
|
||||||
- Block
|
default: ''
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
username:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
|
app-group:
|
||||||
|
default: dev
|
||||||
|
examples:
|
||||||
|
- dev
|
||||||
|
type: string
|
||||||
|
ingress-class:
|
||||||
|
default: traefik
|
||||||
|
examples:
|
||||||
|
- traefik
|
||||||
|
type: string
|
||||||
|
domain-name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
maria:
|
maria:
|
||||||
default: []
|
default: []
|
||||||
examples:
|
examples:
|
||||||
@@ -62,55 +84,6 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
app-group:
|
|
||||||
default: dev
|
|
||||||
examples:
|
|
||||||
- dev
|
|
||||||
type: string
|
|
||||||
ingress-class:
|
|
||||||
default: traefik
|
|
||||||
examples:
|
|
||||||
- traefik
|
|
||||||
type: string
|
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
pg:
|
|
||||||
default: []
|
|
||||||
examples:
|
|
||||||
- []
|
|
||||||
items:
|
|
||||||
properties:
|
|
||||||
dbname:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
name:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
namespace:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
secret:
|
|
||||||
properties:
|
|
||||||
key:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
name:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
username:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: array
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
images:
|
images:
|
||||||
default:
|
default:
|
||||||
dbgate:
|
dbgate:
|
||||||
@@ -150,17 +123,44 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
storage:
|
||||||
|
default:
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
size: 1Gi
|
||||||
|
type: Filesystem
|
||||||
|
examples:
|
||||||
|
- accessMode: ReadWriteOnce
|
||||||
|
size: 1Gi
|
||||||
|
type: Filesystem
|
||||||
|
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
|
||||||
sub-domain:
|
sub-domain:
|
||||||
default: dbgate
|
default: dbgate
|
||||||
examples:
|
examples:
|
||||||
- dbgate
|
- dbgate
|
||||||
type: string
|
type: string
|
||||||
domain-name:
|
issuer:
|
||||||
default: your_company.com
|
default: letsencrypt-prod
|
||||||
examples:
|
examples:
|
||||||
- your_company.com
|
- letsencrypt-prod
|
||||||
type: string
|
type: string
|
||||||
mongo:
|
pg:
|
||||||
default: []
|
default: []
|
||||||
examples:
|
examples:
|
||||||
- []
|
- []
|
||||||
@@ -201,7 +201,7 @@ providers:
|
|||||||
authentik: true
|
authentik: true
|
||||||
kubectl: true
|
kubectl: true
|
||||||
postgresql: null
|
postgresql: null
|
||||||
restapi: true
|
restapi: null
|
||||||
http: true
|
http: null
|
||||||
gitea: null
|
gitea: null
|
||||||
tfaddtype: null
|
tfaddtype: null
|
||||||
|
|||||||
Reference in New Issue
Block a user