This commit is contained in:
2024-01-22 19:18:35 +01:00
parent 242a32d433
commit b1bed4d2f6
2 changed files with 37 additions and 37 deletions

View File

@@ -6,6 +6,36 @@ metadata:
name: okd name: okd
description: null description: null
options: options:
app-group:
default: infra
examples:
- infra
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
cluster-admin:
default: false
examples:
- false
type: boolean
managed:
default: false
examples:
- false
type: boolean
namespaces:
default: []
items:
type: string
type: array
images: images:
default: default:
okd: okd:
@@ -45,50 +75,20 @@ options:
type: string type: string
type: object type: object
type: object type: object
namespaces: domain-name:
default: [] default: your_company.com
items:
type: string
type: array
sub-domain:
default: okd
examples: examples:
- okd - your_company.com
type: string type: string
domain: domain:
default: your-company default: your-company
examples: examples:
- your-company - your-company
type: string type: string
managed: sub-domain:
default: false default: okd
examples: examples:
- false - okd
type: boolean
app-group:
default: infra
examples:
- infra
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
cluster-admin:
default: false
examples:
- false
type: boolean
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string type: string
dependencies: dependencies:
- dist: null - dist: null

View File

@@ -2,7 +2,7 @@ locals {
dns-name = "${var.sub-domain}.${var.domain-name}" dns-name = "${var.sub-domain}.${var.domain-name}"
dns-names = [local.dns-name] dns-names = [local.dns-name]
app-name = var.component == var.instance ? var.instance : format("%s-%s", var.component, var.instance) app-name = var.component == var.instance ? var.instance : format("%s-%s", var.component, var.instance)
icon = "static/assets/public/imgs/okd-favicon.png" icon = "static/assets/okd-logo.svg"
request_headers = { request_headers = {
"Content-Type" = "application/json" "Content-Type" = "application/json"
Authorization = "Bearer ${data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"]}" Authorization = "Bearer ${data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"]}"