This commit is contained in:
2023-10-15 17:52:56 +02:00
parent 1a818cbad1
commit 01828479be
2 changed files with 60 additions and 50 deletions

View File

@@ -87,3 +87,13 @@ data "kubernetes_secret_v1" "mongos" {
namespace = "${var.mongo[count.index].namespace}"
}
}
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"
}

View File

@@ -35,40 +35,6 @@ options:
type: string
type: object
type: array
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
maria:
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
images:
default:
dbgate:
@@ -108,11 +74,6 @@ options:
type: string
type: object
type: object
ingress-class:
default: traefik
examples:
- traefik
type: string
storage:
default:
accessMode: ReadWriteOnce
@@ -140,26 +101,50 @@ options:
- Block
type: string
type: object
ingress-class:
default: traefik
examples:
- traefik
type: string
domain:
default: your-company
examples:
- your-company
type: string
sub-domain:
default: dbgate
examples:
- dbgate
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
app-group:
default: dev
maria:
default: []
examples:
- dev
- []
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
mongo:
default: []
examples:
@@ -189,6 +174,21 @@ options:
type: string
type: object
type: array
sub-domain:
default: dbgate
examples:
- dbgate
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
app-group:
default: dev
examples:
- dev
type: string
dependencies:
- dist: null
category: share
@@ -201,7 +201,7 @@ providers:
authentik: true
kubectl: true
postgresql: null
restapi: null
http: null
restapi: true
http: true
gitea: null
tfaddtype: null